SAP CDS DCL CONTEXT NODE EXISTS
Get Example source ABAP code based on a different SAP table
SAP_ONLY
• CONTEXT_NODE_EXISTS ABAP_CDS_DCL_STATEMENT
ABAP_CDS_DCL -
ABAP_SYNTAX
${ container => container $| namespace => namespace $}
$[, nodepath => nodepath$] )>
What does it do?
This function queries the existence of a node in the access control context. The node is addressed by either the predefined container name
This function can only be queried by the operators
ABAP_EXAMPLE_VX5
WHERE
CONTEXT_NODE_EXISTS( CONTAINER => GROUP_BY, NODEPATH => C ) IS NOT INITIAL;>
This rule provides full access when the framework has specified that a grouping exists for field
ABAP_EXAMPLE_END
ABAP_EXAMPLE_VX5
WHERE
CONTEXT_NODE_EXISTS( NAMESPACE => namespace1, NODEPATH => node2.node22 ) IS NOT INITIAL;>
This rule also provides full access given the access control context from the example above. Note that the node names are not case- sensitive, as is the path concatenation in the
If the last path component had been specified as
ABAP_EXAMPLE_END