cancel
Showing results for 
Search instead for 
Did you mean: 

External Window with context sharing

fabio_bellocchio
Participant
0 Kudos

Please, does anybody know if it is possible to have more than 1 browser window running the same application (sharing the context)?

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

From a framework standpoint that wouldn't be very wise to allow to separate windows to share the same context. What happens when the context is updated in one window but then a conflicting update comes in from a different window? There are just too many complications like this. Even in the SAPGUI if you open a new session - are have separate memory areas.

You could pass some data between two sessions however using a shared memory object, export to ... statement, or by writting the data into the database - perhaps as a server cookie.

fabio_bellocchio
Participant
0 Kudos

Thanks Thomas.

if it is not possible, the question is answered!

Answers (2)

Answers (2)

I039810
Advisor
Advisor
0 Kudos

Hi,

Please try to use the method.

IF_WD_WINDOW_MANAGER=>CREATE_EXTERNAL_WINDOW as follows:

DATA: l_window_manager TYPE REF TO if_wd_window_manager,

l_cmp_api TYPE REF TO if_wd_component,

l_window TYPE REF TO if_wd_window.

l_window_manager = lr_comp_api->get_window_manager( ).

" lr_comp_api is Type Ref To IF_WD_COMPONENT.

CALL METHOD l_window_manager->create_external_window

EXPORTING

url = lv_url

has_statusbar = abap_false

has_toolbar = abap_false

has_location = abap_false

RECEIVING

window = l_window

.

l_window->open( ).

Still sharing the same context might not be possible as a new instance would be created.

abhimanyu_lagishetti7
Active Contributor
0 Kudos

In Web Dynpro ABAP it is not possible unless it is a popup.

even in External window you can pass data through URL but communication both ways not possible

Abhi