ARTICLE
ST - tt:value , Elementary Data Objects
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.
length , minLength
, or maxLength can be used to specify a
length.
The value is validated by specifying
xsd-type... .
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
during serialization.
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.
Example
See Simple Transformation, tt:value
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved