Ansicht
Dokumentation

ABENST_TT_CALL - ST TT CALL

ABENST_TT_CALL - ST TT CALL

TXBHW - Original Tax Base Amount in Local Currency   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

- tt:call, Calling Transformations

tt:call transformation="trafo">
  $[tt:with-root name="root1" $[ref="node1"$] />
   tt:with-root name="root2" $[ref="node2"$] />
   ...$]
  $[tt:with-parameter name="para1"
                      $[ref="node1"$|val="val1"$|var="var1"$] />
   tt:with-parameter name="para2"
                      $[ref="node2"$|val="val2"$|var="var2"$] />
   ...$]
/tt:call>


Effect

In an ST program, the statement tt:call can be used to call a different ST program trafo, as follows: The ST program trafo must exist in the repository. trafo is not case-sensitive.

The ST statement tt:with-root binds the data roots root1, root2, ... of the main template of the called transformation to the nodes node1, node2, ... of the current transformation, or passes the ABAP data objects that are currently bound to the specified nodes to these data roots. If ref is not specified, the current node of the calling transaction is used.

If formal parameters are declared with tt:parameter in the called ST program, these can be linked to the actual parameters with the ST statement tt:with-parameter. As actual parameters, ref can be used to specify data roots, var can be used to specify variables, and val can be used to specify values. Depending on the type of formal parameter, the values of the specified actual parameters are either passed in the call or used when the called ST program ends.

Example

In the ST program below, another ST program is called in a tt:loop loop.

tt:transform
  xmlns:tt="http://www.sap.com/transformation-templates">
  tt:root name="ROOT"/>
  tt:template>
    tab1>
      tt:loop ref="ROOT">
        key>
          tt:value ref="key" />
        /key>
        tt:call transformation="...">
          tt:with-root name="ROOT" ref="values"/>
        /tt:call>
      /tt:loop>
    /tab1>
  /tt:template>
/tt:transform>

If the called ST program is implemented as shown below, the transformation has the same function as the example of transforming internal tables.

tt:transform
  xmlns:tt="http://www.sap.com/transformation-templates">
  tt:root name="ROOT"/>
  tt:template>
    tab2>
      tt:loop ref="ROOT">
        value>
          tt:value/>
        /value>
      /tt:loop>
    /tab2>
  /tt:template>
/tt:transform>






Addresses (Business Address Services)   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 5247 Date: 20240420 Time: 162019     sap01-206 ( 47 ms )