Skip to Content

how to a open a new window in my webdynpro

Hi

I have a webdynpro with a button that when i press it i want to open a NEW AND DIFFERENT window.

i wrote this code in th button's action

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.

data:  ld_url type string.

lo_api_component  = wd_comp_controller->wd_get_api( ).

lo_window_manager = lo_api_component->get_window_manager( ).

ld_url = 'http://www.sapdev.co.uk'.

CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW

  EXPORTING

    URL            = ld_url   "'http://www.sapdev.co.uk'

  RECEIVING

    WINDOW         = lo_window.

lo_window->open( ).

but it opent a new windoe in the webdynpro window - what i mean is that after i executed the code above the new window opened over and insted of the webdynpro window while i wanted to be open in a new window/browser seesion.

Is there a way to do that ?

Thanks Ami

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jan 23, 2013 at 04:47 PM

    Hi Ami,

    Use create_and_open_popup() method instead of CREATE_EXTERNAL_WINDOW() method.

    Regards,

    Mahidhar.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member ami bardogo

      Hi Ami,

      To the code you have added in question try adding the other exporting parameters :

          MODAL          = ABAP_FALSE
          HAS_MENUBAR    = ABAP_TRUE
          IS_RESIZABLE   = ABAP_TRUE
          HAS_SCROLLBARS = ABAP_TRUE
          HAS_STATUSBAR  = ABAP_TRUE
          HAS_TOOLBAR    = ABAP_TRUE
          HAS_LOCATION   = ABAP_TRUE

      Regards,

      Mahidhar.

  • Jan 23, 2013 at 07:08 PM

    Hi Ami,

    Your code is correct. I've pasted it as-is into a method of my own and it opens a separate, external window in both IE and Firefox.

    The only thing I can think might be happening is the browser or server may be caching an old response. Try clearing your browser cache and also clearing the ICM server cache in the ICM Monitor:

    SMICM > Goto > HTTP Plug-in > Server Cache > Invalidate Globally

    If that doesn't resolve the issue, could you please post a screen shot of what you see when you open the new window?

    Cheers,

    Amy

    Add comment
    10|10000 characters needed characters exceeded