cancel
Showing results for 
Search instead for 
Did you mean: 

Mulitiple window using webdynpro

Former Member
0 Kudos

Dear all,

I hav created webdynpro application using abap .

In my application 2 window has created . First window is main window(Default window) and second window name is window2.

In that main window im created one button name is button1 and second window have 2nd button name is button2.

If i click button1 in that main window(browser) it will go to button2 in the second window in seprate browser .

if possible or not...

Kindly give solution

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Sankavi,

Is it the windows or the views that you are talking about. Even if it is windows yes it is possible.

Cheers,

Sai

Former Member
0 Kudos

hi,

i hav created 2 views and 2 windows - 1st view contains button1 and second view contains button2.

If i click button1 in 1st view i want to go 2nd view display in seprate window ( that means one more page needs to open for second view )

kindly give solution

thanks

former_member206441
Contributor
0 Kudos

Hi

Already you have created two views and two windows right?

And u have created only one web dynpro application right?

just create second web dynpro application specifying the interface view as ur second view name

and plug name as default and save it.

in the same screen in the Administration Data you will find a url, copy that url and use the code in first view button


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( ).
CALL METHOD lo_window_manager->create_external_window
EXPORTING
url = 'http://Kaar-se.kach.com:80/sap/bc/webdynpro/sap/zar_second'   "just type your URL here what u have get from second web dynpro application.
RECEIVING
window = lo_window.

lo_window->open( ).

Regards

Arun.P

Former Member
0 Kudos

hi,

If i am not wrong, then you want that on the click of button 1 in Main window(Window 1) , you want to open new window(window2).

For this use this code for our reference :

Data: context_node type ref to if_wd_context_node.

  data: lr_popup type ref to if_wd_window,
        lr_view_controller type ref to if_wd_view_controller.

  data: lr_api_comp_controller type ref to if_wd_component,
        lr_window_manager type ref to if_wd_window_manager.

  lr_api_comp_controller = wd_comp_controller->wd_get_api( ).
  lr_window_manager = lr_api_comp_controller->get_window_manager( ).

  lr_popup = lr_window_manager->create_window(
  MODAL               = ABAP_TRUE
  window_name         = 'WND_POPUP'  "Name of the second window 
  TITLE               = 'Please enter all information'
  CLOSE_BUTTON        = ABAP_TRUE
  BUTTON_KIND         = if_wd_window=>CO_BUTTONS_YESNO
  MESSAGE_TYPE        = if_wd_window=>co_msg_type_error
  CLOSE_IN_ANY_CASE   = ABAP_TRUE
*MESSAGE_DISPLAY_MODE = MESSAGE_DISPLAY_MODE
  ).