on 01-14-2015 10:01 AM
Hello Expert Learners,
I've been trying to download the internal table contents using the following code it's not working,
CALL METHOD lo_nd_vbak1->get_static_attributes_table
IMPORTING
table = lt_download.
*I can see the table values in debugging
loop at lt_download into ls_download.
concatenate str ls_download-vbeln ls_download-erdat ls_download-erzet ls_download-ernam
cl_abap_char_utilities=>newline into str separated by cl_abap_char_utilities=>horizontal_tab.
endloop.
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = str
IMPORTING
BUFFER = xstr.
*Here I observed xstr value is getting populated .
CALL METHOD cl_wd_runtime_services=>attach_file_to_response
EXPORTING
i_filename = 'C:\temp\Sales.xls'
i_content = xstr
i_mime_type = 'EXCEL'.
.
The file is not getting stored in the path I mentioned above ,even if I mentioned just the file name 'sales.xls' it's not working .
Please some one hlep.
Regards,
Nagendra
Hi,
While executing does Browser opens up a downloading pop-up?
Thanks
KH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I tested the same in IE and Chrome and i can able download contents. Try to apply 1093049 - ATTACH_FILE_TO_RESPONSE does not work and check.
Thanks
KK
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.