Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

User Exit SUSR0001 and logging off a user

Former Member
0 Kudos

Hello,

We want to allow multiple logins in our system but not from different terminal IDs. Therefore, we are using the user exit SURS0001 to check if the user is already logged in and what the terminal ID is.

If the user is already logged in from another terminal ID we want to end the current login attempt...but we just don't know how. Is there a command or function module to end the current login?

Thanks!!!

Tom

1 REPLY 1

Former Member
0 Kudos

Take a look at the code SAP uses in transaction SM04 to terminate a session. I believe there are function modules there that could achieve what you want - Just need to make sure you kill the correct session.

Andrew