SAP ABAP DESERL NO ELEM ABEXA

Get Example source ABAP code based on a different SAP table
  


ARTICLE

Deserializing Missing Elements
This example demonstrates the deserialization of empty elements.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
An elementary data object, a structure and an internal table are transformed using the identity transformation ID into asXML and asJSON display formats. With the asXML and asJSON display formats, all elements or object components are removed.
When a standard deserialization into the original ABAP data objects is performed, the objects retain their original values. If the t ransformation option clear is used with the value 'all', all ABAP data objects are initialized.

Note
The modification of XML and JSON data using string processing is only shown here to make the example clearer. In productive programs, the APIs of class libraries for XML should be used.