Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Data Interfaces and Communication Interfaces →  ABAP and XML →  Transformations for XML →  asXML - Canonical XML Representation →  asXML - Mapping of ABAP Data Types 

asXML - Mapping of Structures

The asXML representation of structures is significant mainly for XSL transformations. In simple transformations, this representation is important only when using the statement tt:copy.

The components of an ABAP structure are represented in asXML as a sequence of subelements of the structure element. The content of each subelement corresponds to the canonical representation of the component value. The name of each subelement is the name of the corresponding component. In serializations, the subelements are represented in the order of the components in the structure. In deserializations of the asXML representation of a structure, the order of the subcomponents is not important and redundant XML elements are ignored. Components of the structure for which there are no subelements remain unchanged.

If the required XML element does not exist in deserializations to a structure, the structure retains its previous value. If an empty element is assigned to a structure, the subelements are missing for all components of the structure and the structure remains unchanged here too. To initialize the structure in deserializations in these cases, the transformation option clear with the value "all" can be used.

Other versions: 7.31 | 7.40 | 7.54

Executable Examples