SAP LOGEXP RULES EXPRESSIONS



Get Example source ABAP code based on a different SAP table
  



ABAP_RELEXP - Comparison Type of Calculation Expressions
Any calculation expression can be specified as an operand of a comparison expression.
The table below summarizes the combinations in which calculation expressions can be listed in comparison expressions: One sideComparison operatorOther side Single operand with numeric data type or arithmetic expression =, EQ, <>, NE , < , LT, >, GT, < =, LE, >=, GE Arithmetical expression Single operand with any elementary data type or string expression =, EQ, <>, NE , < , LT, >, GT, < =, LE, >=, GE, CO, CN, CA, NA, CS, NS, CP, NP String expression Single operand with byte-like data type or bit expression =, EQ, <>, NE , < , LT, >, GT, < =, LE, >=, GE, BYTE-CO , BYTE-CN, BYTE-CA, BYTE-NA, BYTE-CS, BYTE-NS, O, Z, M Bit expression
The comparison type is determined differently depending on the type of calculation expression.
Comparison type of arithmetic expressions
Comparison type of string expressions
Comparison type of bit expressions
In comparison expressions with the comparison operators BETWEEN and IN, which are converted internally to combinations of comparisons with the binary operators above, the rules of the respective comparisons apply.



Latest notes:

Relational expression cannot yet be compared. Instead, they can be combined using Boolean operators, where the combination with the operator EQUIV corresponds to the comparison of the resulting truth values for equality.
A calculation expression cannot be specified as the operand of a predicate expression.
NON_V5_HINTS
ABAP_HINT_END