cancel
Showing results for 
Search instead for 
Did you mean: 

Instance of the view '[Window name]' already exists in component

0 Kudos

Hi all,

I have a webdynpro component button with a button in it.

On click of the button, a window is called as a popup.

This works perfectly fine when executed for a single user.

But when this component is executed by multiple users at the same time, on click of the button, the component is going for a dump ' Instance of the view '[Window name]' already exists in component'.

Can anybody throw some light on why this issue rises with concurrent users.

Regards,

Vignesh Sunkasi.K

Accepted Solutions (0)

Answers (2)

Answers (2)

cdprasanna
Active Participant
0 Kudos

hi,

first check whether any popup instance is still persist. if persist then close that then try to open the same. you can achieve the same using below code.

DATA lo_api         TYPE REF TO if_wd_view_controller.
DATA lo_window_ctrl TYPE REF TO if_wd_window_controller.
DATA lo_popup       TYPE REF TO if_wd_window.

lo_api         = wd_this->wd_get_api( ).
lo_window_ctrl = lo_api->get_embedding_window_ctlr( ).
lo_popup       = lo_window_ctlr->get_window( ).

IF lo_popup IS BOUND.
  lo_popup->close( ).
ENDIF.

Thanks,

Prasanna CD

Former Member
0 Kudos

Hi,

Create one more window inside this embed the view that you want to show it in popup.

Hope this helps you.

Thanks

KH