Application Development and Automation 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: 
Read only

Bulk User Logoff

Former Member
0 Likes
1,184

Hello,

I need to log off selected users using abap. Would you please kindly let me know the code/function module to achive this?

I tried using SYST_LOGOFF but this C function logs off only one user. I am not sure if there are other attributes to this function.

Thanks in advance for your help.

Regards,

K.

Hello,

I need to log off selected users using abap. Would you please kindly let me know the code/function module to achive this?

I tried using SYST_LOGOFF but this C function logs off only one user. I am not sure if there are other attributes to this function.

Thanks in advance for your help.

Regards,

K.

6 REPLIES 6
Read only

Former Member
0 Likes
1,040

Hi,

Try using TH_DELETE_USER in your abap code. Just loop through this FM with the user names one at a time, and you will have the desired effect.

Regards,

Sachin.

Read only

0 Likes
1,040

Then why not he would use SYST_LOGOFF itself in loop?

Read only

Former Member
0 Likes
1,040

I am not comfortable with the idea of logging off users using ABAP. Are these dialog users doing their job? What is going to happen if you log them off in the middle of their work?

Read only

Former Member
0 Likes
1,040

I second Srinivas' concern here.

An approach I have seen used is to send them a system message (or mail) warning about the downtime, and then use network tools (e.g. a SAProuter, or logon groups) to disconnect them from the server when the time is ripe.

SYS_LOGOFF is a very blunt tool...

Cheers,

Julius

Read only

peter_strauss
Product and Topic Expert
Product and Topic Expert
0 Likes
1,040

>An approach I have seen used is to send them a system message (or mail) warning about the downtime, and then use >network tools (e.g. a SAProuter, or logon groups) to disconnect them from the server when the time is ripe.

How can you use logon groups to disconnect users?

Read only

0 Likes
1,040

What I meant by that is clients in the user network can be load balanced onto application servers via logon groups. Knowing which server they should be on, one could then simply block them on the firewall or even stop those dialog instances.

Cheers,

Julius