on 09-09-2009 1:36 PM
Dear SDNers,
I am trying to built an custom error monitor. I require access to the XML payload and parse it to retrieve data from it.
I need to know where the input XML messages and the XML with Error informations are stored in the database table.
I believe this informations would be stored in a raw format and an class/method will parse this raw data to XML content.
I require your help to find out the DB Table and the methods to parse the raw data to XML.
Thanks
~SaNv...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This would be of your interest
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/909760cb-0ec8-2a10-4a96-ee8417acfbc9
Regards,
Prateek
Hi Guys,
Thanks for your help.
With the below code I was able to read the Maindocument of Inbound payload. I would also require to read the Error payload in the Soap header.
CALL METHOD persist->read_msg_all
EXPORTING
im_msgguid = p_mesg
im_pid = pid
im_version = vers
IMPORTING
ex_message = xms_msg.
xms_msg->deleteheaderbyname(
nsuri = if_xms_run_time_env=>co_nsuri
lcname = if_xms_run_time_env=>co_lcname ).
xmb_msg ?= xms_msg.
CALL METHOD xmb_msg->if_xms_message_xmb~get_main_payloads
RECEIVING
return = payload.
READ TABLE payload INTO wa_payload INDEX 1.
CALL METHOD wa_payload-mainpayload->getbinarycontent
RECEIVING
return = content.
Now i need to find a method to read the erro document.
Instead of CALL METHOD xmb_msg->if_xms_message_xmb~get_main_payloads I need to use a different method, but not to find it myself.
Pls share ur thoughts on this.
~SaNv...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.