cancel
Showing results for 
Search instead for 
Did you mean: 

CRM POPUP

0 Kudos

HI All

I am creating a pop up in crm ui screen.

What I need to do is create a confirmation popup on pressing accept button.

In the event of ACCEPT there is 1000 lines of code.

I need to execute my code before that.

Please help me on this.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Harshit,

Define the popup variable gv_popup type ref to if_bsp_wd_popup at implementation class level.

Try following in event handler of accept (you have to define new event handler where you will have to call those 1000 lines)

  IF gv_popup IS NOT BOUND.

    gv_popup = me->comp_controller->window_manager->CREATE_POPUP_2_CONFIRM(

IV_TITLE = "title"

IV_TEXT = "text"

IV_BTNCOMBINATION = IF_BSP_WD_WINDOW_MANAGER=>CO_BTNCOMB_YESNO ).

  ENDIF.

  IF gv_popup IS BOUND.

    gv_popup->open(  ).

    gv_popup->set_on_close_event( IV_EVENT_NAME = "new event handler"  ).

  ENDIF.