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

Terminating User Logon

Former Member
0 Likes
3,347

Dear Experts,

I have a requirement to develop a program to terminate the user session based on User id, Terminal id and so on...

An user can open maximum of 6 sessions if he opens more than 6 sessions by long on to SAP more than once then the second logon sessions should be terminate.

please let me know your idea's that how can I fulfill this reuirement.

Thanks in Advance....

Cheers

Venkat

9 REPLIES 9
Read only

GauthamV
Active Contributor
0 Likes
2,214

Use FM TH_USER_LIST.

Based on user name,number of sessions and login time values perform your operation.

Read only

Former Member
0 Likes
2,214

This message was moderated.

Read only

Former Member
0 Likes
2,214

Hi,

An user can open maximum of 6 sessions if he opens more than 6 sessions by long on to SAP more than once then the second logon sessions should be terminate.

The multiple logon is against the SAP Licensing policy and it should be deactivated in the PRD system.

If the user tries to logon again with the same user ID the SAP will pop-up a message with 3 options

1. Terminate logon

2. Continue with the logon

3. Continue with the logon terminating other sessions.

You need to add the following parameter to the instance profile logon/disable_multi_gui_login to remove the 2nd option, to keep your system legal.

Regards

GK.

Read only

0 Likes
2,214

Hi Gnana Kumar,

Thanks for your suggestion but we have gives same user ID for more than one developer.

Regards

Venkat

Read only

0 Likes
2,214

Hi Gnana Kumar,

Thanks for your suggestion but we have given same User ID for more than one developer.

Regards

Venkat

Edited by: Venkatesh on Sep 23, 2010 8:41 AM

Read only

0 Likes
2,214

well, change that, it isnt a good idea anyway to have mass users for development.

You will never be able to track down who did something wrong, and so it is quite hard to tell those people to improve.

Besides think of someone getting fired, and this someone is still in the office for some days and wants to sabotage your system.

Sure you could could code something that checks from which frontend machine the logon is coming and prevent 2 logons from same machine but still it isnt wise to have same user for different developers.

Read only

Former Member
0 Likes
2,214

Hi,

Use the standard program 'RSM04000_ALV'.

That program displays all the users currently logged-in and the transactions they are working on.

It got many implicit enhancement points. write your code in those enhancement points.

or

Just check SM50 , select the session and Endsession.

or try Try Function Module ITS_END_SESSION

Regards,

S.Velsankar

Read only

0 Likes
2,214

Hi,

Thanks for the information, we can get all the user information using FM TH_USER_LIST.

my question is, how can we terminate all the sessions of second logon for the same Terminal ID & User ID.

If user log on second time with same User ID and Terminal ID without ending the first logon it should check and terminate all the sessions belongs to second logon

hope you got my point... Please let me know if need more information.

Regards

Venkat

Read only

Former Member
0 Likes
2,214

Hi all,

Thanks to all for the valuable information given.

after I have gone through the information I came to understand that we can not terminate based on terminal id therefore I came up with one idea that I can read all the session id's and terminal id's and can terminate the session if same terminal id log on for more than one time.

can any one tell me that how can I read all the session id's of the user...?

Thanks in advance....

Regards

Venkat