Ansicht
Dokumentation

ABENCDS_DCL_COND_LEFT_SIDE - CDS DCL COND LEFT SIDE

ABENCDS_DCL_COND_LEFT_SIDE - CDS DCL COND LEFT SIDE

General Data in Customer Master   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

- 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 , 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

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 self-defined aspects.

Note

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.






TXBHW - Original Tax Base Amount in Local Currency   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 3129 Date: 20240419 Time: 203542     sap01-206 ( 39 ms )