SAP ABAP SQL CDS - Obsolete



Get Example source ABAP code based on a different SAP table
  



Obsolete Access to CDS Views in AB_SQL

Obsolete Syntax
SELECT ... FROM cds_db_view ...

What does it do?
Specifies a ABAP_CDS_V1_VIEW that is associated with a CDS-managed DDIC view using its name CDS_DB_VIEW that is defined in the annotation @AbapCatalog.sqlViewName as a data source data_source of the SELECT statement. If the name CDS_DB_VIEW is used, the ABAP_CDS_MNG_VIEW is accessed directly and handled like a DDIC view. More specifically, the following applies:
Client handling depends only on the existence of a client column and not by the client dependency of the CDS view.
Any CDS roles defined for CDS access controls are applied only when the CDS entity is accessed and not when the CDS-managed DDIC view is accessed.
The key fields of the DDIC database view are used for the syntax check and not the key fields of the CDS entity in the addition ORDER BY PRIMARY KEY.



Latest notes:

To keep the behavior consistent and to use only the defined properties of a CDS view, only the name of the CDS entity should be used to access a CDS view.
Direct access to a ABAP_CDS_MNG_VIEW is forbidden in ABAP_STRICT_762 strict mode from ABAP_RELEASE ABAP_762 / .
ABAP_HINT_END