SAP ABAP ASJSON ABAP TYPES ENUM



Get Example source ABAP code based on a different SAP table
  



ABAP_ASJSON - Mapping of Enumerated Types
The asJSON representation of enumerated types corresponds to their asXML representation. This means that, in asJSON, the content of an enumerated object is represented by the uppercase name of the enumerated value with a maximum of 30 characters, and this value is represented as a character-like elementary data object.

ABAP_EXAMPLE_VX5
Serialization of an internal table with enumerated values by JSON.
ABEXA 00805
The output is: {
'COLORS':
[
'RED',
'BLUE',
'GREEN'
]
}
ABAP_EXAMPLE_END