Skip to Content

Logoff / Logout of a BSP

For many of you who struggled with session management on your custom BSP Applications look no further. Thanks to the Fiori landscape we now have a simple approach to killing the SAP session without having to go to the trouble of manually killing session cookies!

 

Steps

Activation

Activate the following ICF node

 

Link

Create a hyperlink in your custom application to hit this server node:

<a href=”/sap/public/bc/icf/logoff”>Logout</a>

 

Conclusion

When you hit the logoff link in your application you will see the following:

 

For extra brownie points

If you are like me and dread seeing screens like the on shown above then you might want to create a redirect to a more application specific page, do the following.

 

Redirect

1. Create an external Alias and point it to the Logoff ICF node.

2. In the error pages create a redirect to your custom logoff page, (Note: this page must be hosted somewhere public unless you are going to redirect back to your applications login screen)

 

Thanks and happy development.

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply