Application Development 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: 

Editor lock se38

Former Member

Hi All,

Is there any way by which I can unlock the editor, locked by other user in SE38 program.

Thanks

Vijay.

11 REPLIES 11

Former Member
0 Kudos

go to transaction SM04........close the session of the other user.....

0 Kudos

Hi all,

I think my question was not clear last time ..

I want to unlock the editor (SE38) which is locked by other by the EDITOR LOCK check box.

Thanks

vijay

Just execute this program with lock as SPACE (unchecked) to unlock

LOCK with 'X'(check) to lock

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.

Regards

Gopi

Former Member

Former Member

goto sm12

and unlock the lock...

simple ..

it is the transaction used to unlock any program.

0 Kudos

This is really easy. Use SM12 guys!

Hi Vijay,

There are three methods to do the same.

1) Programatically edit the entry in table TRDIR for the report which is locked for the field EDTX for editor lock (already mentioned above by Gopi Narendra).

2) You can try editing the entry in TRDIR directly from SE11 (the normal method abapers use to edit an entry in a table using debugger session).

3) If even while following the 2nd approach ultimately you are unable to edit the entry in the table (which happened in my case) due to some restrictions, go to table TADIR and there edit the entry for the concerned report program (OBJ_NAME) and change the field AUTHOR value to your own user ID. Now go to se38 and remove the editor lock from the attributes tab for the program.

Please reward points if you found this usefull!!

Former Member
0 Kudos

HI,

SM12 is the transaction you can use to remove the lock.

Regards,

Deepti

0 Kudos

Hi Deepti,

Editor lock on a program will not give you any lock entries in SM12. So this can not be done from SM12.

Former Member
0 Kudos

Hi,

for this issue you don't use transaction SM12.

You could ask to this developer to modify the flag editor lock.

If this is not possible, you could modify this value into table TRDIR how  as mentioned previously by other guys.

Cheers

Ivan

marco_furlanetto
Explorer
0 Kudos

Hi Vijay, all,


I think the easiest way is changing the program responsible to yourself (through SE03). It should allow you to edit after that.


Cheers

Marco