SAP ABAP ASXML ASJSON EMPTY ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_ASXML - Deserializing Structure Components
This example demonstrates the deserialization of empty and missing structure components.

ABAP_SOURCE_CODE
DEMO CL_DEMO_ASXML_ASJSON_STRCT_CPS

ABAP_DESCRIPTION
A structure is transformed using the identity transformation ID into its asXML and asJSON representations. In the asXML representation, the values of two elements and two complete elements are removed. In JSON, values cannot be removed. In the asJSON representation, the values of two object components are initialized and two object components are removed.
After deserialization into the original ABAP structure, the components to which empty XML elements are assigned are initial. Components, for which no XML element or no JSON object component exist retain their previous value.