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 se38

Former Member
4,967

Hi All,

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

Thanks

Vijay.

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
Read only

Former Member
0 Likes
3,036

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

Read only

0 Likes
3,036

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

Read only

3,036

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

Read only

Former Member
Read only

Former Member
3,036

goto sm12

and unlock the lock...

simple ..

it is the transaction used to unlock any program.

Read only

0 Likes
3,036

This is really easy. Use SM12 guys!

Read only

jeet_bhattacharjee
Participant
3,036

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!!

Read only

Former Member
0 Likes
3,036

HI,

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

Regards,

Deepti

Read only

0 Likes
3,036

Hi Deepti,

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

Read only

Former Member
0 Likes
3,036

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

Read only

marco_furlanetto
Explorer
0 Likes
3,036

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