0

Delete Foreign Lock Entries in Debug

 1 year ago
source link: https://blogs.sap.com/2023/03/09/delete-foreign-lock-entries-in-debug/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
March 9, 2023 1 minute read

Delete Foreign Lock Entries in Debug

4 0 173

Delete/Release that lock entry and start working on that object immediately

Screenshot-2023-03-09-160620.jpg

Go to T-Code SM12. Provide the user id of the person who has locked the program and hit list.

2-8.jpg

You will get the list of all locks under his id.

3-6.jpg

Identify and select your program which you want to release/unlock. Hit the Delete icon.

4-5-1.jpg

Check you get the message, ‘You are not authorized to delete foreign lock entries‘.

Select the line you want to unlock. Type ‘/h’ at the command entry section. Hit enter. You will get ‘debugging switched on‘ message. Hit the Delete icon.

5-3-2.jpg

You are in the debugger mode now.

6-2-1.jpg

Type sy-uname. You would find your user id by default.

7-2-1.jpg

Now, we just need to fool the system. In the sy-uname variable, replace your user id with the userid of the person who has locked this object.

You are done. You will get a pop up confirmation message. Just hit Yes.  The lock entry is gone.

just replacing the sy-uname is the simplest way  if you want to delete foreign locks.

Disclaimer: This page is not to encourage you to delete others locks. Please use it ethically and responsibly.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK