cancel
Showing results for 
Search instead for 
Did you mean: 

Open view in External Popup???

Former Member
0 Kudos

Hello all,

I'm using a interactive form componente to show some employee documents, and because this, I cannot use modal popup to show, interactive form has problems using in modal popup.

So, I would like to open a external window to show this view. Can someone help me? I'm not using webdynpro JAVA, I'm using webdynpro ABAP. ok?

Best regards,

Bruno Lima

Accepted Solutions (0)

Answers (1)

Answers (1)

Gowtham
Contributor
0 Kudos

Hi Bruno,

Create a view which you wants to call as popup and create all the required elements in it , create a window and bind this view into that window and from the button click or whichever action call the following code.


   DATA lo_window_manager TYPE REF TO if_wd_window_manager.

   DATA lo_api_component    TYPE REF TO if_wd_component.

   DATA lo_window               TYPE REF TO if_wd_window.

   lo_api_component  = wd_comp_controller->wd_get_api( ).

   lo_window_manager = lo_api_component->get_window_manager( ).

   lo_window         = lo_window_manager->create_window(

                     window_name            = 'W_ATTACHMENTS_POPUP'

                      title                  = 'Attachments'

                      close_in_any_case      = abap_true

                      message_display_mode   =

                                   if_wd_window=>co_msg_display_mode_selected

                      close_button           = abap_true

                      button_kind            = if_wd_window=>co_buttons_ok

                      message_type           = if_wd_window=>co_msg_type_none

                      default_button         = if_wd_window=>co_button_ok ).

   lo_window->open( ).


- Gowtham