cancel
Showing results for 
Search instead for 
Did you mean: 

Pop up view in Web Dynpro for ABAP

Former Member
0 Kudos

Hi,

I am new in web dynpro for ABAP. Now I am facing a problem of how to make a view pop up.

Since I had already create some table in this view. I just want to make it pop up after I click a button. But I had no idea to do it, could anyone tell me how to do it?

Thanks!

Edmond

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ho,

For POp up view please follow the below steps.

1. Create one view [Ex:popup_view] and design it as per your requirement.

2. Create one window [Ex:popup_win] and embed the popview_view into pop up window.

3. Then write the below code when ever you need a pop up window.

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->m_popup1_1 is initial.
    wd_this->m_popup1_1 = l_window_manager->create_window(
             window_name  = 'POPUP_WINDOW'
             button_kind  = if_wd_window=>co_buttons_ok
             message_type = if_wd_window=>CO_MSG_TYPE_STOPP ).
  endif.
  wd_this->m_popup1_1->open( ).

Thanks.

Former Member
0 Kudos

I also found this link for more reference:

[http://help.sap.com/saphelp_nw2004s/helpdata/en/43/bccdcfe326332ee10000000a11466f/content.htm]

Answers (2)

Answers (2)

Former Member
0 Kudos

hi ho ming,

if you want to display yor table as a popup....

have the table in another view and embed it to another window and in the onclick event of the button in view1,

use the method

create_window in the interface if_wd_window_manager to display it and pass the window name to it.

---regards,

alex b justin

Former Member
0 Kudos

You need to define a new window, and embed the view to be displayed as a popup in that window. Then from your calling view, you need to launch the popup. Have a look at the examples WDR_TEST_POPUP*

Regards,

Nithya