cancel
Showing results for 
Search instead for 
Did you mean: 

Action for handling YES/NO functionality in create_popup_to_confirm

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member205703
Participant
0 Kudos

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

Former Member
0 Kudos

Thanks Amol,

It's working fine.

i want to know the button_kind functionality.

and from where i get enteries for button_kind .

Sanket

Former Member
0 Kudos

hi sanket....

go to the domain WDR_POPUP_BUTTON_KIND from se11 and click the value ranges tab. you can see the list of button kinds available.

--regards,

alex b justin

Answers (2)

Answers (2)

former_member182190
Active Participant
0 Kudos

Hi Sanket,

Yes you can use suitable Action names for handling YES/NO functionality for each Popup window.

Eg: Give YES_1 for first popup window, YES_2 for second popup and proceed to write your code relevant to that specific action.

Regards,

Ismail.

Former Member
0 Kudos

hi sanket......

you can use different action names for different popups. that should not be a issue..

--regards,

alex b justin