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

Changes to a Program forbidden

Former Member
0 Likes
8,300

I'm trying to change few programs that was locked by someone who left the company. I'm told that I can change the ABAP/4 code only when the user who set the editor lock has canceled it. Is there a way to unlock the program without changing it's mode(active/inactive/saved mode)?

My concern is, what if the program was changed but not activated when this person left the company? Am I going to run into problem if Basis group go to lock and activate the programs for me? Will I get the last activated version or the edit/unactivated version?

Thank you

1 ACCEPTED SOLUTION
Read only

Former Member
4,171

Hi, Amy

you can update the database table 'PROGDIR‘ to unlock the report. but It's very dangerous to update database without consistency check. so the following code is not recommended, only for reference.

DATA WA LIKE PROGDIR.

SELECT * FROM PROGDIR INTO WA

WHERE NAME like 'ZHRIS%' “ here the program name you want to unlock

AND EDTX = 'X'. " indicate that program is in lock state

Update PROGDIR set edtx = ''

Where name = WA-NAME

And state = 'A'. " set unlock for the program

write: wa-name.

ULINE.

ENDSELECT.

hope it helpful for you.

Regards

qiuguo

6 REPLIES 6
Read only

Former Member
0 Likes
4,171

Is it possible to get his / her userid activated again and unlock as well as activate the code.

Once this is done, you can request basis to deactivate the user id.

Else to unlock the programs usually we write a custom program which updates database table to unlock the entry. Not sure of any other quick way to do the same.

Read only

former_member221770
Contributor
0 Likes
4,171

Amy,

If the program has an editor lock (in Program Attributes) it means that only the person who put the lock on it can edit the program. Best way to get around this is to get BASIS to activate the user account, log in under that account and unlock all their programs. As a general rule it the Editor Lock should never be turned on for this exact reason.

If the program is left in an inactive state, simply turn off the Editor Lock, find the associated Transport, put yourself as the new Transport (and Task) owner via SE10, then you can finish and activate the program without any problems. If you leave the transport assigned to the previous programmer, SAP will create a new Task in the Transport under your name but then only the previous programmer can release the Transport.

Hope this makes sense, otherwise shoot me back a message.

Cheers,

Pat.

Read only

ferry_lianto
Active Contributor
0 Likes
4,171

Hi Amy,

Do you have authorization to take over the ownership of the program? If you do, after assign the new owner to your name you can then turn off the editor lock via SE10 and activated the program. Perhaps the sytem will ask to create new transport.

Hope this will help.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
4,171

Hi,

if you have the userid with you ,then various possibilities..

1 . if you guys are maintained the userid and password list then check it, and try to unlock it.

2 . BASIS can reset the password for that Userid.

now access the programs with that ID,password and remove the lock.

Regards

vijay

Read only

viveksagar_sareen
Product and Topic Expert
Product and Topic Expert
0 Likes
4,171

Hope this helps ....

Changes to xxxxxxxx forbidden by user xxxxxxx

SAP Note Number: 71837

Symptom

Changes to xxxxxxxx forbidden by user SAP*. (for example)

Additional key words

editor lock

Cause and prerequisites

Program delivered with editor lock. Correction not possible

Solution

See program: USE IT WITH CARE THEN DELETE IT.

report zzedlock.

  • program removes editor lock on a program.

tables: trdir.

parameters: prog like trdir-name.

update trdir set edtx = space

where name = prog.

write: 'Reset ok when number 0 appears ->', syst-subrc.

Read only

Former Member
4,172

Hi, Amy

you can update the database table 'PROGDIR‘ to unlock the report. but It's very dangerous to update database without consistency check. so the following code is not recommended, only for reference.

DATA WA LIKE PROGDIR.

SELECT * FROM PROGDIR INTO WA

WHERE NAME like 'ZHRIS%' “ here the program name you want to unlock

AND EDTX = 'X'. " indicate that program is in lock state

Update PROGDIR set edtx = ''

Where name = WA-NAME

And state = 'A'. " set unlock for the program

write: wa-name.

ULINE.

ENDSELECT.

hope it helpful for you.

Regards

qiuguo