SAP C0 NODE EXT DEMO



Get Example source ABAP code based on a different SAP table
  



Example: C0 Node Extensibility
This topic provides an example for the node extensibility of a C0 released CDS view entity. It shows how to prepare a CDS view entity for node extensibility and how to add an extension node to a released API from the restricted ABAP language version ABAP for Cloud Development .
CDS view entity as C0 released API
The following CDS view entity DEMO_CDS_PRODUCTTP fulfills all requirements for C0 node extensibility. It defines the necessary extensibility annotations, including @AbapCatalog.extensibility.allowNewCompositions: true.
ABAP_NOTE This CDS view entity shows how to create a released API. It meets all the requirements for C0 release. However, it is not released under the C0 contract for extensibility, because it is not intended to be used as an API.
DDLS DEMO_CDS_PRODUCTTP
CDS view entity extension to a C0 released API
The following CDS view entity extension DEMO_C0_NODE_EXT extends the view entity displayed above. It adds a CDS composition to an extension node.
ABAP_NOTE The prefix ii is representative. It is meant as reminder to use the correct namespace prefix. In customer systems, the namespace prefix yy or zz must be used.
DDLS DEMO_C0_NODE_EXT
Extension node
The following CDS view entity is added to the data model as extension node:
DDLS DEMO_C0_EXTENSION_NODE