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 kicking users out

0 Kudos

Hello All,

We are looking for a solution that allow us kicking users out from BSP sessions on determined time of the night when we have a process that runs and sometime it faling because some users sessions remains active. today we have to check on SM04 to see what users are running and kick who is on BPS out before the process starts. Someone has some ideas how to automate this process - without manually intervention each time?

Thank you so much in advance,

1 ACCEPTED SOLUTION

Bernhard_SAP
Employee
Employee
0 Kudos

Hi Leti,

for instance by using FM THUSRINFO to get the list of users actually logged in, and kick them out by using FM TH_DELETE_USER.

b.rgds,

Bernhard

3 REPLIES 3

jurjen_heeck
Active Contributor
0 Kudos

I suspect your fastest option is to show an ABAPer what you do manually now and ask him/her to write a little program that can be scheduled and automatically does the same.....

Bernhard_SAP
Employee
Employee
0 Kudos

Hi Leti,

for instance by using FM THUSRINFO to get the list of users actually logged in, and kick them out by using FM TH_DELETE_USER.

b.rgds,

Bernhard

Former Member
0 Kudos

Take note that SM04 is application server specific. Perhaps you should rather take a look at AL08 coding to find the users on all app servers.

For users who have not just left their PC's running but are infact working, this process is always a bit rude.

Perhaps there is another way to run your process without disrupting them? If it is "just" a background job program, perhaps you can isolate it on a specific application server?

If it is a performance issue caused by many (small) jobsteps bottle-necking the work processes, then there is also a different solution for this.

Could you supply more details?

Cheers,

Julius