SAP CDS ABSENT COMPOSITION



Get Example source ABAP code based on a different SAP table
  


• COMPOSITION OF ABAP_CDS_DEFINE_ABSENT

ABAP_CDS_DDL - DEFINE ABSTRACT ENTITY, composition

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

What does it do?
Defines a CDS composition in the element list of a CDS abstract entity.
The CDS composition associates the current CDS abstract entity, as a association source, with the association 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 abstract 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 abstract entity.

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