Ansicht
Dokumentation

ABENCDS_DATABASE_VIEW - CDS DATABASE VIEW

ABENCDS_DATABASE_VIEW - CDS DATABASE VIEW

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

- CDS-managed DDIC Views

For defined using the statement DEFINE VIEW without the addition ENTITY, a CDS-managed DDIC view is created alongside the CDS entity when the CDS view is activated. The CDS entity represents the actual CDS view. Properties, such as access controls defined in CDS, can be defined for the CDS entity only. The CDS-managed DDIC view is used as a technical foundation for . It is a read-only DDIC database view in ABAP Dictionary.

The name CDS_DB_VIEW of the DDIC database view is defined in the definition of a with the CDS annotation @AbapCatalog.sqlViewName, and is located in the same namespace of all global types of an AS ABAP. The ABAP Dictionary tool in ABAP Workbench (SE11) is able to display a CDS-managed DDIC view but the view cannot be modified here. When the CDS view is activated, the corresponding SQL view is created with the same name.

As a data type in ABAP Dictionary, the CDS-managed DDIC view represents like all DDIC database views a flat DDIC structure with the elements of the CDS view as components. The CDS-managed DDIC view of a client-dependent CDS view always has a client column, unlike the CDS entity.

  • In ABAP Dictionary, the CDS-managed DDIC view can be used like any DDIC structure, such as the type of a substructure, as an include structure, or as the row type of a table type.
  • The CDS-managed DDIC view should not, however, be used in ABAP. It can be used wherever DDIC database tables or DDIC database views can also be specified using its name CDS_DB_VIEW, such as after the TYPE addition, in read statements and also in Native SQL, AMDP, or after the TABLES statement. But this is not recommended. More particularly, the use of the CDS-managed DDIC view in read statements is obsolete and forbidden in strict mode from Release . Instead, both ABAP and the CDS entity should be accessed, which covers all attributes of the CDS view.
  • In CDS DDL too, only the CDS entity should be accessed using its name ddic_based_view and not the CDS-managed DDIC view using the name CDS_DB_VIEW.

The key of the CDS-managed DDIC view is determined implicitly, as in a DDIC database view in ABAP Dictionary. This key is the technical key of the CDS view. If the name of the CDS-managed DDIC view is used to access a CDS view in , this key is used for the syntax check.

Note

Unlike the regular DDIC table views in ABAP Dictionary, the special CDS-managed DDIC views can also access views.






General Material Data   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 4834 Date: 20240427 Time: 011336     sap01-206 ( 71 ms )