SAP CDS F1 CUSTOM COMPOSITION



Get Example source ABAP code based on a different SAP table
  


• COMPOSITION OF ABAP_CDS_DEFINE_CUSTOM

ABAP_CDS_DDL - DEFINE CUSTOM ENTITY, composition

ABAP_SYNTAX
... COMPOSITION $[cardinality$] OF target ...

What does it do?
Defines a CDS composition in the element list of a CDS custom entity.
The CDS composition associates the current CDS entity, as a composition source, with the composition target target specified in the definition of the CDS composition.
CDS compositions are specialized CDS associations and they work in the same way as described in topic CDS DDL - CDS View Entity, COMPOSITION . The only difference is that in CDS compositions in CDS custom entities, the addition AS is not used. The name of the CDS composition is declared using the name _compos in the element list of the CDS custom entity.

ABAP_EXAMPLE_VX5
The following DDL source code shows a CDS custom entity that defines a CDS composition to another CDS custom entity:
DDLS DEMO_SALES_CUSTOM_COMPOSITION
ABAP_EXAMPLE_END