ABAP - Keyword Documentation →  ABAP - Core Data Services (ABAP CDS) →  ABAP CDS - Data Definitions →  ABAP CDS - DDL for Data Definitions →  ABAP CDS - CDS Entities →  ABAP CDS - Custom Entities →  CDS DDL - DEFINE CUSTOM ENTITY →  CDS DDL - DEFINE CUSTOM ENTITY, element_list →  CDS DDL - DEFINE CUSTOM ENTITY, element → 

CDS DDL - DEFINE CUSTOM ENTITY, composition

Syntax

... COMPOSITION [ [min..max] ] OF target ...

Effect

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. The meaning of the CDS composition of the CDS custom entity is basically the same as that of the addition COMPOSITION in the SELECT statement CDS view entity with the same features as for the CDS associations of the CDS custom entity.

For further details, see: