SAP ST STRUCTURE ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_ST - Structures
This example demonstrates the symmetrical serialization and deserialization of a nested structure.

ABAP_SOURCE_CODE
DEMO CL_DEMO_ST_STRUCTURE

ABAP_DESCRIPTION
In the ABAP class, a nested structure struc1 is serialized to xml_string using the Simple Transformation DEMO_ST_STRUCTURE and deserialized using the same transformation.
The Simple Transformation DEMO_ST_STRUCTURE has the following form:
TRNS DEMO_ST_STRUCTURE
The transformation consists of a template temp that defines the structure of the XML data and establishes relationships between value nodes and components of the structure. The ST statements tt:value and tt:copy are used to serialize and deserialize the structure components. The reverse transformation creates the same content in the structure result as in struc1.