SAP CDS SYSTEM VIEWS



Get Example source ABAP code based on a different SAP table
  


SAP_ONLY
VERSION 5 OUT
• DDCDS_ENTITY_HEADER ABAP_SYSTEM_CDS
• DDCDS_ENTITY_ELEMENTS ABAP_SYSTEM_CDS
• DDCDS_ENTITY_PARAMETERS ABAP_SYSTEM_CDS
• DDL_OBJECT_NAMES ABAP_SYSTEM_CDS
• DDCDS_DIRECT_BASE_OBJECTS ABAP_SYSTEM_CDS
• DDCDS_LIST_DIRECT_BASE_ENTITY ABAP_SYSTEM_CDS
• DD_CDS_HEADER_ANNOTATIONS ABAP_SYSTEM_CDS
• DD_CDS_ELEMENT_ANNOTATIONS ABAP_SYSTEM_CDS
• DD_CDS_PAREMETER_ANNOTATIONS ABAP_SYSTEM_CDS
• DDCDS_ENTITY_ELEMENTS_EXTENDED ABAP_SYSTEM_CDS
• DD_DATA_ELEMENT_INFO ABAP_SYSTEM_CDS

ABAP_CDS - System View Entities
The following CDS system view entities are available to evaluate the metadata of CDS objects. They are particularly useful when the metadata of multiple objects needs to be read in one step.
DDCDS_ENTITY_HEADER This view entity provides the header metadata of CDS entities, such as header annotations and text labels.
DDCDS_ENTITY_ELEMENTS This view entity provides metadata related to the elements of a CDS entity, such as field labels, field annotations, and typing information.
DDCDS_ENTITY_PARAMETERS This view entity provides metadata related to the parameters of a CDS entity, such as labels and typing information.
DDL_OBJECT_NAMES This view entity provides the different names of a CDS entity, such as the entity name, the DDLS name, and the name of the CDS-managed DDIC view (if available).
DDCDS_DIRECT_BASE_OBJECTS This view lists the direct base objects of a CDS entity. The direct base objects include the data source specified after FROM, joined data sources, and data sources joined by path expressions. The field primary_data_source marks the data source which is specified immediately after FROM.
DDCDS_LIST_DIRECT_BASE_ENTITY This CDS DDIC-based view lists all direct base entities of a CDS entity. The direct base entities include the data source specified after FROM, joined data sources, and data sources joined by path expressions. DDIC database tables used as direct base objects are ignored here.
DD_CDS_HEADER_ANNOTATIONS This view entity lists all direct header annotations of CDS objects. It does not include inherited header annotations.
DD_CDS_ELEMENT_ANNOTATIONS This view entity lists all direct element annotations of a CDS objects. It does not include inherited element annotations.
DD_CDS_PARAMETER_ANNOTATIONS This view entity lists all direct parameter annotations of CDS objects. It does not include inherited parameter annotations.
DDCDS_ENTITY_ELEMENTS_EXTENDED This view entity returns a list of elements added by means of CDS entity extensions. ABAP_CAUTION This view is for internal use only. It is only included in the internal package interface.
DD_DATA_ELEMENT_INFO This view entity returns a list of data elements along with some details, such as a short description and a time stamp indicating when the data element was last modified.