ABAP Keyword Documentation → ABAP - Reference → Data Interfaces and Communication Interfaces → ABAP and XML → asXML - Canonical XML Representation → asXML, Examples of Mappings
asXML, Mapping of Tables
The example demonstrates the mapping of internal tables.
Other versions: 7.31 | 7.40 | 7.54
Source Code
DATA: itab TYPE TABLE OF i,
xmlstr TYPE xstring.
DO 3 TIMES.
APPEND sy-index TO itab.
ENDDO.
CALL TRANSFORMATION id
SOURCE table = itab
RESULT XML xmlstr.
cl_abap_browser=>show_xml( xml_xstring = xmlstr ).
Description
Every row of the internal table itab
is displayed in a subelement item of the table.