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: 

Automate termination of specific user session mode

Former Member
0 Kudos

Hi -

We have a requirement where we'd like to automate the termination of sessions where a user is

already in a transaction that we have locked. We don't want to remove the complete session however, as the user may be in other useful transactions in his/her other modes.

For example, let's say we have locked transaction PA30, but there are users already using PA30. If one of these employees is in PA30 in one mode and SE38 in another mode we want to be able to end his/her PA30 mode but leave his/her SE38 mode untouched. We don't want to end his/her session completely.

Thanks,

Dave

1 ACCEPTED SOLUTION

laxmanakumar_appana
Active Contributor
0 Kudos

Hi,

<b><i>We have a requirement where we'd like to automate the termination of sessions</i></b>

-- means whenever user is trying to login to a particular transaction , then system will delete that session ---means any user cannot access unauthorized transactions.

alternatively we can do this with user authorizations , attach the required transactions to user profiles, if any user is trying to login to partcular transaction ,then system will give a message 'you have no authorization for the transaction XXX' , i think it will solve your requirement.

if your requirement is different ,then please check this link for function modules to kill user sessions

Regards

Laxman

2 REPLIES 2

laxmanakumar_appana
Active Contributor
0 Kudos

Hi,

<b><i>We have a requirement where we'd like to automate the termination of sessions</i></b>

-- means whenever user is trying to login to a particular transaction , then system will delete that session ---means any user cannot access unauthorized transactions.

alternatively we can do this with user authorizations , attach the required transactions to user profiles, if any user is trying to login to partcular transaction ,then system will give a message 'you have no authorization for the transaction XXX' , i think it will solve your requirement.

if your requirement is different ,then please check this link for function modules to kill user sessions

Regards

Laxman

0 Kudos

Hi,

Let me be more specific. In SM04 a BASIS employee can select an employee and go into his session and choose a specific session mode to END. So if we want to run payroll during the day and a user sitting in PA30 would cause the Payroll program to stop, BASIS currently has to go to SM04 and manually search for and END the session modes of employees sitting in PA30 (and various other transactions).

This process is time-consuming for our BASIS team. They would like it automated.

I've tried calling the SAP provided function TH_DELETE_MODE, but it doesn't allow me to choose a specific employee. It only removes my own session modes.

And if I have two sessions (two logons to the same instance) it only appears to END the modes from my first logon.

Does anybody know if this is do-able? Is there a function call that will allow me to specify the user, the logon (tid), and the session mode to be ENDed?

Thanks,

Dave