SAP ST TT SKIP



Get Example source ABAP code based on a different SAP table
  


• skip ABAP_ST_ELEMENT

ABAP_ST - tt:skip, Skip Elements

ABAP_SYNTAX
<(><)>

What does it do?
The statement tt.skip allows XML elements to be skipped in deserializations. The statement can be located anywhere in a template.

Serialization
In serializations, tt:skip is ignored.

Deserialization
In deserializations, tt:skip has the following effect:
Without additions, the following XML content of the inbound stream is consumed up to the end of the current element or non-literal attribute, but no ST statements are executed.
Using the attributes name and count, as many consecutive elements of the name name are not deserialized as specified by the number in cnt.
Using the attribute name but not count, or using the attribute count='*', any number of consecutive elements with the name name are not deserialized.
Not using the attribute name but using the attribute count attribute, as many subsequent elements after the current element are not deserialized as specified in cnt. For cnt, a number or * can be specified, where * can stand for any number of elements.
In deserializations, when comparing the template, the tt:skip statement is compared to the structure of the inbound XML stream as if the skipped elements were specified in its place. This means that a tt:skip statement with the name attribute is correct only if this position of the inbound XML stream also has the corresponding number of elements of the specified name, and the element of a template executed after a tt:skip statement must correspond to the element in the XML data that follows after the skipped elements.

ABAP_EXAMPLE_VX5
In the Simple Transformation DEMO_ST_SKIP below, the template is divided into a part for serialization and a part for deserialization. In deserializations, the first two X1 elements, all X2 elements after the first X2 element, and the Y element including all its subelements are skipped.
TRNS DEMO_ST_SKIP
The following ABAP program can call the transformation:
ABEXA 01717
After the deserialization, the components of result are given the values of the third, fourth, and tenth component of struc.
ABAP_EXAMPLE_END