Entering content frame

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:root and 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-val and d-valor val to assign a start value to any of the variables; specify the values as ABAP values. s-val takes effect only during serialization, d-val only during deserialization, val during both 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. 

 

 

Leaving content frame