sapdev logo background
sapdev logo sapdev logo
Comments

SAP ST TT WRITE documentation, setup help and example usage



Return to SAP documentation index


ARTICLE

ST - tt:write , Write Variables

Syntax
<(><<)>tt:write var="variable" [map="..."]
[length|minLength="len"]
[xsd-type...] /

Effect
The command tt:write writes the value of a variable or
parameter to the target XML data.
variable is used to specify the variable to be written or to specify 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.

Serialization
The value of the variable (the parameter) is inserted into the XML
data 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 .

Deserialization
The tt:write command is ignored in deserializations.

Example
Serializes the start value of a variable.
<(><<)>tt:transform
xmlns:tt="http://www.sap.com/transformation-templates">
tt:variable name="VARI" val="333" /
<(><<)>tt:template>
<(><<)>X>
tt:write var="VARI"/
<(><<)>/X>
<(><<)>/tt:template>
/tt:transform
The result of the serialization is:
X 333 /X
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




ST_TT_VARIABLE
ST_USING




comments powered by Disqus