Get Example source ABAP code based on a different SAP table
• ROOT ABAP_CDS_DEF_VIEW_ENT
ABAP_CDS_DDL - CDS View Entity, ROOT>
ABAP_SYNTAX ... ROOT ...>
What does it do? The addition ROOT> defines the CDS view entity> view_entity> as the root entity of a RAP business object> in the ABAP RESTful Application Programming Model>. The RAP BO root entity> is the top node of the hierarchical structure of a business object and represents the business object. The following applies to a root entity:
There is exactly one root entity in the structure of a business object.
A root entity does not have a parent entity>.
A root entity can specify CDS compositions> that define child entities > of the business object using the keyword COMPOSITION>>. This is not mandatory, a root node can also be a leaf entity>.
Latest notes:
More information about the ABAP RESTful Application Programming Model can be found under RAP objects>.
The statement EXTEND VIEW ENTITY> > can add to a root entity but cannot turn a regular view entity into a root entity. NON_V5_HINTS ABAP_HINT_END