SAP CONV ENUM ABEXA



Get Example source ABAP code based on a different SAP table
  



Conversion Operator, Enumerated Types
This example demonstrates the use of the conversion operator CONV for enumerated types.

ABAP_SOURCE_CODE
DEMO CL_DEMO_CONV_ENUM

ABAP_DESCRIPTION
The inner conversion operator CONV return the value of the enumerated constant earth in the base type i of the enumerated type planet. An input value is added to this. Applying the conversion operator to the result determines a planet, which has the specified distance of earth.