SAP ST SYMMETRY



Get Example source ABAP code based on a different SAP table
  



ABAP_ST - Symmetry of Serialization and Deserialization
The language constructs of Simple Transformations support the formulation of reversible transformations, that is, of programs that p rovide the original values in the execution order serialization - deserialization (or vice versa). However, it is also possible to write programs that cannot be reversed.

ABAP_EXAMPLE_VX5
The simple example DEMO_ST_SYMMETRY illustrates a non-symmetrical transformation. Since the tt.value statements are not enclosed in separate elements, the serialized values of ROOT1 and ROOT2 are grouped in X.
TRNS DEMO_ST_SYMMETRY
The following ABAP program can call the transformation:
ABEXA 01712
The result of the serialization is: < X > Hello World! < /X>
Accordingly, the result of the deserialization to result1 is 'Hello World!', while result2 retains its initial value, which is different from the original content of field1 and field2 .
For a symmetrical transformation, the tt:value statements each have to appear in separate elements, or they must be separated by a unique text (which cannot appear in the first value).
ABAP_EXAMPLE_END