Ansicht
Dokumentation

ABENCDS_V2_VIEWS - CDS V2 VIEWS

ABENCDS_V2_VIEWS - CDS V2 VIEWS

General Data in Customer Master   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

- View Entities

A CDS view entity is a CDS entity defined using the statement DEFINE VIEW ENTITY in the CDS DDL of ABAP Core Data Services (CDS). A CDS view entity can be used to select fields from one or more data sources (database tables or other CDS entities). Additional semantic properties can be added by using annotations. CDS view entities are the successor of . They have the same structure and serve the same purpose as . Generally spoken, they represent an improved version of "classic" .

When a CDS view entity is activated, a repository object is created. This repository object can be accessed using the name of the CDS view entity. As a global data type, each CDS view entity represents a structured type with the elements of the CDS view entity 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 read statements.

The name of the CDS entity is in the namespace of all global types of an AS ABAP.

The following sections describe client handling and table buffering for CDS view entities. Afterwards, the statement DEFINE VIEW ENTITY and all possible additions are described.

Note

The programming of CDS view entities using the DDL of the Core Data Services is one of the tasks included in the implementation of data models and is not usually the responsibility of regular ABAP application programmers. Once created, CDS view entities are used in ABAP programs using read statements and must be stable enough to allow this.






BAL Application Log Documentation   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 3667 Date: 20240424 Time: 183740     sap01-206 ( 58 ms )