Start of Content Area

Background documentation Using Sequences in Other Modules  Locate the document in its SAP Library structure

Proxy objects created in one program module can also be used in other modules. This occurs, for example, when the reference to a proxy object is used as a parameter for a method call and this parameter is then used within this method for calling Web services.

If "in order" processing was activated for the proxy object using an active sequence in the program to be called, then the calls of all of the methods of this object in the called module are processed "in order".

If, however, "in order processing" was no activated in the calling program, then you can still set "in order processing" by using sequences in the module that was called.

 

  method mycall.  “importing proxy ref to co_my_proxy
    l_seqprot  type ref to if_wsprotocol_sequence,
    l_sequence type ref to if_ws_client_sequence.
    l_seqprot ?= proxy->get_protocol( if_ws_protocol=>sequence ).
    l_sequence = l_seqprot->get_client_sequence( ).

    if l_sequence is not bound.

      l_sequence = l_seqprot->create_transient_sequence( ).

    endif.

    l_sequence->begin( ).

    l_seqprot->set_client_sequence( l_sequence ).
    proxy->m1( ).

    proxy->m2( ).

    l_sequence->end( ).

  endmethod.

If a sequence was specified for a proxy in the calling program and if this sequence is active, then the GET_CLIENT_SEQUENCE method of the sequence displays an interface reference of the type IF_WS_CLIENT_SEQUENCE.

 

 

 

End of Content Area