Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Program Flow Logic →  Expressions and Functions for Conditions →  log_exp - Logical Expressions →  rel_exp - Comparison Expressions →  rel_exp - Comparison Rules →  rel_exp - Comparing Elementary Data Types 

rel_exp - Comparison Type of Calculation Expressions

Any calculation expression can be specified as an operand of a comparison expression.

The table below lists all combinations that are possible for calculation expressions in comparison expressions:

One Page ā€¸Relational Operator Other Page
Single operand with numeric data type orarithmetic expression =, EQ,<>, NE, <, LT, >, GT, <=, LE, >=, GE Arithmetic expression
Single operand with any elementary data type orstring expression =, EQ,<>, NE, <, LT, >, GT, <=,LE, >=, GE,CO, CN,CA, NA, CS, NS, CP, NP String expression
Single operand with byte-like data type orbit expression =, EQ,<>, NE, <, LT, >, GT, <=,LE, >=, GE,BYTE-CO, BYTE-CN,BYTE-CA, BYTE-NA, BYTE-CS,BYTE-NS, O, Z, M Bit expression

The comparison type is determined differently depending on the type of calculation expression.

In comparison expressions using the relational operators BETWEEN and IN and that are transformed internally to joins of comparisons with the binary operators above, the rules of the respective comparisons apply.

Other versions: 7.31 | 7.40 | 7.54


Notes

Continue

rel_exp - Comparison Type of Arithmetic Expressions

rel_exp - Comparison Type of String Expressions

rel_exp - Comparison Type of Bit Expressions