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
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, predefined functions, constructor expressions, and table expressions are handled like elementary data objects.
- Previous assignments made to helper variables with certain types or the conversion operator
CONVcan be used to force comparison types and conversions other than a direct comparison of the operands.