Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

No popup when using cl_bsp_utility=>download

Hi friends,

I´m using cl_bsp_utility=>download method from my BSP to download a file. I´ve never used it, but as long as I could see in the forum, it´s suppossed to open a popup to choose the file destination, right?...

Well, I´m getting nothing...what could be happening? I´ve tried the same code from different pc´s, to discard antivitrus, or popup blockers, or something like that, and nothing at all. After my pushbutton click, runs all the code without any error, but no popup.

I would appreciate very much any kind of help. Here´s my code, just in case...


	  call function 'SCMS_STRING_TO_XSTRING'
            exporting
              text     = lv_string
              mimetype = 'APPLICATION/MSEXCEL;charset=utf-8'
            importing
              buffer   = lv_xstring.

          concatenate cl_abap_char_utilities=>byte_order_mark_little
                      lv_xstring into lv_xstring in byte mode.

          call method cl_bsp_utility=>download
            exporting
              object_s            = lv_xstring
              content_type        = 'APPLICATION/MSEXCEL;charset=utf-8'
              content_disposition = 'attachment;filename=*.xls'
              response            = _m_response
              navigation          = navigation.

Thanks in advance!

Not what you were looking for? View more on this topic or Ask a question