cancel
Showing results for 
Search instead for 
Did you mean: 

Open new window in WD

Former Member
0 Kudos

Hi,

I need to open a new window in Wd, tat is i want to navigate from one window to another window. I dont need pop up.

thnx in advance,

Accepted Solutions (1)

Accepted Solutions (1)

gill367
Active Contributor
0 Kudos

Create one more application for the window 2.

In the first window create an exit plug with url pararmeter as the url of the second window 's application .

then it will navigate to the second window.

thanks

sarbjeet singh

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi ranjith ,

You can call a window by calling url of any application.

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.LO_API_COMPONENT = WD_COMP_CONTROLLER->WD_GET_API( ).

LO_WINDOW_MANAGER = LO_API_COMPONENT->GET_WINDOW_MANAGER( ).

CALL METHOD LO_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW

EXPORTING

URL = ' NAME of the URL ' " get this from web dynpro aplication name

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

RECEIVING

WINDOW = LO_WINDOW.LO_WINDOW->OPEN( ).

These will also help you.

[IF_WD_WINDOW|http://help.sap.com/saphelp_nw70ehp1/helpdata/EN/47/b8acd317302fe1e10000000a42189d/content.htm]

[Calling Dialog Boxes of the Same Component|http://help.sap.com/saphelp_nw70ehp1/helpdata/EN/47/b9487301602fe2e10000000a42189d/content.htm]

Thank & Regards,

Monishankar C

sahai
Contributor
0 Kudos

hi ranjith,

method ONACTIONwindow.

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.LO_API_COMPONENT  = WD_COMP_CONTROLLER->WD_GET_API( ).
LO_WINDOW_MANAGER = LO_API_COMPONENT->GET_WINDOW_MANAGER( ).
CALL METHOD LO_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW
  EXPORTING
    URL            = 'www.sdn.sap.com'
    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
  RECEIVING
    WINDOW         = LO_WINDOW.LO_WINDOW->OPEN( ).
    IF SY-SUBRC EQ 0.
      ENDIF.
endmethod.

try this code.

also it can be acheived through exit-plugs

Create a exit plug in the window.

fire the exit plug by passing the URL of the window you want to navigte to

thanks and regards,

sahai.s

Former Member
0 Kudos

Hi Ranjith ,

You can use Exit-plugs for achieving this..

Create a exit plug in the window.

On click of a button(or some link) , fire the exit plug by passing the URL (to which you want to navigate).

But exit plugs logout from the current application before moving to another URL.

Thanks,

Aditya.