SAP ST TT ATTRIBUTE
Get Example source ABAP code based on a different SAP table
• attribute ABAP_ST_ELEMENT
ABAP_ST -
ABAP_SYNTAX
...
< /tt:attribute>>
What does it do?
The non-literal attributes of an ST program are defined using the statement
This statement can be specified one or more times within a literal XML element before its subelements. Each statement defines a non-literal attribute of the current XML element with the name
Serializing Non-Literal Attributes
During serialization, the name
Latest notes:
In valid XML data, the names of the attributes of an XML element must be unique. For performance reasons, this is not checked in serializations of non-literal attributes. Instead, it must be done by the application developers themselves.
NON_V5_HINTS
ABAP_HINT_END
Deserializing Non-Literal Attributes
In deserializations, the name of the attribute is compared to the attributes of the current XML element in the source XML data. The order of the attributes is not relevant. The deserialization fails if the attribute does not exist in the inbound stream. After that, the value of the attribute is deserialized according to the content of
Special Form of Non-Literal Attributes
ABAP_SYNTAX
$[map=...$] />>
What does it do?
This special form of non-literal attributes combines the
This special form is a short form of:
< tt:value ref='node' $[map=...$] />
< /tt:attribute>>
This allows the simple formulation of the frequent use case of expressing an elementary value as the content of an attribute.
ABAP_EXAMPLE_VX5
In the ST program
TRNS DEMO_ST_ATTRIBUTE1
If the values
< Y > ... < /Y>
< /X>>
To deserialize the above result again, the ST program
TRNS DEMO_ST_ATTRIBUTE2
ABAP_EXAMPLE_END