SAP ST TT CALL-METHOD WRITERREADER

Get Example source ABAP code based on a different SAP table
  


ARTICLE

ST - tt:call-method, writer, reader, XML Stream

Syntax
<(><<)>tt:call-method class='class'|var='oref'
[s-|d-]name='meth'
...
writer='p_writer'
reader='p_reader'>
...
<(><<)>/tt:call-method>

Effect
In the static method or instance method called from an ST program, the attributes writer and reader can be used to access the XML stream where the serialization or deserialization is taking place.
The called method meth must have an optional parameter with the reference type IF_SXML_WRITER or IF_SXML_READER, depending on the direction of transformation. The name of this parameter can be specified after the writer or reader attributes. In serialization, the p_writer parameter is passed a reference to the current write stream; in deserialization, the parameter of type p_reader is passed a reference to the current read stream. In the method meth, these parameters can be used to work with the XML stream.