Ansicht
Dokumentation
ABENCDS_F1_ABSENT_LIST_ELEMENT - CDS F1 ABSENT LIST ELEMENT
Fill RESBD Structure from EBP Component Structure TXBHW - Original Tax Base Amount in Local CurrencyThis documentation is copyright by SAP AG.
- DEFINE ABSTRACT ENTITY, element
... $[@element_annot1$]
$[@element_annot2$]
...
${ $[KEY$] name : typing $}
$| ${ _assoc : association $}
$| ${ _compos : composition $}
$| ${ _to_parent : to_parent_assoc $} ...
Additions
1. ... @element_annot
2. ... KEY
Effect
Specifies an element name or exposes a CDS association _assoc, a CDS composition _compos, or a CDS-to-parent association _to_parent in the list of elements of an 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.
- If the additions association, composition, and to_parent_assoc are not used, a element is defined that is typed with an elementary data type typing. 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.
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.
Example
The following DDL source code shows a CDS abstract entity:
The program 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.
Addition 1
... @element_annot
Effect
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.
Note
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 attributes.
Addition 2
... KEY
Effect
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.
Note
The key elements of a CDS abstract entity can be used to create an abstract data model.
CPI1466 during Backup ABAP Short Reference
This documentation is copyright by SAP AG.
Length: 8129 Date: 20240426 Time: 064655 sap01-206 ( 99 ms )