You can access predefined and self-defined application properties at runtime. You can use the application property LogoffURL to specify the Web address to which the user is redirected after the Web Dynpro application is terminated.
There are three ways of terminating a Web Dynpro application:
When the Web Dynpro application is terminated by calling an exit plug, the user is not logged off.
The following procedure describes how to terminate the application using an exit plug with a parameter defined for the URL. This procedure is recommended by SAP, because after the termination of a Web Dynpro application the user is not logged off when executing a Web Dynpro application on the SAP NetWeaver Portal.
You have created the application property LogoffURL in your Web Dynpro project and set a value as described under Defining Application Properties .
This parameter is case-sensitive and must be entered exactly this way.
//@@begin onActionExit(ServerEvent) String logoffURL = wdComponentAPI.getApplication().getApplicationInfo().findInApplicationProperties("sap.logoffURL").getValue(); wdThis.wdGetTimeCompInterfaceViewController().wdFirePlugExit(logoffURL); //@@end
When using pre-defined application properties, the name must be passed as the parameter that appears in the Application properties.
The WD application is terminated and the user is redirected to the web page defined in the application property LogoffURL.