cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi,

I am generating an XML output using call transformation & this is followed by downloading to an .xml file on my PC desktop.

" Get Item Info.
call transformation zfilerunds
source requestfile = ls_checks
result xml ls_xml_result .

append ls_xml_result to it_xml_out.

data: fname type string.

fname = 'C:\Users\ \OneDrive\Desktop\Refunds1.xml'.
call method cl_gui_frontend_services=>gui_download
exporting
filename = fname
filetype = 'ASC'
replacement = ''
changing
data_tab = it_xml_out "it_xml_bkdata
exceptions
others = 24.

Its the same on Edge, Chrome or Firefox browsers. Please suggest me if i need to do any setting for xml handling.

0 Likes
View Entire Topic
xiaosanyu
Participant
0 Likes

change zfilerunds to ID and try again.

ricky_shaw
Contributor
0 Likes

Hi Yu, I didn't get you.Can you please elaborate?

xiaosanyu
Participant
0 Likes
DATA: lv_xml TYPE string.

CALL TRANSFORMATION id
  SOURCE source = <abap_structure>
  RESULT XML lv_xml.

CALL FUNCTION 'DOWNLOAD'
  EXPORTING
    filename             = 'file.xml'
    filetype             = 'ASC'
  TABLES
    data_tab             = lv_xml.

Using this code demo, check if the generated XML file can be opened

xiaosanyu
Participant
0 Likes

Also, you can show me the content of your XML file so that I can check the problem

ricky_shaw
Contributor
0 Likes

Hi Xu, I shared the pic of the XML contents..

zfilerunds is the name of my XMLfile. How can i make it to ID.

Can you send me the syntax?