Hi All.
I'm working in an application that has the sap.authencation property set to true, when the app is executed this launch the login screen standard of SAP Netweaver. I wanna know how can i implement a logout action that exits the app and places the app in the first page(standard login page)
I'm using this fragment of code:
String deployableObjectName = wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
try {
WDDeployableObjectPart deployableObjectPart =
WDDeployableObject.getDeployableObjectPart( deployableObjectName, "<APPNAME>",
WDDeployableObjectPartType.APPLICATION);
String urlToTargetApp = WDURLGenerator.getApplicationURL(deployableObjectPart, new HashMap());
wdThis.wdGetPCTInterfaceViewController().wdFirePlugExit(urlToTargetApp);
} catch (WDURLException e) {
manager.reportException(e.getLocalizedMessage(), false);
} catch (WDDeploymentException ex) {
manager.reportException(ex.getLocalizedMessage(), false);
}
But doesnt work. It simulates the refresh button of the borwser.
I hope somebody can help me.
Thx and regards.
Gregory.