Ansicht
Dokumentation

ABENST_TT_CLEAR - ST TT CLEAR

ABENST_TT_CLEAR - ST TT CLEAR

BAL Application Log Documentation   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

- tt:clear, Initialization

tt:clear $[ref="node"$|var="variable"$] />

Effect

The statement tt:clear can be used to initialize a data root, a variable, or a parameter.

ref or var are used to specify the field that is to be initialized. If no field is specified, the current node is used implicitly. The following fields are possible:

Serialization

In serializations, only variables (or parameters) are initialized. If a node is specified with ref or if the current node is specified implicitly, tt:clear is ignored in serializations.

Deserialization

In deserializations, the specified nodes or variables (or parameters) are initialized.

Example

The transformation below demonstrates an initialization:

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

In deserializations, the initial value is assigned to the ABAP data object bound to the data root ROOT.






CL_GUI_FRONTEND_SERVICES - Frontend Services   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 2806 Date: 20240426 Time: 153254     sap01-206 ( 28 ms )