2010 Oct 22 11:31 AM
Hello,
What is the ABAP method to download a file on desktop when the control comes in from the browser window?
I have tried with "cl_gui_frontend_services=>gui_download" method but this does not work and gives unknown error exception.
Is there an alternate method to achieve the download functionality?
Best Regards,
Pankaj
2010 Oct 22 12:57 PM
Please ehave a look at CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE( )
Hello,
What is the ABAP method to download a file on desktop when the control comes in from the browser window?
I have tried with "cl_gui_frontend_services=>gui_download" method but this does not work and gives unknown error exception.
Is there an alternate method to achieve the download functionality?
Best Regards,
Pankaj
2010 Oct 22 12:00 PM
Hi!
Are you using ABAP WebDynpro for that?
In a view's layout tab, there's a filedownload component, you might try out that one.
Regards
Tamá
2010 Oct 22 12:42 PM
Hi Tamás,
No, I am using a WAD template and there is a button on the WAD report. When I click on button, the selection binding parameters are passed to my customised class through a planning function. Within the implementation of class method, I try to call the GUI_DOWNLOAD method, where it does not work.
Is there any alternative to this?
Best Regards,
Pankaj
2010 Oct 22 12:57 PM
Please ehave a look at CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE( )
2010 Oct 22 1:45 PM
Hi,
cl_gui_frontend_services=>gui_download is used if you are using SAP Gui, when in a browser (i.e. WebDynpro) you have to use CL_WD_RUNTIME_SERVICES=>attach_file_to_response.
Regards,
Ivan
2010 Oct 25 7:42 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |