cancel
Showing results for 
Search instead for 
Did you mean: 

Report to Save data in XML format

0 Kudos

Hi,

I am getting data in XML format through a RFC. I want this data to be saved as an XML file by opening a 'Save As' dialog box so that I can choose a destination and save the file there. Please provide me code for writing such a report program. It would be better if someone can provide me the area in SAP Help where I can find such material.

Thanks in advance!!

Regards,

Saurabh

Accepted Solutions (0)

Answers (1)

Answers (1)

Vinod_Chandran
Active Contributor
0 Kudos

Hi,

Use the class cl_gui_frontend_services.

For more info please see this.

Cheers

Vinod

0 Kudos

Hi Vinod,

If i use the method cl_gui_frontend_services=>file_save_dialog

then how do I pass the XML data that is to be saved to this method or should I use some other method.

Regards,

Saurabh

Vinod_Chandran
Active Contributor
0 Kudos

Hi,

You can use this method to get the file name and then the function module GUI_DOWNLOAD to download the data. For this you have to have the XML data in an internal table.

Cheers

Vinod