2009 Dec 22 5:03 AM
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.
2009 Dec 22 5:06 AM
Hi,
I think GUI download doesnot work,
check the function module SAP_CONVERT_TO_XML_FORMAT to save XML to local server/
regard,
Nazeer
2009 Dec 22 5:14 AM
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
2009 Dec 22 5:57 AM
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]
2009 Dec 22 6:41 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |