The result of a logical expression log_exp is either true
or false. Since ABAP has no Boolean data type for the values true or false, logical expressions cannot
be assigned to data objects. Instead, you use logical expressions to formulate conditions in control
structures or other structures. There are logical expressions with relational operators and with other language elements.
=,
EQ, <>, NE,
<, LT,
>, GT, <=,
LE, >=, GE
CO,
CN, CA, NA,
CS, NS,
CP, NP
BYTE-CO,
BYTE-CN, BYTE-CA,
BYTE-NA, BYTE-CS, BYTE-NS
O, Z, M
BETWEEN
IS
IN
AND,
OR, NOT, ( )
If in a logical expression functional methods are specified as operands, they are executed from left to right before the expression is evaluated. If the logical expressions are
concatenated, this applies for every subexpression and not for the entire expression.