ABAP Keyword Documentation →  ABAP − Reference →  Data Interfaces and Communication Interfaces →  ABAP and XML →  Transformations for XML →  Simple Transformations → 

ST - Structure of ST Programs

Syntax

<?sap.transform simple?>
<tt:transform [template="tmpl"]
  xmlns:tt="http://www.sap.com/transformation-templates">

  [<tt:type name="..." [...]>
     ...
   </tt:type>
   ...]

  [<tt:root name="root1" [...] />
   <tt:root name="root2" [...] />
   ...]
  [<tt:parameter name="para1" [...] />
   <tt:parameter name="para2" [...] />
   ...]
  [<tt:variable name="vari1" [...] />
   <tt:variable name="vari2" [...] />
   ...]

  <tt:template [name=="tmpl"]>
    ...
  </tt:template>
  [<tt:template [name=="..."]>
     ...
   </tt:template>
  ...]

</tt:transform>

Effect

An ST program must consist of valid XML data, structured as follows.

These elements can be in any order.

Note

In this documentation and in the example programs, double quotation marks (") are used as outer quotes and single quotation marks (') as inner quotes. However, as usual in XML, this is not mandatory. For example, 'not-initial(ref("X.Y"))' can be written instead of "not-initial(ref('X.Y'))".

Example

See Example of an ST Program




Continue
ST - tt:transform, Root Element
ST - tt:type, tt:front, tt:node, type definitions
ST - Data Declarations
ST - tt:template, Main Template
Simple Transformation, Example of an ST Program