Hi,
- One possible way is create 2 windows namely WA,WB.
- Two views namely VIEWA VIEWB.
- Embed VIEW A in WA and VIEWB in WB.
Suppose u want to open second WB from WA the following code will work
DATA: lr_view TYPE REF TO if_wd_view_controller,
lr_api_main TYPE REF TO if_wd_component,
lr_window_man TYPE REF TO if_wd_window_manager.
l_window2 type REF TO IF_WD_WI
lr_view = wd_this->wd_get_api( ).
lr_api_main = wd_comp_controller->wd_get_api( ).
lr_window_man = lr_api_main->get_window_manager( ).
*Creating the Popup Window
CALL METHOD lr_window_man->create_window
EXPORTING
modal = abap_true
window_name = 'WB'
title = 'Demo example'
close_button = abap_true
RECEIVING
window = wd_comp_controller->l_window2.
wd_comp_controller->l_window2->open( ).