SAP ST STATEMENTS



Get Example source ABAP code based on a different SAP table
  



ABAP_ST - Overview of Statements
ST programs are XML data consisting of literal elements and ST statements. ST statements can be distinguished from literal elements (XML elements, attributes, and text) by their namespace 'http://www.sap.com/transformation-templates', for which the prefix tt is used by convention.
During serialization and deserialization, literal elements are copied unchanged into a target document or consumed from a source document and compared. ST statements are executed according to their semantics.
Data is addressed using tree structures whose root nodes (data roots) are bound to ABAP data objects. The root nodes can always be addressed directly using their names. In addition, a current node can be defined, which can be addressed using $ref. ST statementMeaning
< tt:apply ...>Calls a subtemplate
< tt:assign ...>Assigns a value to data
< tt:attribute ...>Non-literal attribute
< tt:call ...>Calls an ST program
< tt:call-method ...>Calls a static method or an instance method in ABAP Objects
< tt:cast ...>Downcasts reference variables
< tt:clear ...>Initializes data
< tt:cond ...>Conditional transformation
< tt:cond-var ...>Condition for variables
< tt:context ...> Context for local data roots in subtemplates
< tt:copy ...>Transformation to and from asXML
< tt:create-object ...>Creates objects in ABAP Objects
< tt:d-cond ...>Conditional transformation for deserializations
< tt:deserialize ...>Defines the transformation direction
< tt:empty ...>Empty pattern
< ... tt:extensible='...'...> Extensibility of literal XML elements
< tt:front ...>Initial part of a structured type
< tt:group ...>Groups conditional transformations