SAP NetWeaver AS ABAP Release 750, ©Copyright 2016 SAP AG. All rights reserved.
ABAP - Keyword Documentation → ABAP - Dictionary → ABAP CDS in ABAP Dictionary → ABAP CDS - Data Definitions → ABAP CDS - DDL Statements → ABAP CDS - DEFINE VIEW → ABAP CDS - SELECT → ABAP CDS - SELECT, Operands and Expressions →ABAP CDS - cond_expr
Syntax
... rel_expr
| [NOT] cond_expr [AND|OR cond_expr] ...
Effect
Formulates a condition in a CDS view in ABAP CDS whose result is true or false. A condition is either a single relational expression, rel_expr, or an expression constructed from the Boolean operators NOT, AND, and OR in which parenthesized full conditions cond_expr using the parentheses ( ... ) are possible.
The relational expressions rel_expr from which a condition cond_expr can be constructed are:
The Boolean operators work as follows:
The operator NOT is a stronger binding than AND, which itself is a strong binding than OR. This produces implicit parenthesizing, which can be overridden by explicit parenthesizing.