cancel
Showing results for 
Search instead for 
Did you mean: 

Modal window

Former Member
0 Kudos

Hello everybody,

i have tried to create an external modal window (methode if_wd_window_manager->create_external_window with the parameter modal = ABAP_true). The window has been created but it isn't modal. What should I do to create a modal window?

Best regards

Bogdan

Accepted Solutions (1)

Accepted Solutions (1)

RenaldWittwer
Contributor
0 Kudos

Hi Bogdan,

the parameter 'modal' is obsolet for external windows.

Look here:

[SAP Help Documentation|http://help.sap.com/saphelp_nw70/helpdata/en/43/79f82ccbec6fcde10000000a1553f6/frameset.htm]

Best regards

Renald

Former Member
0 Kudos

Hallo Renald,

well that was that:( I have read the documentation but not exactly enough.

Thanks a lot.

Best Regards,

Bogdan

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Bogdan,

Create a separate view and design as per the requirements.Create a window.Embed the view in the window and write this code in the OnAction event of the button.


  Popup
  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_POPUP' " your window name 
    message_display_mode = if_wd_window=>co_msg_display_mode_selected
    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
    ).
  DATA:  l_api TYPE REF TO if_wd_view_controller.
 
  l_api = wd_this->wd_get_api( ).
 
  lo_window->subscribe_to_button_event(
               button            = if_wd_window=>co_button_ok
               action_name       = 'ON_OK
               action_view       = l_api
               is_default_button = abap_true ).
 
  lo_window->open( ).

Also, have a look at the standard Example "WDR_TEST_POPUPS_RT_00".

http://help.sap.com/saphelp_nw04s/helpdata/en/43/bccdcfe326332ee10000000a11466f/content.htm

I hope this helps you. Let me know if you have any difficulties.

Regards,

Gopal.

Former Member
0 Kudos

Hello Gopal,

thx for your answer. Popup dialog is modal I know, but it size is limited to main window size. I havo to create a window the bigger ist as a main window.

Best regards,

Bogdan

Former Member
0 Kudos

Hi Bogdan,

I believe as you can see in the SAP Help document provided earlier, the modal external window in Webdynpro is obselete. So, I believe that would not be possible. Meanwhile, I did a search on this forum and found post that might be helpful for you. Have a look at this.

I hope this helps you.

Regards,

Gopal.