cancel
Showing results for 
Search instead for 
Did you mean: 

Read payload programmatically

Former Member
0 Kudos

I have a requirement to read the payload content in teh XI environment. Is that possible? I have the message id and other information available but i want to read the payload content (for the source message).

Is that possible?

Please advice.

Thanks.

Anuradha.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hello everyone.

Thanks for the answers.

The message I am interested in reading is a synchronous HTTP response coming from a 3rd party. Ideally I would have like to do some processing based on the response code - but since this is a synch one, there is no place where the desired processing can be defined. So I guess, I am left with the option of reading the payload programmatically (which basically means that I read the response) and based on the response code, do some processing like sending emails.

In the table SXMSCLUR I see the CLUSTD field. Is there any way I can read the contents of that field?

Please advice.

Thanks.

Anuradha.

former_member854360
Active Contributor
0 Kudos

Hi Anuradaha,

Its Possible

The message will be in SXMSPMAST in this table you can find all the information that is visible in SXMB_MONI.

SXMSPMAST has message id of the xml messages

The name of the table is SXMSCLUR and SXMSCLUP

in it the last field is CLUSTD which carries the payload

and you won't get XML messages directly from them

have a look inside them

Look this blog to know XI Tables

/people/gourav.khare2/blog/2007/12/12/interesting-abap-tables-in-xi-150-part-i

You can read those table in ABAP report .

Regards,

Debashish

Former Member
0 Kudos

Hi Anuradha,

If you would like to view the payload, you can see in either Runtime WorkBench(Java Stack) or through SXMB_MONI (ABAP stack). But you can view the payload only in XML format.

Thanks,

former_member472138
Active Contributor
0 Kudos

Through ABAP you can achieve it.

But why? what do you want to acheive?

Regards

Pothana

Former Member
0 Kudos

hi

please tell me more detail.

I cant understand what you want to do.

do you want to read xml file by fileadapter??

who want to read ?? file adapter?

Naoki

Former Member
0 Kudos

sorry I misunderstood...

you can read payload by message monitor(RWB) by messeage id.

Naoki