SAP ST TT ASSIGN
Get Example source ABAP code based on a different SAP table
ARTICLE
Syntax
[ref='node'|val='value'|var='variable'] />
Effect
You use the statement
You use
An assignment between reference variables with
Serialization
During serialization, only variables (or parameters) are given the current value of the source field. If a data node is specified as the target field (using
Deserialization
During deserialization, only variables (or parameters) or directly specified values are evaluated as source fields. If a node is specified as the source field (using
The following syntax can be used if the current node, or the node specified after
<(><<)>tt:assign [to-ref='comp']
[val='value'|var='variable'] />
...
<(><<)>/tt:assign>
A row is then inserted into the internal table specified. The values of the components are set using
Example
The transformation below shows value assignments:
xmlns:tt='http://www.sap.com/transformation-templates'
<(><<)>tt:root name='ROOT'/>
<(><<)>tt:variable name='VARI' val='11'/>
<(><<)>tt:parameter name='PARA' val='22'/>
<(><<)>tt:template>
<(><<)>tt:assign to-var='VARI' var='PARA'/>
<(><<)>tt:assign to-ref='ROOT' var='VARI'/>
<(><<)>/tt:template>
<(><<)>/tt:transform>
During a deserialization, the value 22 is assigned to the ABAP data object bound to the data root