cancel
Showing results for 
Search instead for 
Did you mean: 

Logout button functionality

Former Member
0 Kudos

Hi,

There is a button in the screen with the functionality logout.Once user clicks on the button it should close the session and closes the browser.

I will be thankful for your inputs.

Regards,

Pavani

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

Check out the following Forum threads, you may get some idea on how to close browser window

In webdynpro ABAP there is a way to close broser window by going in SICF transaction

Former Member
0 Kudos

HI

create a button and create an action exit.

in exit method write the following code

public void onActionexit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin onActionexit(ServerEvent)

com.sap.tc.webdynpro.services.sal.um.api.WDClientUser.forceLogoffClientUser(null);

//@@end

}

Regards,

Sunaina Reddy t

Former Member
0 Kudos

Hi ,

I tried with the code .but once if i click on the logoff button it is navigating to other screen and giving me the message

Web Dynpro application terminated. Good bye!

But my requirement is once if i click on the logoffbutton it should close the application and should not navigate to any other.

Regards,

Pavani

Former Member
0 Kudos

Hi,

Have a workaroud with the WDClientUser.

In your Button Action implement the following code

WDClientUser.forceLogoffClientUser(String URL);

Also navigate to the following url, i hope this will solve your problem

[]

[]

Regards

Raghu

Former Member
0 Kudos

Hi Pavan

Check this code

String logoffURL = wdComponentAPI.getApplication().getApplicationInfo().findInApplicationProperties("sap.logoffURL").getValue();

wdThis.wdGetTimeCompInterfaceViewController().wdFirePlugExit(logoffURL);

Regards

Ruturaj

Former Member
0 Kudos