Get Example source ABAP code based on a different SAP table
• check ABAP_ST_ELEMENT
ABAP_ST - check>, Conditions
ABAP_SYNTAX ... $[s-$|d-$]check ='...' ...>
What does it do? The following conditions can be specified for the content of the attribute $[s-$|d-$]check> of an element tt:cond>> or tt:cond-var>>:
State QueriesCondition>Meaning> exist(node)>Met if an ABAP data object is bound to the node. $[not-$]initial(node)>Met if the bound ABAP data object is (not) initial. $[not-$]initial(var(variable))>Met if the variable is (not) initial. The operands of the conditions can be data nodes, variables, or values.
Data nodes node> are specified in a special form>.
Variables are specified in the form var(variable)>, where variable> is a variable> or a parameter>.
Values value> are ABAP values in the associated representation>. Data nodes cannot be specified as operands if check> is specified as an attribute of tt:cond-var>>.
Comparisons Comparisons are specified in the form: node$|var(variable)$|value operator node$|var(variable)$|value> The following operators operator> are possible: operator>>Meaning> => Met if both operands have the same value. !=> Met if both operands do not have the same value. >>, gt;>Met if the value of the left operand is greater than that of the right operand. >=>, gt;=>Met if the value of the left operand is greater than or equal to that of the right operand. lt;>Met if the value of the left operand is less than that of the right operand. lt;=>Met if the value of the left operand is less than or equal to that of the right operand.
Latest notes: In XML, the character < > must always be represented by lt;>. The character >>, on the other hand, can be used directly or represented by gt;>. NON_V5_HINTS ABAP_HINT_END
Negation, Combination, and Parentheses Conditions cond> can be negated using not> and can be combined using and> or or>, where and> creates a stronger link than or>. The result of such an operation is another condition. Operation>Meaning> not(cond)>Met if cond> is not met. cond1 and cond2>Met if both cond1> and cond2> are met. cond1 or cond2>Met if not both cond1> and cond2> are not met. Conditions can be enclosed in parentheses ( ) to change the priority.
ABAP_EXAMPLE_VX5 The element X> that is defined in DEMO_ST_CHECK1>> is respected in serializations only if the ABAP data object bound to ROOT> is not initial. TRNS DEMO_ST_CHECK1 ABAP_EXAMPLE_END
ABAP_EXAMPLE_VX5 The element X> that is defined in DEMO_ST_CHECK2>> is respected in serializations only if the ABAP data object bound to ROOT1> is less than or equal to the value of the ABAP data object bound to ROOT2>. It should be noted that the data root .ROOT2 > cannot be specified directly in the condition and that ref('.ROOT2')> must be used instead. TRNS DEMO_ST_CHECK2 ABAP_EXAMPLE_END
ABAP_EXAMPLE_VX5 The element X> that is defined in DEMO_ST_CHECK3>> is respected in serializations only if the ABAP data object bound to ROOT1> is between the values of the ABAP data objects bound to ROOT2> and ROOT3>. The data roots ROOT2 > and ROOT3> cannot be specified directly in the condition and ref('.ROOT2')> and ref('.ROOT3')> must be used instead. TRNS DEMO_ST_CHECK3 ABAP_EXAMPLE_END