Wednesday 15 March 2023

Delete Foreign Lock Entries in Debug

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

SAP ABAP Development, SAP ABAP Career, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Prep, SAP ABAP Preparation, SAP ABAP Tutorial and Materials, SAP ABAP Guides, SAP ABAP Learning

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

SAP ABAP Development, SAP ABAP Career, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Prep, SAP ABAP Preparation, SAP ABAP Tutorial and Materials, SAP ABAP Guides, SAP ABAP Learning

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

SAP ABAP Development, SAP ABAP Career, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Prep, SAP ABAP Preparation, SAP ABAP Tutorial and Materials, SAP ABAP Guides, SAP ABAP Learning

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

SAP ABAP Development, SAP ABAP Career, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Prep, SAP ABAP Preparation, SAP ABAP Tutorial and Materials, SAP ABAP Guides, SAP ABAP Learning

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.

SAP ABAP Development, SAP ABAP Career, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Prep, SAP ABAP Preparation, SAP ABAP Tutorial and Materials, SAP ABAP Guides, SAP ABAP Learning

You are in the debugger mode now.

SAP ABAP Development, SAP ABAP Career, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Prep, SAP ABAP Preparation, SAP ABAP Tutorial and Materials, SAP ABAP Guides, SAP ABAP Learning

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

SAP ABAP Development, SAP ABAP Career, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Prep, SAP ABAP Preparation, SAP ABAP Tutorial and Materials, SAP ABAP Guides, SAP ABAP Learning

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.

No comments:

Post a Comment