ABAP Keyword Documentation → ABAP - Reference → Data Interfaces and Communication Interfaces → ABAP and XML → asXML - Canonical XML Representation → asXML - Mapping of ABAP Data Types
asXML - Mapping of Reference Variables and Referenced Objects
Anonymous data objects and instances of classes (objects) are addressed in ABAP using references in
reference variables only. The corresponding asXML format is made up of subelements of
values for named reference variables and, as standard, subelements
of heap for
the referenced objects (this can be set up using the OPTIONS data_refs
addition
to the statement CALL TRANSFORMATION
).
The link between the reference elements and the object elements is set up by means of an XML reference
mechanism, whereby a referenced object in the same XML document is identified with a key. The dynamic
type of the reference variables for the object elements under heap is specified when serialization takes place, so that deserialization is unambiguous.
Other versions: 7.31 | 7.40 | 7.54
Note
- The asXML representation of reference variables and referenced objects is only of relevance for XSL transformations. You cannot currently use simple transformations to transform reference variables.
Example
Continue
asXML - Named Reference Variables