Ansicht
Dokumentation

ABENLOGEXP_RULES_OPERANDS_ENUM - LOGEXP RULES OPERANDS ENUM

ABENLOGEXP_RULES_OPERANDS_ENUM - LOGEXP RULES OPERANDS ENUM

RFUMSV00 - Advance Return for Tax on Sales/Purchases   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

- 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.

Note

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.

Example

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.






ABAP Short Reference   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 1528 Date: 20240426 Time: 054259     sap01-206 ( 29 ms )