Skip to Content

Erro : instance of "popup_window" is already exist in the compoent

Hi All

In my application, i created popup window, in my system popup window is opening correctly. In another system i am trying to execute same application there i am getting this error ..

instance of popup_window is already exist in the compoent

here popup_window is my window name i am using as popup window. can anyone have any idea why it is not working in another system??

Thanks,

Kris.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Feb 09, 2011 at 05:53 AM

    How are you invoking the popup window.

    where you have written the code to create it. and open it.

    and the scenario that you are saying is quite strange it should behave in teh same manner on both the system.

    you need to check it again.

    this error will come only when you are trying to open a new popup with same name again.

    thanks

    sarbjeet singh

    Add comment
    10|10000 characters needed characters exceeded

    • So it may be because of browser only.

      but here on my system i am using IE8 and all the applciations are running properly.

      i even tried your scenario.

      wt can be a wrokaround is put the code of creating window in the wddoinit and

      just write the code for opening the window in the onselect

      for this create an attribute of type if_wd_window and set its value after creatign it in wddoinit

      and get its value in the onselect and open it.

      and also you can try one small workaround.

      .
      
      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 = 'POPUP_WINDOW'
      title = 'Forecasting'
      * close_in_any_case = abap_true
      message_display_mode = if_wd_window=>co_msg_display_mode_selected
      close_button = abap_true
      * button_kind = if_wd_window=>co_buttons_ok
      button_kind = if_wd_window=>CO_BUTTONS_OKCANCEL
      message_type = if_wd_window=>co_msg_type_none
      default_button = if_wd_window=>co_button_ok
      ).
      
      lo_window->close( ).       "<<<--------- add this line and try
      lo_window->open( ).
      endif.
      
      
      
      
      ..

      thanks

      sarbjeet singh

      Edited by: sarbjeet singh on Feb 9, 2011 2:57 PM

  • avatar image
    Former Member
    Feb 09, 2011 at 07:41 AM

    Hi,

    Are you trying to open the other component as a Popup here...I this case you will get the error.

    Ie. When you have declared other component as component usage and trying to open this component as a popup, Is this the case?

    Regards,

    Lekha.

    Add comment
    10|10000 characters needed characters exceeded