SAP LOGEXP RULES OPERANDS ENUM



Get Example source ABAP code based on a different SAP table
  



ABAP_RELEXP - Comparing Enumerated Types
An operand with an enumerated type can only be compared with enumerated objects of the same enumerated type. There is no implicit conversion. The values of the operands are compared according to the rules that apply to the elementary base type of the enumerated type.



Latest notes:

An operand of an enumerated type cannot be compared directly with a character-like operand of type c or string, even though there is a conversion rule for this case. In this case, helper variables or the conversion operator CONV can be used to perform an explicit conversion.
NON_V5_HINTS
ABAP_HINT_END

ABAP_EXAMPLE_VX5
In the first two comparisons, enumerated objects of the enumerated type number are compared with each other. The third comparison shows how an operand with an enumerated type can be converted to be compared like a character.
ABEXA 01110
ABAP_EXAMPLE_END