SAP LOGEXP COMP



Get Example source ABAP code based on a different SAP table
  



Comparison Expressions ( ABAP_RELEXP )

ABAP_SYNTAX
... ${ operand1 ${=$|EQ$|<(> <<)>>$|NE$|>$|GT$| < $|LT$|>=$|GE$| < =$|LE$}
$| ${CO$|CN$|CA$|NA$|CS$|NS$|CP$|NP$}
$| ${BYTE-CO$|BYTE-CN$|BYTE-CA$|BYTE-NA$|BYTE-CS$|BYTE-NS$}
$| ${O$|Z$|M$} operand2 $}
$| ${ operand $[NOT$] BETWEEN operand1 AND operand2 $}
$| ${ operand $[NOT$] IN range_tab $} ...

What does it do?
In Comparison expressions, two or more operands are combined to a relational expression using a comparison operator. A truth value is determined as the result of the comparison.
The operands are compared using one of the comparison operators shown here.
The comparisons take place according to comparison rules.
operand1, operand2, and operand are general expression positions, which means that the following can be specified:
Data objects
Built-in functions
Functional methods
Calculation expressions
Constructor expressions
Table expressions
When a built-in function, a functional method, or a constructor expression is specified, its return value or result is used as an op erand. When a calculation expression is specified, its result is used. A single operand can be compared with all single operands listed in the comparison rules for single operands. A calculation expression can be compared with all single operands or comparisons listed in the comparison rules for calculation expressions.

ABAP_EXAMPLE_VX5
Typical use of a logical expression, here a comparison of a built-in function with a literal, in an IF statement.
ABEXA 01090
ABAP_EXAMPLE_END