ABAP - Keyword Documentation →  ABAP - Dictionary →  ABAP CDS in ABAP Dictionary →  ABAP CDS - Data Definitions →  ABAP CDS - DDL for Data Definitions →  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 conditions in a CDS view 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 parentheses ( ... ) are possible.

The relational expressions rel_expr from which a condition cond_expr can be constructed are as follows:

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 parentheses, which can be overridden by explicit parentheses.



Continue
ABAP CDS - cond_expr, Relational Operators
ABAP CDS - cond_expr, BETWEEN
ABAP CDS - cond_expr, LIKE
ABAP CDS - cond_expr, NULL
ABAP CDS - cond_expr, Operands