on 10-08-2008 9:57 AM
Hello,
how can i get the Message-ID after calling the execute_asynchronous method.
Thanx in advance!
Edited by: Sebastian Becker on Oct 8, 2008 12:13 PM
See this
http://help.sap.com/saphelp_nw04/helpdata/en/a1/082589fc4246f09793039d5fb01a17/content.htm
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry but that did not work, because it is for synchronous sending. I solved it that way:
TRY.
CREATE OBJECT lo_proxy.
lo_async_messaging ?= lo_proxy->get_protocol( if_wsprotocol=>async_messaging ).
*Set Qos EOIO defining the name of the queue
IF NOT lv_queuename IS INITIAL.
lo_async_messaging->set_serialization_context( lv_queuename ).
ENDIF.
*-Execute Proxy
CALL METHOD lo_proxy->execute_asynchronous
EXPORTING
output = ls_input.
get MSG-ID
lo_msg_id_protocol ?=
lo_proxy->get_protocol( if_wsprotocol=>message_id ).
l_msg_id = lo_msg_id_protocol->get_message_id( ).
WRITE:/ 'Message-ID', ' ' , l_msg_id , 'Material' , i_matnr.
ULINE.
COMMIT WORK.
CATCH cx_ai_system_fault INTO lo_fault.
WRITE 😕 lo_fault->errortext.
lv_msgtxt = lo_fault->errortext.
ENDTRY.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.