Skip to Content

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

Action for handling YES/NO functionality in create_popup_to_confirm

Hi all,

I am creating several Popup window in the View using method create_popup_to_confirm of interface IF_WD_WINDOW_MANAGER.Is there any restrictions of creating Actions YES/NO only for button kind 'YESNO'.

For each Popup can i create different actons for handling corresponding functionalities in different Methods.

Can i use any suitable Action name for handling YES/NO functionality.

Points will be sured.

Thanks

Sanket sethi

Former Member
Former Member replied

Hi Sanket,

Yes you can make the actions as you want by assigning the action name to YES/NO events.

call method lr_wd_window_manager->create_popup_to_confirm
        exporting
          text         = lt_text
          button_kind  = '4'
          window_title = 'title'
        receiving
          result       = lr_wd_window.



  lr_wd_window->subscribe_to_button_event(
         exporting
           button            = if_wd_window=>co_button_yes
           action_name       = 'ACT_YES'
           action_view       = lr_view_controller
           ).

 lr_wd_window->subscribe_to_button_event(
        exporting
          button            = if_wd_window=>co_button_no
          action_name       = 'ACT_NO'
          action_view       = lr_view_controller
          ).

Regards

Amol Deshmukh

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