This website is not affiliated with, sponsored by, or approved by SAP AG.

[b]Unlocking the ABAP Editor Lock[/b]

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

[b]Unlocking the ABAP Editor Lock[/b]

Postby Gadar » Wed Oct 30, 2002 1:48 pm

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? I know the checked-ON indicator is stored in TRDIR table, but that table cann't be maintained manually. Please suggest what to do?
Gadar
 

Postby sonia_00 » Wed Oct 30, 2002 1:54 pm

If you know where the flag is set write a quick abap to update the flag to desired value using the update statement. Do not forget the commit statement

or get your BASIS guys to recreate the user id with new password Login & change. WOULD THIS WORK???
sonia_00
 
Posts: 32
Joined: Wed Oct 30, 2002 10:53 am
Location: NJ, USA

Postby Gadar » Wed Oct 30, 2002 2:08 pm

We were able to solve the problem creating a new USER with the same old user's USERID name.

However, I was curious to find out if there is any other way to do it. Maybe some menu or some transaction or some way to maintain TRDIR rows, because this situation may not be so uncommon.

By "update the table", do you mean to write an ABAP program and update the underlying SAP table via custom code, hitting the desired row directly?
Gadar
 

Postby bubu » Wed Oct 30, 2002 4:31 pm

we normally update the table via sql statements ... (we just remove the value X on the field EDTX so that it will now have ' ') ... ask your basis admin to do that ...
bubu
 
Posts: 529
Joined: Mon Oct 21, 2002 7:42 am

Postby kumar » Thu Oct 31, 2002 5:18 am

A small program as follows may be helpful.

Code: Select all
REPORT ZLOCK_UNLOCK.

TABLES: TRDIR.

PARAMETERS: PROGRAM LIKE TRDIR-NAME OBLIGATORY.
PARAMETERS: EDITOR  LIKE TRDIR-EDTX.

SELECT SINGLE * FROM TRDIR WHERE NAME = PROGRAM.

TRDIR-EDTX = EDITOR.
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.



KRK
kumar
 
Posts: 2012
Joined: Tue Oct 22, 2002 12:51 pm
Location: Basel, Switzerland


Return to ABAP

Who is online

Users browsing this forum: No registered users and 8 guests





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.