cancel
Showing results for 
Search instead for 
Did you mean: 

POP UP in WD ABAP

Former Member
0 Kudos

hi,

i m new in web dynpro ABAP. i wants to create a popup for a button displaying some message. plz try to give some dummy program name also.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Pankaj,

Please go through the below link :

http://saptechnical.com/Tutorials/WebDynproABAP/Popup/page1.htm

Hope it is useful.

Regards,

Prakash.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

In ATTRIBUTES tab include

CUST_POPUP_WD of type IF_WD_WINDOW

- where CUST_POPUP_WD is the window name

In the Button Action you can add the following codes:

data: l_cmp_api type ref to if_wd_component,

l_window_manager type ref to if_wd_window_manager.

l_cmp_api = wd_comp_controller->wd_get_api( ).

l_window_manager = l_cmp_api->get_window_manager( ).

if wd_this->cust_popup_wd is initial.

wd_this->cust_popup_wd = l_window_manager->create_window(

window_name = 'CUST_POPUP_WD'

button_kind = if_wd_window=>co_buttons_yesnocancel

message_type = if_wd_window=>co_msg_type_question ).

endif.

wd_this->cust_popup_wd->open( ).

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I'm not sure what SP level it came in; but as you can see from my screen shot in newer SP levels there is a code wizard that will generate the code for Pop Up windows for you. You just need to supply the component usage and window from the value help.

http://www.flickr.com/photos/tjung/2755948083/

abhimanyu_lagishetti7
Active Contributor
0 Kudos

WDR_TEST_POPUP_TO_CONFIRM is the standard component

see the button click event in MAIN view

l_cmp_api = wd_comp_controller->wd_get_api( ).

l_window_manager = l_cmp_api->get_window_manager( ).

l_popup = l_window_manager->create_popup_to_confirm(

text = l_text_table

button_kind = l_conf_context-button_kind

message_type = l_conf_context-message_type

close_button = l_conf_context-close_button

window_title = l_conf_context-window_title

window_left_position = l_conf_context-window_left_position

window_top_position = l_conf_context-window_top_position

window_position = l_conf_context-window_position

window_width = l_conf_context-window_width

window_height = l_conf_context-window_height ).

Abhi