Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Editor Lock

Former Member
0 Likes
3,675

A user created the ABAP program and set the "editor lock" checked-ON (in Program Attributes screen); which makes that user the only person to make any changes to the program.

The same user left the project a year ago, and now there is a need to change the program. How can we do that? Because if someone else tries to modify it, the system doesn't allow him/her saying that "the program is locked from any changes. Only original user can change it".

How do we resolve it?

10 REPLIES 10
Read only

Former Member
0 Likes
2,705

THEN u have to take help of BASIS people for setting new password of the person left.

reward if useful

S@meer

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
2,705

Hi,

You need to contact your BASIS guy and let him know the program name.

He can either reset the lock or change the lock owner.

This info is there in the table REPOSRC and view TRDIR in the field EDTX.

Please donot attempt this on your own.

Regards,

Sesh

Read only

Former Member
0 Likes
2,705

Hi Sriram,

follow the procedure in this link, it will resolve ur problem

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/lock%2band%2bunlock%2bprogram

Ravi.

Read only

Former Member
0 Likes
2,705

Hi,

When a EDITOR LOCK is put on a object it can be released only by the person who has put it. If the person is not available then you need to write a small code to update the table TRDIR to remove the editor lock.

Write a simple program to update the database table to release the edior lock flag. EDTX is the field which needs to be updated.

reward if it helps..

Regards,

Omkar.

Read only

kishorepallapothula
Participant
0 Likes
2,705

Hi Sriram,

This is purely basis issue please contact the basis guy in your organization.

All the best.

Rewards all helpful answers.

kishore

Read only

former_member283648
Participant
0 Likes
2,705

You have to reset the editor lock from the table TRDIR. The field is EDTX. Either reset the flag thro' a piece of code or create a table maintanence generator and change the attributes....

Read only

Former Member
0 Likes
2,705

there is a view TRDIR, it has a field EDTX which is the 'Editor lock flag', in your case, against your program name it would be set to 'X', just change it to space...

Reward points if useful, get back in case of query...

Cheers!!!

Read only

2,705

Hi,

As I have already mentioned do not attempt this on your own.

Think about the problems you create if by mistake you update this flag for all programs.

So better contact your BASIS guy.

<b>Please do not advise to update basis tables...</b>

Regards,

Sesh

Read only

Former Member
0 Likes
2,705

Hello Sriram,

I agree with sameer but we can do it in so many ways .

when ever a report is created an entry will be updated in the TRDIR table in that give your program name and the username.

If you have the authorisation to change the entries in a table then goto the table TRDIR in transaction SE16 and give the program name and the username in NAME,CNAM,UNAM fields and execute it and select the entry , in the menu table entry you can find the change menu press it and you can change the value of the EDTX to initial from 'X' and then save it .

i hope this will help you.

if you dont have the authorisation to change an entry then go for the below process.

you know both the report name and the username in the fields NAME, CNAM and UNAM so write them in the table TRDIR in SE16 and execute it then u can see the entry in that the filed EDTX will be 'X' that respresents the editor lock flag.

write a small program to modify the editor lock flag.

select query for the TRDIR table get the complete details for that entry by giving the program name in NAME field and username in CNAM(if the program is created by the user) or else give the username in UNAM(if the user has last changed it)

give the complete details of the entry modify the value of the editor lock flag field (EDTX) and modify the database table TRDIR with your internal table.

I am sure this will work be careful when u r following the second method .try to get the required entry and use modify command only. its better.

Reward Points If successful.

Regards,

Phani.

Read only

Former Member
0 Likes
2,705

Hi,

This is the solution. As many people said above, Abapers can change it without the help of BASIS guys. Mostly, we don't have authorisation to change SAP STANDARD TABLES. So refer REPOSRC table and TRDIR Database view. In this view EDTX is the field for editor flag. Pass ur program name to NAME field in this view, and check the field EDTX will be marked as 'X' in ur case. We can't change it directly. Write a simple code which retrives the record of ur program name and mark EDTX field as empty. Use UPDATE command to modify REPOSRC table. Then only, u can change ur program.