ABAP Keyword Documentation → ABAP - Reference → Data Interfaces and Communication Interfaces → ABAP and XML → Transformations for XML → ST - Simple Transformations → ST - Addressing ABAP Data
ST - Tree Structure of the Data Nodes
The starting points of any addressing of ABAP data in an ST program are the data roots of the main template declared using tt:root at transformation level. These data roots are the interfaces from the ST program to the calling ABAP program. When a simple transformation is called, any ABAP data object (reference variables or data objects that have reference variables as components are currently excluded) can be bound to any data root.
Each data root has its own tree structure, which can be used to address the components of the bound data object. Addressing subnodes of a data root is equivalent to referring to the components of the data object bound to the data root. The tree structures of the individual data roots are independent of one another.
The addressing of data nodes in the individual tree structures always starts at the data roots.
Other versions: 7.31 | 7.40 | 7.54
Note
Each template uses its own tree structures. Only the main template uses the data roots declared at transformation level that are bound directly to the ABAP data objects during transformation. When subtemplates are called, local data roots are bound to current data nodes of the caller.