2011 Oct 04 10:42 AM
Hi experts,
I was trying to code to restrict the user from multiple-logon. So i used the enhancement SUSR0001 to restrict the multiple logon.
And i was able to sucessfully restrict that. But the user can kill the session when another user is logged on by selecting the first option. How to restrict that ? . Can any one help me out?.
With thanks in advance,
Syed Ibrahim.G
2011 Oct 04 8:15 PM
Hi,
I don't understand why you control a user's login based on other user logins?
Or could you please clarify: it's really not clear to me what you want to achieve, and what kind of control you already did in the user exit.
Sandra
Edited by: Sandra Rossi, 2 minutes later: by the way, did you try profile parameter login/multi_login_users, where you can enter a list of users allowed to login multiple times
2011 Oct 04 10:44 AM
Hi ,
Take help from BASIS . he does that setting .
regards
Deepak.
2011 Oct 04 10:47 AM
thanks,
But i want to do it programatically for specific users only . Any ideas?
thanks in advance,
Syed Ibrahim .G
2011 Oct 04 10:59 AM
2011 Oct 04 11:05 AM
thanks koolspy and ajit,
Is it not possible to restrict through program? I can control multiple logon but he should not be able to kill others logon.
With thanks in advance,
Syed ibrahim .G
2011 Oct 04 10:56 AM
Hi,
You need to set this parameter to 1
login/disable_multi_gui_login = 0 " make 0 to 1 from tcodeRZ10
But you need to contact your basis for this.
Regards,
Koolspy.
2011 Oct 04 8:15 PM
Hi,
I don't understand why you control a user's login based on other user logins?
Or could you please clarify: it's really not clear to me what you want to achieve, and what kind of control you already did in the user exit.
Sandra
Edited by: Sandra Rossi, 2 minutes later: by the way, did you try profile parameter login/multi_login_users, where you can enter a list of users allowed to login multiple times
2011 Oct 06 10:21 AM
thanks sandra,
In the user exit that i have edited, if the user tries to log on to an already logged on id , it will show an error message and it will log off automatically , but he can terminate the log in by selecting the first option from the sap log on pad. I want to restrict that , so that he will not be able to kill other's sessions. I want to do it programatically .
Thanks in advance,
Syed Ibrahim
Edited by: SYED_ibbu on Oct 10, 2011 8:12 AM
2011 Oct 10 10:53 AM
Hi,
1. For restricting multiple logins please use system parameter as was mentioned above. Espacialy that in description of FM that is calling your user exit (SUSR_LOGON_USER_EXIT) you can find comment
Please don't implement
- a logoff of the user
2. Disabling that popup can be difficult (if possible at all). I've seen that when someone tries to login transaction SESSION_MANAGER is executed. Maybe inside you will be able to find user exit that will solve your problem.
Best regards
Marcin Cholewczuk
2011 Oct 10 12:52 PM
thanks Macin,
I tried with the FM SUSR_LOGON_USER_EXIT and i placed a break-point in there. And i tried to log in second time with the already logged in user id and i selected the first option from the logon pad .
By doing that , i found out that first , the session that i was using before got killed, and then the break-point was reached.
I need to go between the User,password logon pad and the sap license information log on pad.
Can any one help on this?.
With thanks in advance,
Syed Ibrahim . G
2011 Oct 10 1:05 PM
Well, like it seems you aint got no chance to handle this via programming.
The question is why dont you ask your basis to deactivate thet option at all, so people dont have the possibility to check it?
I´m not a basis guy so i´´m just guessing that there is a possibility to deactivate that option.
2011 Oct 10 1:45 PM
hi florian,
Thanks for the reply.
We want to allow some users to do multiple log on . And also we thought that it would be less time consuming if we have to add a user id to a set to allow multiple logon.
With thanks in advance,
Syed Ibrahim .G
2011 Oct 10 1:55 PM
Ok gotta clarify my answer.
what i meant was to deactivate that FIRST option where you logon and terminate all other logons with said username.
Like when you logon with e.G, username TEST, and there already is user TEST logged on then the screen in question comes up.
What i meant was, just to have the later two options from this screen, and not the first one.
so user has possibility to either make a second logon, with that username or terminate try to logon.
So he just has not got the option to logon and logoff others with same username.
I hardly guess that basis team can customize it this way.
2011 Oct 11 5:02 AM
thanks florian for the reply.
I wonder if that can be done (removing the first option alone ). SInce , the parameter login/disable_multi_gui_login = 0 would by pass the logon pad or the second option would be disabled depending on the parameter set. Please correct me if i am wrong.
With thanks in advance,
Syed Ibrahim .G
Edited by: SYED_ibbu on Oct 11, 2011 8:26 AM