SAP CDS VIEW EXTENSION



Get Example source ABAP code based on a different SAP table
  



ABAP_CDS - CDS Entity Extension
A CDS entity extension is a transportable extension of a CDS entity. A CDS entity extension can make additions to the original entity, but it cannot modify, overwrite, or delete elements from the original entity. There are currently four different statements that can be used to extend a CDS entity in CDS DDL:
EXTEND VIEW ENTITY
This variant is used to define a CDS view entity extension for a CDS view entity or a CDS projection view .
Available since release ABAP_778 .
EXTEND CUSTOM ENTITY
This variant is used to define a CDS custom entity extension for a CDS custom entity.
Available since release ABAP_789 .
EXTEND ABSTRACT ENTITY
This variant is used to define a CDS abstract entity extension for a CDS abstract entity.
Available since release ABAP_784 .
EXTEND VIEW
This variant is used to define a CDS view extension that is also linked with a DDIC append view in ABAP Dictionary.
Available since release ABAP_740_SP08 .
Recommended for extending ABAP_CDS_V1_VIEWS , defined using the statement DEFINE VIEW.
When working in a restricted ABAP language version, extensions are possible only to released APIs that are released under the C0 stability contract for extensions. The compatibility rules for the C0 contract for API providers and API consumers are described in section Compatibility Rules for CDS Entities.



Latest notes:

Since release ABAP_778 , there are two different statements available that can be used to extend a CDS view, namely EXTEND VIEW and EXTEND VIEW ENTITY. The differences and when to use what is explained in topic ABAP CDS - Extending CDS views.
Every CDS entity extension has its own DDL source code . The DDL source code in a CDS entity extension is edited in a different editor from the DDL source code of the base entity. The ADT documentation describes how these types of source code are created.
NON_V5_HINTS
DDL source code can also be displayed in Repository Browser in ABAP Workbench.
CDS entity extensions are connected to Switch Framework whenever they are defined in a package that is assigned a switch.
ABAP_HINT_END