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.
Request clarification before answering.
It could be a combination of several factors. I guess you are using IE?
If it's not clear what I'm saying, just do everything with bytes to avoid codepage issues:
DATA xstring TYPE xstring.
call transformation zfilerunds
source requestfile = ls_checks
result xml xstring.
DATA(solix_tab) = cl_bcs_convert=>xstring_to_solix( xstring ).
data: fname type string.
fname = 'C:\Users\ \OneDrive\Desktop\Refunds1.xml'.
call method cl_gui_frontend_services=>gui_download
exporting
bin_filesize = xstrlen( xstring )
filename = fname
filetype = 'BIN'
changing
data_tab = solix_tab
exceptions
others = 24.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Exact same kind of issue, but you also complexify because you are using an additional ABAP code to read from server, then write to desktop. If the data is transferred as character instead of byte, you risk that it's altered due to character encoding.
You won't understand what happens if you don't clearly understand what are characters, bytes, character encoding (codepages and algorithm).
change zfilerunds to ID and try again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.