SAP ABAP XSLT ASXML TABLE



Get Example source ABAP code based on a different SAP table
  



ABAP_ASXML - Mapping of Internal Tables
The asXML representation of internal tables is significant mainly for XSL transformations. In Simple Transformations, this representation is important only when using the statement tt:copy .
The lines of an internal table are represented in asXML as a sequence of subelements of the table element. The content of each subelement matches the canonical representation of the line value. The name of a subelement is not relevant. If the canonical XML representation is created by a serialization, the name from the ABAP Dictionary is used when it is referred to, otherwise the name is item. All table categories are allowed. Serializations do not pass any information about the table category to the XML data. If the target field of an XSL transformation is a sorted table, the lines are sorted accordingly in the deserialization.
If the required XML element does not exist in deserializations to an internal table, the internal table retains its previous content. If an empty element is assigned to an internal table, it is set to its type-dependent initial value, that is, it is emptied. To initialize the internal table in either case, the transformation option clear with the value all can be used.

ABAP_EXAMPLE_ABEXA
asXML, Mapping of Tables
ABAP_EXAMPLE_END