How to Remove Editor Lock in SAP Program (SE38)

In our previous article, How to Lock or Restrict Editing in SAP Program (SE38), we have shown you the steps on performing the SAP program locking. The activity might be useful if you do not want others to perform any changes to your program.

But, what if the person who developed and locked the SAP program left your organization and you need to enhance the SAP program or maybe perform some adjustment due to upgrade activity?

Some error might looks like below,

Diagnosis
You attempted to change ABAP/4 source code, but the author or 
last user has locked this against further changes by setting the editor lock.

System Response
You are not allowed to change the ABAP/4 source code, but can 
view it in display mode.

Procedure
You can change the ABAP/4 code only when the user who set 
the editor lock has canceled it.

Solution

There are 2 scenario on performing this activity.

Method 1

In this example, the program Z_SMSCMAID is locked and forbidden to be change by other users except for BASISADMIN user.

To change this, open transaction code SE16. Enter the table name as PROGDIR. Press Enter.

Put the NAME with the program name, as in this example, Z_SMSCMAID. Press Execute.

Select the program with the STATE=A and switch to change mode (F6).

Remove the “X” from the EDTX field and save.

Note: Please log off from the existing session and re-login to see the reflected changes.

Method 2

If the user has left the organization. You can reset the user password, login and perform the editor unlock.

In some of the cases, the program is locked by SAP. To unlock, create a new user called SAP. Register the SAP user with the developer access. Now deactivate the modification assistant (Edit > Modification operations > Deactivate assistant).

Next, select Attributes and click on Change.

Unchecked the Editor Flag, save and activate the program.

Reference

  • 2455690 – Error message ‘Changes to are forbidden by SAP’ When implementing SAP Notes
  • 151354 – Editor lock in SAP Includes
  • 37900 – DS138: Changes prohibited by user
  • 1921937 – Implementing SAP Note is not allowed. Error message “Changes to object are forbidden by SAP”

You May Also Like

Leave a Reply?