Skip to Content
author's profile photo Former Member
Former Member

user logout functionality for multiple users.

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2005 at 01:02 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2005 at 01:15 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2005 at 12:43 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2005 at 12:44 PM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2005 at 01:07 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Dec 07, 2005 at 12:42 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.