SAP ST TT INCLUDE



Get Example source ABAP code based on a different SAP table
  


• include ABAP_ST_ELEMENT

ABAP_ST - tt:include, Include Transformations

ABAP_SYNTAX
< tt:include name='trafo' $[templates='tmpl1 tmpl2 ...'$] />

What does it do?
In an ST program, the statement tt:include can be used to include a different ST program trafo, as follows: This statement makes the templates and type definitions of the included program usable in the current ST program. The ST program trafo must exist in the repository. trafo is not case-sensitive.
The ST statement tt:include can be listed in an ST program only outside of templates. By default, it includes all named templates of transformation trafo at transformation level (unnamed main templates are not included). No namespace conflicts can occur and transformations must not include themselves.
If the attribute templates is specified, only the templates tmpl1 tmpl2 specified there and the templates called by them using tt:apply are included.



Latest notes:

Only those transformations can be included in another transformation whose named templates are not in conflict with the existing named templates. tt:apply can be used to use the included named templates as subtemplates in the including template.
NON_V5_HINTS
ABAP_HINT_END

ABAP_EXAMPLE_VX5
The ST program below corresponds to the example from Subtemplates Without Their Own Data Roots , except that the subtemplate of an included ST program is used.