SAP LOGEXP BOOLE



Get Example source ABAP code based on a different SAP table
  



ABAP_LOGEXP - Boolean Operators and Parentheses
The following Boolean operators combine logical expressions:
AND
OR
EQUIV
The following operator negates a logical expression:
NOT
Logical expressions can be parenthesized explicitly using the following:
( )
When multiple Boolean operators are combined, the system implicitly parenthesizes all logical expressions that are not closed by explicit parentheses according to the following hierarchy (operator order, precedence). This expresses the binding strength between Boolean operators: All Boolean operators NOT are combined with the adjacent logical expression on the right to form a logical expression. All logical expressions combined using AND form a logical expression. All logical expressions combined using OR form a logical expression. All logical expressions combined using EQUIV form a logical expression.
The logical expressions of a parenthesis level are processed from left to right. If the value of a logical expression determines the total value of the parenthesis level, the remaining logical expressions are no longer evaluated. In particular, the dynamic parts of the expressions that are not evaluated, such as field symbols or reference variables, are not checked for validity.



Latest notes:

If multiple logical expressions are combined, the explicit and implicit parentheses always produce exactly one logical expression that is either true or false.
The smallest unit of a combined logical expression is always a relational expression.
If functional methods are used as operands in the involved relational expressions, they are executed directly before the respective relational expression is evaluated. Functional methods in relational expressions that do not need to be evaluated to get the result are not executed.
NON_V5_HINTS
ABAP_HINT_END