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 internal table in XML format

Former Member
0 Likes
1,285

Hi experts,

I want to download an internal table into an XML format.

How can I achieve this?

I have used the GUI_DOWNLOAD earlier for XLS purpose, will that work in this case too?

Thanks,

Ajay.

Hi experts,

I want to download an internal table into an XML format.

How can I achieve this?

I have used the GUI_DOWNLOAD earlier for XLS purpose, will that work in this case too?

Thanks,

Ajay.

4 REPLIES 4
Read only

Former Member
0 Likes
790

Hi,

I think GUI download doesnot work,

check the function module SAP_CONVERT_TO_XML_FORMAT to save XML to local server/

regard,

Nazeer

Read only

Former Member
0 Likes
790

Hi ajay

see this thread http://wiki.sdn.sap.com/wiki/display/Snippets/downloadtoXML

Edited by: pravin s. on Dec 22, 2009 6:16 AM

Read only

Former Member
0 Likes
790

Hi,

try the below links

[LINK 1 |http://wiki.sdn.sap.com/wiki/display/Snippets/DynamicTransformationofInternaltabledataintoXMLandCreatingaZIPFile]

[LINK 2 |http://www.erpgenie.com/sap/abap/code/abap27.htm]

Read only

Former Member
790

Hi Ajay,

You can use the below format

DATA : gs_xml TYPE lvc_t_fccl.

(Fill lt_Table here)

TRY.

CALL TRANSFORMATION id SOURCE root = lt_Table

RESULT XML gs_xml.

CATCH cx_st_error.

.................

ENDTRY.

Then Call GUI_DOWNLOAD, passing gs_XML as data_tab and filetype = BIN

Note : GUI_DOWNLOAD will not work in background.

Hope this solves your problem

Regards,

Seema