Video Lesson 4.9: ABAP Logical Expressions
This lesson shows some of the most common used logical expressions like AND, OR and IF.
Logical Expressions
- When writing application programs, you often need to formulate conditions.
- These are used mostly to control the flow of the program, or to decide whether to exit a processing block.
- You formulate a condition using logical expressions. A logical condition can be either true or false.
Combining Several Logical Expressions (AND, OR)
- To combine several logical expressions together in one single expression which is true only if all of the component expressions are true, link the expressions with AND.
- To combine several logical expressions together in one single expression which is true if at least one of the component expressions is true, link the expressions with OR.
- To negate the result of a logical expression, you can precede it with the NOT operator. → SAP VIDEO