SAP ST PROGRAM ABEXA

Get Example source ABAP code based on a different SAP table
  


ARTICLE

Simple Transformation, Example of an ST Program
Symmetrical serialization and deserialization of a nested structure.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
The called transformation DEMO_ST_PROGRAM shows the principal structure of an ST program:
TRNS DEMO_ST_PROGRAM
A single template, tmpl1, is defined as the main template. Two data roots, ROOT1 and ROOT2, are declared. The template contains two subelements, X1 and X2 of an element X0 , which are given the values of the data roots during serialization (or whose values are given to the data roots during deserialization) using the tt:value command. After the deserialization, result1 and result2 have the same content as source1 and source2.