Short Reference

log_exp - Logical Expressions

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.

Language Elements for Logical Expressions

=, 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, ( )



Note

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.