Skip to Content
0

cl_gui_frontend_services=>file_save_dialog return exception not_supported_by_gui from webdynpro

Jun 14, 2017 at 09:21 AM

182

avatar image

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Raymond Giuseppi
Jun 14, 2017 at 09:50 AM
2

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.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

that's the good answer!!! I replied on top of your comment but you provided to right answer first.

1

Hi Raymond,

I am using cl_wd_runtime_services=>attach_file_to_response, but this does not give any pop up so that we can provide in which location we can save the file.

How can I provide a pop up to the customer to enter the file as we can do it for cl_gui_frontend_services=>file_save_dialog

0
antoine foucault Jun 14, 2017 at 10:33 AM
1

Hello:

look at WDR_TEST_DOWNLOAD_FILE to get a sense of how to accomplish what you want.

Best,

Antoine

Share
10 |10000 characters needed characters left characters exceeded
Evgeny Gubenko Jun 14, 2017 at 09:40 AM
0

Hi!

Did you check this link?

Evgeny

Share
10 |10000 characters needed characters left characters exceeded