on 06-14-2017 10:21 AM
Hi,
I am trying to download PDF and Excel from webdynpro using cl_gui_frontend_services=>file_save_dialog and cl_gui_frontend_services=>gui_download.
But for cl_gui_frontend_services=>file_save_dialog 'not_supported_by_gui' exception is raised. Before calling this method I have prepared the data by calling the smartform and calling FM CONVERT_OTF.
How to overcome this and download pdf and excel from webdynpro?
Forget the cl_gui* classes in WebDynpro those classes require an active SAPGUI connexion and so are not suitable. Better look for cl_wd* classes and methods like cl_wd_runtime_services=>attach_file_to_response.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
that's the good answer!!! I replied on top of your comment but you provided to right answer first.
Hello:
look at WDR_TEST_DOWNLOAD_FILE to get a sense of how to accomplish what you want.
Best,
Antoine
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.