cancel
Showing results for 
Search instead for 
Did you mean: 

Some problem of download BSP data into excel using cl_bsp_utility=>download

Former Member
0 Kudos

Hello Experts,

I have read the blog of thomas.jung for download bsp data into excel, and it's working correct, and after some try and error, now I can download the excel with multi sheets.It's all cool except one thing.....when I add a button on the standard screen of the supplier qualification of the slc to download the excel file, after the popinp up screen, the standard screen can't do any operation at all......there are no any error message and the downloaded file is all correct .

Does any one know what can I do?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Problem is resolved~

Former Member
0 Kudos

any ideas?

By the way, after some research, maybe the issue was caused by the setup of the button, but I don't know how to fix it...0rz

the standard code for buttton is

*********

lv_id = mv_id && '>display'.
lo_edit_display_button
= cl_thtmlb_button=>factory( id       = lv_id
                                                  
text     = lv_button_text
                                               tooltip 
= lv_button_text
                                               enabled 
= 'TRUE'
                                              onclick 
= lv_button_action ).
WHILE io_page_context->element_process( element = lo_edit_display_button ) = if_bsp_element=>co_element_continue.
ENDWHILE.

**********



so I copy it and modify like this:

***********

lv_id = mv_id && '>download'.

    lo_download_excel_button = cl_thtmlb_button=>factory( id       = lv_id
                                                       
text     = w_text
                                                    tooltip 
= w_text
                                                    enabled 
= 'TRUE'

    onclick  = /srmsm/if_ql_ext_ui_c=>ZC_ACTION_DOWNLOAD_EXCEL
).
WHILE io_page_context->element_process( element = lo_download_excel_button ) = if_bsp_element=>co_element_continue.
ENDWHILE.


***********