Ansicht
Dokumentation

ABENST_PROGRAMS_STRUCTURE - ST PROGRAMS STRUCTURE

ABENST_PROGRAMS_STRUCTURE - ST PROGRAMS STRUCTURE

Fill RESBD Structure from EBP Component Structure   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

- Structure of ST Programs

?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 that is structured as shown here.

  • The first line ? ... ?> serves to identify the transformation type (ST). It does not need to be entered because the syntax check adds it automatically.
  • The elements of the namespace "http://www.sap.com/transformation-templates" are ST statements. The namespace prefix tt is used in this documentation as a convention for this namespace. ST statements can be XML elements or attributes. All other components of an XML element are so called literal elements, which means that they have no semantics within the ST language.
  • Possible elements of an ST program are:

  • A main template defined with tt:template and any number of subtemplates. A template is a pattern for the XML data into which ABAP data is serialized or from which data is deserialized.

These elements can be in any order.

Note

In this documentation and in the example programs, double quotation marks (") are used as outer quotation marks and single quotation marks (') as inner quotation marks. 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 of an ST program






ROGBILLS - Synchronize billing plans   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 4318 Date: 20240420 Time: 080727     sap01-206 ( 40 ms )