How to find is user is active or not on a webdynpro screen?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #49887
    Gopal
    Guest

    Dear SAP Experts,

    I have a ABAP webdynpro application. A user can open the app in change mode by pressing the edit button on the webdynpro screen. First user1 has opened the app in browser. After few mins user2 also opens the same app . Then I want to know programatically if user1 is already active and editing the ABAP webdynpro screen. How to get this in ABAP webdynpro code? How to know in ABAP pogram if user session is active in a webdynpro screen and is not idle?

    #49924
    Cleo Isco
    Keymaster

    In ABAP WebDynpro, you can use the concept of locks to determine whether a user is actively editing a particular object or not. When a user opens an object for editing, a lock is placed on that object. Other users attempting to access the same object for editing will be notified that it’s already in use.

    Here’s how you can check programmatically whether a user is actively editing a WebDynpro screen:

    1. Use the lock object to check if a lock exists on the object representing the WebDynpro screen.
    2. Check the lock status to see if it’s held by another user.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.