cancel
Showing results for 
Search instead for 
Did you mean: 

Code in Default 'OK' of popup

Former Member
0 Kudos

Hi all,

I called a popup window through wizard, and there is a default button "OK"

i want to write code in that.

can anyone suggest me.

Thanks all,

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member184578
Active Contributor
0 Kudos

Hi,

You have to use subscribe_to_button_event method of window

check this help docu: http://help.sap.com/saphelp_rc10/helpdata/en/43/c2283b2320332ce10000000a11466f/content.htm

also check this article for ref: [Subscribe to button Event in WDA|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80f4114d-00a3-2e10-58ae-ea699d11c867?quicklink=index&overridelayout=true]

hope this helps u.,

Thanks & Regards,

Kiran

Former Member
0 Kudos

This has been answered many times. Please do a search before posting.

Follow this thread for example

[|]

Former Member
0 Kudos

Hi Vani,

You have to use subscribe_to_button_event method. check below sample :

* creating ok button
  lo_window->subscribe_to_button_event(
             button = if_wd_window=>co_button_ok
             action_name = 'OK'
             action_view = lo_view_controller
             is_default_button = abap_true ).

and crate one action with name OK.

Cheers,

Kris.