How to navigate from one Web Dynpro Application to
another Application and resume back the same
Application in same browser?
For Example Create 2 views in the component VIEW1 and VIEW2.
VIEW1
VIEW2
Then create 2 Windows for two applications WINDOW1 and
WINDOW2:
WINDOW1
WINDOW2
Then create two Applications for those 2 Windows:-
ZAPP1 and ZAPP2
Go to the Window of the first(ZAPP1) Application and in the
Outbound Plugs for the Window create one outbound plug of plug
type “SUSPEND”, as it is mandatory if you declare the plug type
as suspend then one passing parameter you have to declare
“URL” , and always it’s associated type will be string.
This Parameter is important because this will be containing the
URL and the attached Parameters of the called Application.
Then go to the Inbound plugs TAB of (ZAPP1) Window and
declare one inbound plug of “Resume” as Plug Type.
Then go to the Window of the other Application (ZAPP2) and
declare one “EXIT” Plug in the outbound plug TAB
Then go to the Required View from where you wanted to navigate
to other application and go to the properties TAB and add that
Window to the Controller/Component Usage TAB.
Then go to the required method or event handler where you
wanted to call the Second Application and write the below Piece
of code.
Like here for example I have a button on my View1 and on Click
action event I wanted to navigate to other Application so here I
am constructing the URL of the ZAPP2 Application and then
creating a reference variable of the current window where you
have declared the outbound plug and i.e., (IG_window_name) here
window name is your window name and “IG_” is the prefix.
Then call the method wd_this->get_window_name_ctr ( ). Here
“get_” is the prefix and then give your window name and then put
“_ctr”.
Then with your window reference fire the outbound SUSPEND
Plug by passing the URL as Parameter.
“FIRE_Plug_name_PLG” here Fire_ is the prefix and then comes
the plug name and then “_PLG”
Then go to the Required View from where you wanted to navigate
to other application and go to the properties TAB and add that
Window to the Controller/Component Usage TAB.
Then in the same way fire the EXIT Plug from the other
Application from where you want to come back and resume the
current Application.
Test the Application:-
On clicking the call 2nd Application Button the second application
is called.
On clicking the back button the calling application has been
resumed.
Documented By:
ANKUR UPADHYAY