Get Example source ABAP code based on a different SAP table
ARTICLE
asXML, Deserialization of Structure Components This example demonstrates the deserialization of empty and missing structure components.
ABAP_SOURCE_CODE ABAP_EXEC
ABAP_DESCRIPTION A structure is transformed using the identity transformation ID into asXML and asJSON display formats. With asXML display format, the values of two elements and two complete elements are removed. With JSON, values cannot be removed. With asJSON display format, the values of two object components and two object components are removed. After deserialization into the original ABAP structure, the components with empty XML elements assigned to them are initial. Components, for which no XML elements or no JSON object components exist, retain their previous value.