Professional Documents
Culture Documents
Window Plugs: Startup and Exit
Window Plugs: Startup and Exit
Use
Like Web Dynpro views, each Web Dynpro window has Inbound and Outbound Plugs . Any
number of these plugs can be defined as startup or exit plugs.
Startup Plug
The startup plug is a special inbound plug .
The Startup property, which you can define on the Inbound Plugs tab page in the window
editor, declares for the inbound plug the option to instantiate a component and to start a
new application. For this reason, a startup plug should be used only if it is also available to
the window interface.
Components can be accessed externally using any plug that is defined as a startup plug.
When you create a Web Dynpro application for this interface view, only those plugs defined
as startup plugs are available for the application. Since at least one inbound plug of a Web
Dynpro window must always be defined as a startup plug, you can find a startup plug with
the name DEFAULT on the Inbound Plugs tab page.
Exit Plug
The exit plug is a special outbound plug .
If a Web Dynpro window is closed by means of an exit plug, the associated application is
ended automatically. For this reason an exit plug can only be used if it is available to the
interface view of the window.
An exit plug always closes an application. This can happen in the following ways:
Caution
In a portal environment, the exit plug may be used only with the CLOSE_WINDOW parameter.
It is not permitted to navigate to another application by passing a URL.
Close and CLOSE_WINDOW Parameter
You can add parameter CLOSE_WINDOW of type WDY_BOOLEAN to an exit plug, and when the
plug is triggered you pass the value ABAP_TRUE, which the framework uses to close the
window.
You can use method GET_IS_CLOSE_WINDOW_SUPPORTED of interface IF_WD_APPLICATION to
query whether or not the prerequisites for using CLOSE_WINDOW are fulfilled.
You can find an example in the system in the Web Dynpro
application WDR_TEST_EXIT_WITH_CLOSE.
Caution
url = 'http://n1devecc.haasauto.local:8001/sap/bc/webdynpro/sap/ytest4' ).
2. In the Second component have an EXIT PLUG and when you call the exit plug on any action in
the second component the control will directly come to the RESUME plug of the first component and
u can write what ever code you want in that RESUME plug action.