Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Data Interfaces and Communication Interfaces →  ABAP and XML →  Transformations for XML →  ST - Simple Transformations →  ST - Serialization and Deserialization →  ST - Transformation of ABAP Values 

ST - tt:value, Elementary Data Objects

Other versions: 7.31 | 7.40 | 7.54

Syntax


<tt:value [ref="node"] [map="..."] 
                       [length|minLength|maxLength="len"]
                       [xsd-type...]
                       [option="...,..."] />

Effect

This form of the ST command tt:value serializes and deserializes elementary data objects.

The optional attribute ref can be used to define the current node for the command. If ref is not specified, the current node of the surrounding element is used.

Elementary ABAP values are mapped to XML values (and back) in accordance with the asXML rules for elementary types. A special mapping is defined for data objects whose elementary data type refers to special domains in ABAP Dictionary.

  • map can be used to specify a mapping list that maps multiple values to a single value.
  • option="...,..." can be specified to define special formats for certain data types, so that the formats override the associated mapping rule.

Serialization

If map is not specified, the value of the elementary ABAP data object that is bound to the current node is inserted into the XML data in place of the command in asXML format or in the format specified in option in serializations.

Deserialization

During deserialization, the current value of the XML inbound stream is passed to the ABAP data object. The end of the XML value is determined either by the end of the text node (for example, at the element end) or by the beginning of a literal text following directly in the ST program. The XML value must match the asXML representation of the ABAP data type or a format specified in option and be in its value range.


Continue

ST - map, Mapping List

ST - length, minLength, maxLength, Specified Length

ST - xsd-type, Validation

ST - option, Mapping Rules

Simple Transformation, tt:value