Skip to Content

How to end a particular user session using ThUsrInfo

Hi,

Appreciate if any advise can be provided if I want to use an abap program to end a particular user session in order to prevent record locking during a batch input job is executing in background.

I know there is a function 'TH_DELETE_USER' that can terminate all user sessions, however, I only want to end the particular session in which the user is using a the same transaction code as in my batch input.

I have no clues on how the function ThUsrInfo can be called (with what parameters) to achieve this result.

Thanks,

Francis

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    May 24, 2012 at 08:45 AM

    Hi Francis,

    Search for information about FM 'TH_DELETE_MODE. That might help you.

    Regards,

    Karthik D

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 24, 2012 at 08:52 AM

    This system function can be used CALL 'SYST_LOGOFF'.

    Add comment
    10|10000 characters needed characters exceeded

  • May 24, 2012 at 08:55 AM

    Check the subroutine call_delete_user in program RSM04000_ALV. Look at this suggestion from Sandra http://scn.sap.com/thread/1954876

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 24, 2012 at 08:57 AM

    Check this thread http://scn.sap.com/thread/1447385

    Looks like with multiple FMs this can achieved.

    Priya

    Add comment
    10|10000 characters needed characters exceeded