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 program are forbidden by USER

ronaldo_aparecido
Contributor
13,150

Good Morning Gurus.

I have a program Z created by other guy.

When i try Change this program then is showed the message:

Changes to ZCX_FEBRABANT_REL are forbidden by ABA-FELIPE

But This Guy ( ABA-FELIPE ) dont work in my company since 2008.

How I can Change this program?

The message says:

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 i

    display mode.

Procedure

    You can change the ABAP/4 code only when the user who set the editor

    lock has canceled it.

Thanks Gurus.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
7,167

The best option is to recreate the user, log in as them, and unprotect it.  Your security people could help you with that.

The next choice is to go into debug.  When the return is created saying that you don't have rights, you change it to 0.  Then you unprotect the program.  But you better get approval from you security people for that before you try it.

Neal

5 REPLIES 5
Read only

Former Member
0 Likes
7,168

The best option is to recreate the user, log in as them, and unprotect it.  Your security people could help you with that.

The next choice is to go into debug.  When the return is created saying that you don't have rights, you change it to 0.  Then you unprotect the program.  But you better get approval from you security people for that before you try it.

Neal

Read only

0 Likes
7,167

Thanks Neal.

Read only

ThomasZloch
Active Contributor
0 Likes
7,167

You could also write a one-liner that clears TRDIR-EDTX for that program.

Also make sure you do research before posting, "ABAP remove editor lock" returns many relevant hits.

Also send a "nice" postcard to ABA-FELIPE, whereever he is nowadays.


Thomas

Read only

Former Member
7,167

Hi Ronaldo,

various methods are there

1.After getting proper approval from superior approach security team and do a password reset for the ABA-FELIPE user and login as an user and remove the editor lock in the attribute of the program.

2.Use the below program

TABLES: trdir. "System table TRDIR

PARAMETERS: program LIKE trdir-name.

PARAMETERS: lock    LIKE trdir-edtx.

SELECT SINGLE * FROM trdir WHERE name = program.

trdir-edtx = lock.

MODIFY trdir.

IF sy-subrc EQ 0.

  WRITE: / 'Editor Lock update Successful ', trdir-name.

  IF trdir-edtx = 'X'.

    WRITE: ' Lock'.

  ELSE.

    WRITE: ' UnLock'.

  ENDIF.

ELSE.

  WRITE: / 'Editor Lock update Unsuccessful ', trdir-name.

ENDIF.

Execute this program with lock as SPACE (unchecked) to unlock

LOCK with 'X'(check) to lock

Regards,

Kannan

Read only

0 Likes
7,167

Thanks a lot! Very usefull.