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: 

How to end a particular user session using ThUsrInfo

Francis417
Participant
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

Hi Francis,

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

Regards,

Karthik D

Former Member
0 Kudos

This system function can be used CALL 'SYST_LOGOFF'.

kesavadas_thekkillath
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Looks like with multiple FMs this can achieved.

Priya