sapdev logo background
sapdev logo sapdev logo
Comments

SAP ST TT CLEAR documentation, setup help and example usage



Return to SAP documentation index


ARTICLE

ST - tt:clear , Initialization

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

Effect
You can use the statement tt:clear to initialize a data root , a variable , or a parameter .
You use ref or var to specify the field that you want to initialize. If no field is specified, the current node is used implicitly. The following fields are possible:
  • A node node specified in accordance with the addressing rules .

  • A variable or a

  • parameter variable .

    Serialization
    During serialization, only variables (or parameters) are initialized. If a node is specified with ref or if the current node is specified implicitly, tt:clear has no effect during serialization.

    Deserialization
    During deserialization, the specified nodes or variables (or parameters) are initialized.

    Example
    The transformation below shows 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
    During deserialization, the initial value is assigned to the ABAP data object bound to the data root ROOT .
    Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




    ST_TT_CAST
    ST_TT_COND




    comments powered by Disqus