An example of CDS view extension

Created by Wang, Jerry, last modified on Jan 23, 2017

  1. create a CDS view with following source code:

Once activated, you see two fields in SQL view as expected.

  1. Create another CDS view which extends the view created in step one with additional two fields: PRODUCT_TYPE & UPNAME.

Once activated, you will find these two fields are extended via traditional ABAP append structure in SQL view.

Consumer does not know whether a field is coming from original extensible view or from extension view, it is completely transparent.

要獲取更多Jerry的原創文章,請關注公衆號"汪子熙":

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章