Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Data Interfaces and Communication Interfaces →  ABAP and XML →  Simple Transformations →  ST - Serialization and Deserialization →  ST - Reading and Writing Variables 

ST - tt:write, Write Variables

Other versions: 7.31 | 7.40 | 7.54


<tt:write var="variable" [map="..."] 
                         [xsd-type...] />


The command tt:write enables you to write the value of a variable or parameter to the target XML document:

You use variable to specify the variable to be written or a parameter. The same applies to the attributes map, length, and minLength and to xsd-type... as to the statement tt:value. The variable must represent an elementary value.


The value of the variable (the parameter) is inserted into the XML document at the position of the command (if applicable, after map). Depending on the type of the variable or parameter, a mapping takes place in accordance with the asXML format.


The tt:write command has no effect during deserialization.


Serializing the start value of a variable.

  <tt:variable name="VARI" val="333" />
      <tt:write var="VARI"/>

The result of the serialization is: