cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Button in Popup is frozen

Former Member
0 Kudos

Hi All
   I created a Popup where i want to add custom button. But after adding the buttons they are coming frozen. Please find my code i wrote in the push button event EH_ONNEXT2. Is there any thing wrong with code ?

if lr_popup_cust is not bound.

     data: ls_button type crmt_thtmlb_button,

           lt_button type crmt_thtmlb_button_t.

     ls_button-id       = 'DISP'.

     ls_button-text     = 'Display'.

     ls_button-on_client_click = 'DISP'.

     ls_button-on_select = 'DISP'.

     ls_button-enabled  = abap_true.

     ls_button-type     = cl_thtmlb_util=>gc_button_icon.

     append ls_button to lt_button.

     clear ls_button.

     ls_button-id       = 'BACK'.

     ls_button-text     = 'Back'.

     ls_button-on_client_click = 'BACK'.

     ls_button-on_select = 'BACK'.

     ls_button-enabled  = abap_true.

     ls_button-type     = cl_thtmlb_util=>gc_button_icon.

     append ls_button to lt_button.

     clear ls_button.

     ls_button-id       = 'CANCEL'.

     ls_button-text     = 'Cancel'.

     ls_button-on_client_click = 'CANCEL'.

     ls_button-on_select = 'CANCEL'.

     ls_button-enabled  = abap_true.

     ls_button-type     = cl_thtmlb_util=>gc_button_icon.

     append ls_button to lt_button.

     clear ls_button.

     comp_controller->window_manager->create_popup_2_confirm( exporting iv_title = 'Custom Pup Up'

                                                                        iv_text  = 'Display Address ?'

                                                                        iv_btncombination if_bsp_wd_window_manager=>co_btncomb_custom

                                                                        iv_custombuttons  = lt_button

                                                              receiving rv_result = lr_popup_cust ).

     lr_popup_cust->set_on_close_event( iv_event_name = 'CONFIRM_CLOSE_CUST'

                                        iv_view       = me ).

   endif.

   lr_popup_cust->open( ).


Accepted Solutions (1)

Accepted Solutions (1)

kumar5
Active Contributor
0 Kudos

Hi,

Have you checked the below thread:

http://scn.sap.com/thread/3232674

Thanks

Kumar

ashik_k2
Contributor
0 Kudos

Hello Tulika,

Try

     ls_button-on_click instead of ls_button-on_select

Regards,

Ashik

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Tulika,

              I am not getting your question properly.

what is frozen means all are getting on more buttons.

If it is then please check number  of possible button fields .

may be no of possible fields less then the expected fields.

Regards

RR Pradhan