Start of Content Area

Syntax documentation Variables  Locate the document in its SAP Library structure

An ST program can contain one or more variable declarations

 

<tt:variable name="..." [[s-val="..."][d-val="..."]]|[val="..."]/>

 

outside of a template. Use the name attribute to declare a symbolic name, which can be used to access the variable.

The symbolic name is not case-sensitive and must be unique. The namespace also includes the data roots declared with tt:rootand the parameters declared with tt:parameter.

You can directly access the variables in the context of the main template. The variables of the main template are not known in subtemplates,

Variables are data of the ST program which are, in contrast to the data roots, not bound to ABAP data objects. Use the additions s-valand d-val or valto assign a start value to any of the variables; specify the values as ABAP values. s-val only works for serialization, d-val only works for deserialiazation, and val works for Serialization and Deserialization.

Within a template, you use the tt:assign statement to assign a value to a variable. You access the variables using the var attribute of the different ST statements. 

 

 

End of Content Area