SAP CDS V1 VIEWS



Get Example source ABAP code based on a different SAP table
  



ABAP_CDS - DDIC-Based Views (Obsolete)
A ABAP_CDS_V1_VIEW is defined for existing DDIC database tables,
BEGIN_SECTION VERSION 5 OUT DDIC views
END_SECTION VERSION 5 OUT or other CDS SQL entities using the statement DEFINE VIEW in the CDS DDL of ABAP Core Data Services (CDS) in the DDL source code of a CDS data definition in the ABAP Development Tools (ADT).
BEGIN_SECTION VERSION 5 OUT The DCL source code of a CDS view can also be displayed in Repository Browser in ABAP Workbench.
END_SECTION VERSION 5 OUT
When a CDS data definition of a ABAP_CDS_V1_VIEW is activated, two artefacts are created:
a CDS entity is created as a repository object
a ABAP_CDS_MNG_VIEW is created in the ABAP Dictionary.
The CDS entity represents the CDS view and the view should be accessed using the name of the CDS entity. The name of the CDS entity is defined after the DEFINE VIEW keyword. The definition of the CDS entity occurs only as DDL source code. As a global data type, the CDS entity represents a structured type with the elements of the CDS view as components and can be used like any CDS entity.
In ABAP CDS, the CDS entity can be used as a data source of other CDS entities.
In ABAP programs, the CDS entity can be used as a data type and in AB-SQL read statements.
The CDS entity cannot be used as a data type for definitions of dictionary objects.
The name of this CDS entity is in the namespace of all global types of an AS ABAP.
The keyword KEY can be used to define key elements in CDS views. If the name of the CDS entity is used to access a CDS view in AB_SQL , this key is used for the syntax check or the extended program check.
The following sections describe client handling and table buffering for ABAP_CDS_V1_VIEWS plus the role of a ABAP_CDS_MNG_VIEW :
Client handling
Table buffering
ABAP_CDS_MNG_VIEW



Latest notes: