Skip to Content

cl_gui_frontend_services=>file_save_dialog return exception not_supported_by_gui from webdynpro

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jun 14, 2017 at 09:50 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • Jun 14, 2017 at 10:33 AM

    Hello:

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

    Best,

    Antoine

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 14, 2017 at 09:40 AM

    Hi!

    Did you check this link?

    Evgeny

    Add comment
    10|10000 characters needed characters exceeded