SAP CDS DCL COND LEFT SIDE



Get Example source ABAP code based on a different SAP table
  



ABAP_CDS_DCL - DEFINE ROLE, Left Side Host Expressions
Instead of an element of the protected CDS entity, one of the following expressions can be used on the left side of literal conditions, PFCG conditions, and user conditions:
The actual value of a parameter of the CDS entity replaced by $parameters.pname
The value of a session variable replaced by $session.vname (For session variables in ABAP_CDS_V1_VIEWS , see here. For session variables in CDS view entities, see here.) The set of supported session variables in access controls may be smaller than the one in CDS in general.
A literal value
The DCL function CONTEXT_NODE_VALUES. This function is reserved for use by SAP.
BEGIN_SECTION SAP_ONLY See access_control_context .
END_SECTION SAP_ONLY
Conditions with left side host expressions are evaluated before the expression is passed to the database and evaluate as a true or false predicate.
Properties:
The operators LIKE and NOT LIKE are mapped to the comparison operator for character-like data type CP. This results in non-case-sensitive pattern searches.
Left side host expressions cannot be used on the left side of PFCG mappings or user-defined aspects.



Latest notes:

Runtime support for session variables and literals on the left side is an indirect consequence of inheritance with parameter replacement and also exists in DCL source code (for reasons of consistency). Direct use is not recommended.
NON_V5_HINTS
ABAP_HINT_END