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
ABAP CDS - cond_expr, Relational Operators
Other versions:
7.31 | 7.40 | 7.54
Syntax
... lhs operator rhs ...
Effect
Compares in a condition in a CDS view. The following table shows the possible operators operator of the relational expressions rel_exp:
rel_expr | True if |
---|---|
lhs = rhs | Value of lhs is equal to the value of rhs |
lhs <> rhs | Value of lhs is not equal to the value of rhs |
lhs < rhs | Value of lhs is less than the value of rhs |
lhs > rhs | Value of lhs is greater than the value of rhs |
lhs <= rhs | Value of lhs is less than or equal to the value of rhs |
lhs >= rhs | Value of lhs is greater than or equal to the value of rhs |
- Context-dependent rules apply when specifying the operands lhs and rhs.
- The tables of comparable types show which data types can be compared with each other.