Application Development 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: 

Mass download of sxmb_moni xml files

meenakshi-btp
Explorer
0 Kudos

Hi All,

We have a requirement where we have to download the SXMB_MONI payload data and store it somewhere for reference. It can be AL11 or Local PC.

I have written a program where I am able to get the Payload data as RAWSTRING. Now I want to download this RAWSTRING data as XML in  Local PC.

I am using WS_DOWNLOAD but it is not working as expected. It does generate the xml file but it contains some error.

Here is my code:

  CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
      bin_filesize = w_size
      filename = 'C:\Test1.xml'
      filetype = 'BIN'
    TABLES
      data_tab = it_xml_tab  "Contains RAWSTRING Data
    EXCEPTIONS
      OTHERS  

= 10.

Please suggest if there is any other way we can mass download SXMB_MONI Payload data or else if we have to go by program, how can I download payload data to local system.

Many Thanks!

2 REPLIES 2

thanga_prakash
Active Contributor
0 Kudos

Hi Meenakshi,

I guess you have to do some conversions before download the RAWSTRING.

Convert String to XML. Refer to the below links.

convert string to XML | SCN

Converting string to XML | SCN

Gerard
Explorer
0 Kudos

Hi meenakshi.shukla2,

How did you download payloads from SXI_MONITOR via ABAP?
I'm trying to use SXMB_GET_MESSAGE_PAYLOAD Function module but it's not working.

Also tried CL_XMS_PERSIST->READ_MSG_ALL but still, not working.

Thanks!