Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Download XML Request

Former Member
0 Kudos
1,420

Via transaction SXMB_MONI in PI you can access the XML request/response.

In this transaction it is also possible to download the payload in XML format via XML Message >> Inbound Message >> Payloads >> MainDocument >> RightClick >> Download

I want to do the same now in a program. Which function can we use to download an XML request if we know the message ID of the request?

Kind regards,

Lieselot...

5 REPLIES 5
Read only

Former Member
0 Kudos
949

Hi,

Try GUI_DOWNLOAD function. Use the type as 'BIN' and filename as filename.xml

Br,

Advait

Read only

0 Kudos
949

Where can I enter the message ID of the XML request in this function?

I need this as an input parameter. How can I otherwise select the correct XML message?

Kind regards,

Lieselot

Read only

0 Kudos
949

Hi,

Check report RSXMB_DISPLAY_MSG_VERS_NEW in your XI system . The report parameter is a message id and it shows the message.

What you will need to do is re-use some code from there, especially the part in the PBO modules of include RSXMB_DISPLAY_MSG_VERS_NEW_O01.

What I saw in this include is that a subroutine called refresh fetches the message contents in the the internal table gt_info , component str2 of this internal table has the message content.

Hope this helps.

Br,

Advait

Read only

Former Member
0 Kudos
949

hi,

go through the following link

[;

hope this helps

Regards

Ritesh

Read only

0 Kudos
949

Ritesh,

The link is not useful for me because I have no internal table to transform to XML.

If have the ID of an XML request and I want to use this ID to download the XML in XML format.

Kind regards,

Lieselot