SAP CDS F1 ABSENT LIST ELEMENT



Get Example source ABAP code based on a different SAP table
  


• KEY ABAP_CDS_DEFINE_ABSENT

ABAP_CDS_DDL - DEFINE ABSTRACT ENTITY, element

ABAP_SYNTAX
... $[@element_annot1$]
$[@element_annot2$]
...
${ $[KEY$] name : typing $}
$| ${ _assoc : association $}
$| ${ _compos : composition $}
$| ${ _to_parent : to_parent_assoc $} ...

ABAP Addition
1 ... @element_annot
2 ... KEY

What does it do?
Specifies an element name or defines a CDS association _assoc , a CDS composition _compos, or a CDS-to-parent association _to_parent in the list of elements of a CDS abstract entity. name or _assoc or _compos and _to_parent must be used to specify a unique name that complies with the naming rules for names. Here, the name of a CDS association, a CDS composition, or a CDS-to-parent association can start with an underscore _, as recommended. The names of the elements and CDS associations, CDS compositions, and CDS-to-parent associations are in the same namespace as the parameters of the abstract entity. Furthermore, name cannot contain any slash (/) characters and cannot be a reserved name in ABAP Dictionary. The reserved names that cannot be used are specified in the DDIC database table TRESE.
An element name defines an element. Elements must be typed with an elementary data type typing. All possible data types and the rules for typing are described in the topic about typing in CDS. The typing determines the data type of the corresponding component of the structured data type represented by the CDS abstract entity.
The addition association is used to expose a CDS association of the name _assoc.
The addition composition is used to expose a CDS composition with the name _compos.
The addition to_parent_assoc is used to expose a CDS-to-parent association with the name _to_parent.
The element list must contain at least one element name. It is not allowed to specify only an association, composition, or to-parent association in the element list.
No component with the name _assoc, _compos, and _to_parent is created in the associated structured data type.
Element names are not case-sensitive. The blanks in the comma-separated list are ignored and can be omitted.

ABAP_EXAMPLE_VX5
The following DDL source code shows a CDS abstract entity:
DDLS DEMO_CDS_ABSTRACT_ENTITY
The class CL_DEMO_CDS_ABSTRACT_ENTITY demonstrates the following:
The structure of the CDS abstract entity can be evaluated using RTTI methods.
The annotations of the CDS abstract entity can be evaluated using the class CL_DD_DDL_ANNOTATION_SERVICE.
The structure of the CDS abstract entity can be used as a data type in the ABAP program.
ABAP_EXAMPLE_END

ABAP Addition

What does it do?
Specifies annotations for the element. The annotations can be specified in front of every element and every CDS association, CDS composition, and CDS-to-parent association using @element_annot.



Latest notes:

Element annotations can be used to annotate the elements and CDS associations, CDS compositions, plus CDS-to-parent associations of a CDS abstract entity with semantic properties.
NON_V5_HINTS
ABAP_HINT_END

ABAP Addition

What does it do?
KEY is used to define the current element as a key element of the current CDS abstract entity. Those elements of the element list can be defined as key elements that are placed without gaps at the start of the list.



Latest notes:

The key elements of a CDS abstract entity can be used to create an abstract data model.
NON_V5_HINTS
ABAP_HINT_END