ARTICLE
asXML - Mapping of Structures
The asXML representation of structures is significant mainly for
XSL transformations. In simple transformation s, 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. During serialization, the subelements are represented in the
order of the components in the structure. During the deserialization of
the asXML representation of a structure, the order of the
subelements 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.
Example
See asXML , Mapping of Structures
Example
See Deserializing Structure
Components .
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved