Ansicht
Dokumentation

ABENABAP_ASJSON_ABAP_TYPES_ENUM - ABAP ASJSON ABAP TYPES ENUM

ABENABAP_ASJSON_ABAP_TYPES_ENUM - ABAP ASJSON ABAP TYPES ENUM

PERFORM Short Reference   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

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

Example

Serialization of an internal table with enumerated values by JSON.

The output is:

{
"COLORS":
[
  "RED",
  "BLUE",
  "GREEN"
]
}






Vendor Master (General Section)   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 1141 Date: 20240328 Time: 142820     sap01-206 ( 20 ms )