SAP ST TT SKIP
Get Example source ABAP code based on a different SAP table
ARTICLE
Syntax
Effect
The command
Serialization
In serializations,
Deserialization
In deserializations,
In deserializations, when comparing the template, the
Example
In the Simple Transformation below, the template is divided into a part for serialization and a part for deserialization. In deserializations, the first two
xmlns:tt='http://www.sap.com/transformation-templates'>
<(><<)>tt:root name='ROOT'/>
<(><<)>tt:template>
<(><<)>struc tt:ref='ROOT'>
<(><<)>tt:serialize>
<(><<)>X1><(><<)>tt:value ref='COL0' /><(><<)>/X1>
<(><<)>X1><(><<)>tt:value ref='COL1' /><(><<)>/X1>
<(><<)>X1><(><<)>tt:value ref='COL2' /><(><<)>/X1>
<(><<)>X2><(><<)>tt:value ref='COL3' /><(><<)>/X2>
<(><<)>X2><(><<)>tt:value ref='COL4' /><(><<)>/X2>
<(><<)>X2><(><<)>tt:value ref='COL5' /><(><<)>/X2>
<(><<)>Y>
<(><<)>X3><(><<)>tt:value ref='COL6' /><(><<)>/X3>
<(><<)>X3><(><<)>tt:value ref='COL7' /><(><<)>/X3>
<(><<)>X3><(><<)>tt:value ref='COL8' /><(><<)>/X3>
<(><<)>/Y>
<(><<)>X4><(><<)>tt:value ref='COL9' /><(><<)>/X4>
<(><<)>/tt:serialize>
<(><<)>tt:deserialize>
<(><<)>tt:skip name='X1' count='2' />
<(><<)>X1><(><<)>tt:value ref='COMPA' /><(><<)>/X1>
<(><<)>X2><(><<)>tt:value ref='COMPB' /><(><<)>/X2>
<(><<)>tt:skip name='X2' count='*' />
<(><<)>tt:skip name='Y' count='1' />
<(><<)>X4><(><<)>tt:value ref='COMPC' /><(><<)>/X4>
<(><<)>tt:skip/>
<(><<)>/tt:deserialize>
<(><<)>/struc>
<(><<)>/tt:template>
<(><<)>/tt:transform>
The following ABAP program can call the transformation:
DATA: BEGIN OF struc,
col0 TYPE i VALUE 0,
col1 TYPE i VALUE 1,
col2 TYPE i VALUE 2,
col3 TYPE i VALUE 3,
col4 TYPE i VALUE 4,
col5 TYPE i VALUE 5,
col6 TYPE i VALUE 6,
col7 TYPE i VALUE 7,
col8 TYPE i VALUE 8,
col9 TYPE i VALUE 9,
END OF struc.
DATA: BEGIN OF result,
compa TYPE i,
compb TYPE i,
compc TYPE i,
END OF result.
CALL TRANSFORMATION ...
SOURCE root = struc
RESULT XML xml_string.
CALL TRANSFORMATION ...
SOURCE XML xml_string
RESULT root = result.
After the deserialization, the components of