一个SAP S/4HANA CDS view extension的具体例子
(1) create a CDS view with following source code:
Once activated, you see two fields in SQL view as expected.
(2) 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.
The annotation viewEnhancementCategory has following possible values:
#PROJECTION_LIST:
Extensions of the SELECT list and additional associations are allowed; extensions of CDS views whose SELECT lists contain aggregate expressions or have a UNION clause must be permitted using further values
#GROUP_BY:
Aggregated or non-aggregated elements are allowed to be added to a SELECT list with aggregated expressions and the associated extensions of the of the GROUP-BY clause are also permitted; can only be specified together with #PROJECTION_LIST
#UNION:
Extensions of the SELECT list of a CDS view with a UNION clause are allowed; can only be specified together with #PROJECTION_LIST
#NONE:
No extensions allowed; cannot be specified together with other values
If not explicitly specified, the default value #PROJECTION_LIST will be chosen.
Guideline
To avoid confusesness and potential ATC error, default value must always be specified explicitly by developer.
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
相关文章
- 关于 SAP UI5 所有控件的共同祖先 - sap.ui.base.ManagedObject
- SAP UI5 sap.ui.Device.media.RANGESETS 的使用介绍
- SAP UI5 sap.ui.Device.media.RANGESETS.SAP_STANDARD_EXTENDED 介绍
- SAP Java Connector 的配置指南
- 29. 如何通过 ABAP 代码给 SAP OData 元数据增添注解
- SAP MM事务代码S_P00_07000139可以用于跟踪物料移动细节
- 什么是 sap.ushell.Container
- 关于 SAP UI5 MessageProcessor 消息创建的问题
- SAP 通过SE54和SM34创建视图簇维护详解编程语言
- sap系统的ooalv的学习标准程序详解编程语言
- SAP发布Rest接口实例(详细步骤)详解编程语言
- SAP ABAP-获取屏幕数据详解编程语言
- ABAP_Memory,SAP_Memory,Shared_Buffer,Database详解编程语言
- SAP提供了一个标准的报表查看修改记录: RSSCD100详解编程语言
- SAP GUI FOR HTML登陆详解编程语言
- 系统SAP在Linux系统上的开启之旅(sap启动linux)
- SAP vs Oracle:差异点与解析(sap和oracle的区别)
- 数据库解决方案如何使用SAP创建Redis数据库(sap怎么创建redis)
- Oracle与SAP金蝶谁更具竞争力(oracle sap金蝶)
- 聘请高级Oracle与SAP顾问,拓展业务潜力(oracle sap顾问)
- Oracle与SAP的技术潜力比较(oracle sap比较)
- 使用Oracle与SAP进行数据接口开发(oracle sap接口)