Show TOC Start of Content Area

Procedure documentation Navigating Between WD Java Applications and Other Web Applications  Locate the document in its SAP Library structure

Use

To be able to navigate from a Web Dynpro application to an external Web application and then back again, you need to implement a suspend plug and a resume plug.

Below you will find a description of how you must proceed to ensure interoperability.

Prerequisites

You have created a Web Dynpro project with an application, a component, and a view.

Procedure

Setting the Suspensibility Application Property

...

       1.      In the Web Dynpro Explorer, navigate to your application and double-click to open it.

       2.      Choose the Application properties tab and then the New pushbutton. The New Application Property wizard appears.

       3.      Under Select Type, select Predefined and then choose Browse…

       4.      Choose Suspensibility and confirm with OK.

       5.      Choose the value true and confirm by choosing Finish.

Creating the Suspend Plug

...

       1.      In the Web Dynpro Explorer, navigate to your InterfaceView and double-click to open it.

       2.      Choose the Plugs tab and then New next to the list of Outbound Plugs. The New Outbound Plug wizard appears.

       3.      Enter a name such as MySuspendPlug, select Suspend as the type and confirm with Finish. If you now choose MySuspendPlug from the list of Outbound Plugs, the parameter Url of the string type is displayed in the parameter list.

Creating the Resume Plug

...

       1.      Choose New next to the list of Inbound Plugs. The New Inbound Plug wizard appears.

       2.      Enter a name such as MyResumePlug, select Resume as the type and confirm with Finish.

Firing the Suspend Plug

To be able to fire the suspend plug from within a view, you must define the controller usage.

...

       1.      In the Web Dynpro Explorer, navigate to the view from within which you want to switch to the external application and double-click to open it.

       2.      Choose the Properties tab and then the Add pushbutton next to the list of Required Controllers. The Select new required controller(s) window is displayed.

       3.      Select the InterfaceView of your application and confirm with OK.

       4.      Save your data by choosing This graphic is explained in the accompanying text Save.

       5.      Switch to the Implementation tab and go to the method or action in which you want to fire the suspend plug.

       6.      Enter the following code here:

wdThis.wdGet<window name>InterfaceViewController().wdFirePlugMySuspendPlug();

Result

You have defined and implemented a suspend plug which you can use to navigate to an external Web application. If the Web Dynpro application is called again by the external Web application, the resume plug is fired automatically.

 

End of Content Area