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.