cancel
Showing results for 
Search instead for 
Did you mean: 

table where XML Messages are stored..?

santhosh_kumarv
Active Contributor
0 Kudos

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...

Accepted Solutions (1)

Accepted Solutions (1)

prateek
Active Contributor
0 Kudos

Happened to see this?

http://wiki.sdn.sap.com/wiki/display/XI/XI+Tables

Regards,

Prateek

santhosh_kumarv
Active Contributor
0 Kudos

Thanks Prateek... I was able to get most of these by debugging the standard report.

I am not abe get the correct table the XML contents are stored and the method to parseit..

~SaNv...

Former Member
0 Kudos

Hello Santosh,

Check this blog where in the program has a way using certain methods to retrive message payload! Hope from there you continue debug!

/people/sravya.talanki2/blog/2006/02/21/abap-based-trex-in-xi-proto

Regards,

Jilan

prateek
Active Contributor

Answers (1)

Answers (1)

santhosh_kumarv
Active Contributor
0 Kudos

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...