SAP CDS F1 DCL PROJECTION VIEWS



Get Example source ABAP code based on a different SAP table
  



ABAP_CDS - DCL Restrictions for Transactional CDS Projection Views
CDS transactional queries and CDS transactional interfaces ( DEFINE ROOT VIEW ENTITY ... AS PROJECTION ON ...) are designed to apply CDS access control from the underlying CDS entity 1:1.
For this purpose, CDS access control provides a special rule type projection_rule.
Prior to the introduction of projection rules, access rules for transactional projection views were regular access rules, which had to comply with the following restrictions:
The use of REDEFINITION is not allowed.
Only the condition INHERITING CONDITIONS FROM ENTITY can be used.
The only exception is to create an access control with a full access rule.
The inheriting entity in INHERITING CONDITIONS FROM ENTITY must match the source entity of the CDS projection view.
The only allowed replacement step is ELEMENT WITH in one of the following flavors:
Replacing a plain entity field with a plain entity field.
Renaming of an association.
Replacing a path expression that ends with a field with a plain entity field.