cancel
Showing results for 
Search instead for 
Did you mean: 

cl_gui_frontend_services=>file_save_dialog return exception not_supported_by_gui from webdynpro

former_member450029
Participant
0 Kudos

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?

Accepted Solutions (0)

Answers (3)

Answers (3)

raymond_giuseppi
Active Contributor

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.

antoine_foucault
Active Contributor

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

former_member450029
Participant
0 Kudos

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

antoine_foucault
Active Contributor

Hello:

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

Best,

Antoine

former_member400468
Active Participant
0 Kudos

Hi!

Did you check this link?

Evgeny