ABAP - Keyword Documentation →  ABAP - Reference →  Program Flow Logic →  Expressions and Functions for Conditions →  log_exp - Logical Expressions →  rel_exp - Comparison Expressions →  rel_exp - Relational Operators →  rel_exp - Relational Operators for All Data Types → 

rel_exp - Binary Relational Operators

The following table shows the binary relational operators for comparisons between two operands (data objects or return values or calculation expressions) of any data types in comparison expressions.

operator Meaning
=, EQ Equal: True if the value of operand1 matches the value of operand2.
<>, NE Not Equal: True if the value of operand1 does not match the value of operand2.
<, LT Less Than: True if the value of operand1 is less than the value of operand2.
>, GT Greater Than: True if the value of operand1 is greater than the value of operand2.
<=, LE Less Equal: True if the value of operand1 is less than or equal to the value of operand2.
>=, GE Greater Equal: True if the value of operand1 is greater than or equal to the value of operand2.

The values are compared in accordance with the comparison rules.

Programming Guideline

Use consistent spelling

Notes