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

user logout functionality for multiple users.

Former Member
0 Likes
2,645

Hello,

Problem arises that the user does not log out of SAP when

he leaves for home and the next user of the next shift cannot use the same transaction since the previous user has a lock on it. We are looking for a logout user functionality that can be used for one-to-

many users. We have developed a custom function that will log the user out of SAP and this was based on SM04 'delete user' functionality. The problem we are running into is that we are getting a pop-up dialog box

with the message of 'SAP SYSTEM MESSAGE: Session was deleted by system administrator'. The issue is that this dialog box comes up for every user we logout and it would require an action of hitting the 'enter'

key to remove the dialog box. So if we logout 10 users, we are getting 10 dialog boxes.

As stated we are re-using SM04 functionality, in particular fm TH_DELETE_USER. I believe the dialog box is from the system call statement:

'call 'ThUsrInfo' id 'OPCODE' field opcode_delete_usr id 'TID' field usr_tabl-tid.'

The question is how can we suppress the dialog box from displaying? Is there another method you can recommend for logging out users in the background?

We have turned off the time-out logout feature and so this is not an option.

We are on 4.6B release.

Any help/suggestion you can provide would be greatly appreciated.

Regards,

Anna-Liza Sanchez

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,493

Hello Anna,

As I understand the problem description, there's going to be one user (or a few of them) who will have the authorization to delete the other users from the system.

Now when a user is deleted using the Function Module TH_DELETE_USER, the pop-up message that you're talking about will appear for the user who has been deleted. Not for the person who is deleting the user.

I hope you are getting what I'm trying to say.

Get back to me if the problem persists.

Regards,

Anand Mandalika.

7 REPLIES 7
Read only

Former Member
0 Likes
1,493

Hi

Just you can insert the code

"SUPPRESS DAILOG."

. May be insert the code after the function module where you will be getting that dailog.

Hope this Helps YOU.

<i>Reward Points If It Helps YOU.</i>

Regards,

Raghav

Read only

Former Member
0 Likes
1,493

try using LMBP_RESOURCE_LOGOFF...It may be helpful. If so, award.

Read only

Former Member
0 Likes
1,494

Hello Anna,

As I understand the problem description, there's going to be one user (or a few of them) who will have the authorization to delete the other users from the system.

Now when a user is deleted using the Function Module TH_DELETE_USER, the pop-up message that you're talking about will appear for the user who has been deleted. Not for the person who is deleting the user.

I hope you are getting what I'm trying to say.

Get back to me if the problem persists.

Regards,

Anand Mandalika.

Read only

Former Member
0 Likes
1,493

Thank you for the quick response.

--Raghav

Unfortunately, 'Suppress Dialog' did not work.

--Ramesh

Can you provide more details about 'LMBP_RESOURCE_LOGOFF' ? Is this a system function call? If so, who can I logoff a specific user id? I am connecting via RFC since we know the userid for the person we need to logout. Please advise.

Regards,

Anna-Liza

Read only

0 Likes
1,493

Hi

- Suppress Dialog is for SCREEN, not system popup,

- I believe the fm LMBP_RESOURCE_LOGOFF is not for log out of SAP;

You can't suppress that popup because it's actived by system function (and you can't or shoudln't change it).

So I can't understand your problem because this popup is for deleted user and not for deleting user (as Anand Mandalika said).

Max

Message was edited by: max bianchi

Read only

Former Member
0 Likes
1,493

Hello Anand,

Yes, you are correct. But the problem is that users share workstations (we are in manufacturing and in the warehouse have a shared console). Therefore, if I logout the user, next user sharing the console will see the pop-up, which could lead to confusion. And so, I looking for either the ability to suppress the dialog box or a different method in logging out users from the system. Have any suggestions?

Regards,

Anna-Liza

Read only

Former Member
0 Likes
1,493

Hello Max,

The deleted user was based out of SM04 functionality. It is when you delete a user session. When you delete all of the sessions for the user, then you effectively logout the user from the system and the pop-up is displayed. My goal is to logout the user and could not find a different way than to use SM04 functions.

Regards,

Anna-Liza