Skip to Content
author's profile photo Former Member
Former Member

Automate termination of specific user session mode

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

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Best Answer
    Posted on Jul 28, 2006 at 08:14 PM

    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

    terminate-user-session

    Regards

    Laxman

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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