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
If operand1
and operand2
in a
comparison expression have elementary data types, they are used to determine a common elementary
comparison type. Every comparison type has
comparison rules used to perform the comparison.
Operands that are not compatible with the comparison type are converted to this type. The following sections show how the comparison type is determined for the various comparisons:
The return values or results of functional methods, built-in functions, constructor expressions, and table expressions are handled like elementary data objects.
Other versions: 7.31 | 7.40 | 7.54
Notes
- Previous assignments made to helper variables with certain types or the conversion operator
CONV
can be used to force comparison types and conversions other than a direct comparison of the operands.
- It should be noted that some built-in functions operate like an arithmetic expression if they contain a numeric expression as an argument.
- For enumerated types, a special rule applies.
Continue
rel_exp - Comparison Rules for Comparison Types