Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Data Interfaces and Communication Interfaces →  ABAP and XML →  Transformations for XML →  ST - Simple Transformations →  ST - Access to ABAP Objects from ST 

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

Other versions: 7.31 | 7.40 | 7.54

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.