What does it do? The statement tt:read-write> is a short form of the following two statements: < tt:read var='variable' $[type='type' $[length='len'$] $[decimals='dec'$]$] $[map='...'$] $[minLength$|maxLength='len'$] $[xsd-type...$] />> < tt:write var='variable' $[map='...'$] $[minLength$|maxLength='len'$] $[xsd-type...$] />> Specifying tt:read-write> has the same effect as the statements tt:read>> and tt:read>> listed one directly after the other. The attribute type> and the attributes length> and decimals> specified using this attribute are respected by tt:read > only. As with tt:read>, the attribute length> can only be specified together with type>.
ABAP_EXAMPLE_VX5 Serialization and Deserialization. In serializations, the variable VARI> is assigned the values of the data object bound to ROOT > and is written to XML using read-write>. In deserializations, the value of the variable is read from XML and assigned to the data object bound to ROOT>. The following example can be found as DEMO_ST_READ_WRITE>>. TRNS DEMO_ST_READ_WRITE The following ABAP program can call the transformation: ABEXA 01715 The result of the serialization is: < X > abcde < /X>> The transformation is not symmetrical>, due to minLength>>. After deserialization, the string str> has at least 10 places. ABAP_EXAMPLE_END