cancel
Showing results for 
Search instead for 
Did you mean: 

Set EOIO from client proxy in ECC for sender interface

former_member188019
Active Participant
0 Kudos

we are working in interface:

SAP-->Client Proxy-->PI-->nonSapAppl.

We are trying to trigger messages EOIO Quality of service from SAP ECC.

as per the blog. Guaranteeing Exactly Once In Order - SAP NetWeaver Process Integration - SAP Library

we have used following code. but it is triggering the messages in EO and not in EOIO.


TRY.

     CREATE OBJECT gr_consumer_proxy.

     create OBJECT lo_adsave.

     gr_proto_async ?=

       gr_consumer_proxy->get_protocol( if_wsprotocol=>async_messaging ).

     gr_proto_async->set_serialization_context( 'TEST_EOIO' ).

     CALL METHOD lo_adsave->si_isp_adprodorder_save_oa

   EXPORTING

     OUTPUT = ls_proxy

            .

       COMMIT WORK.

CATCH CX_AI_SYSTEM_FAULT INTO ex_ref.

  msg_text = ex_ref->get_text( ).

ENDTRY.

in ecc sxmb_moni, it is showing as:

<SAP:QualityOfService>ExactlyOnce</SAP:QualityOfService>

How can we ensure in SAP ECC sxmb_moni.

Madhu_1980.

Accepted Solutions (1)

Accepted Solutions (1)

former_member190293
Active Contributor
0 Kudos

Hi Madhu!

Please check your code: you set serialization context for gr_consumer_proxy and then call method of lo_adsave.

Regards, Evgeniy.

Answers (1)

Answers (1)

former_member182412
Active Contributor
0 Kudos

Hi Madhu,

If you use above example from sap help it will work, you can use below code.


   data: queueid type sxmsqidapp.

  queueid = 'Madhu_1980'.

  create object lr_proxy.

   lo_proxy_async_messaging ?= lr_proxy->get_protocol( if_wsprotocol=>async_messaging ).

  lo_proxy_async_messaging->set_serialization_context( queueid ).

   ld_output-saperpend_of_processing = is_outbound.

   lr_proxy->saperpend_of_processing( exporting output = ld_output ).

   commit work.

Regards,

Praveen.