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

Former Member
0 Likes
806

Hi all,

i need to modify a program which is locked by editor .

is there any way to change that program?

thanks.

5 REPLIES 5
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
735

You need to take the lock off. You can do this by signing on as the user who locked it and unlock. You can also change the EDTX value in the TRDIR table directly to get rid of the lock.

Regards,

Rich Heilman

Read only

0 Likes
735

Just don't tell your auditors that you did either one of Rich's ideas... tell them that you contacted the developer that applied the lock and he/she logged in and removed it themselves.

Read only

uwe_schieferstein
Active Contributor
0 Likes
735

Hello Priya

An alternative to violating common security rules is the following program:

START-OF-SELECTION.
  SELECT SINGLE * FROM  trdir INTO gs_trdir
         WHERE  name  = p_name
         AND    edtx  = 'X'.
  CHECK ( syst-subrc = 0 ).

  gs_trdir-edtx = ' '.  " remove editor lock

  CALL FUNCTION 'RS_TRDIR_UPDATE'
    EXPORTING
      trdir_row       = gs_trdir
    EXCEPTIONS
      internal_error  = 1
      parameter_error = 2
      not_found       = 3
      OTHERS          = 4.
  IF sy-subrc <> 0.
    ROLLBACK WORK.
  ELSE.
    COMMIT WORK AND WAIT.
  ENDIF.

END-OF-SELECTION.

Regards

Uwe

Read only

uwe_schieferstein
Active Contributor
0 Likes
735

Hello Priya

Another simple approach is to debug the attributes popup when you want to change from display mode to change mode. You will pass a function module RS_ACCESS_PERMISSION where you simply have to reset the sy-subrc. Usually within less than 1 minute the attribute will become editable on the popup.

Regards

Uwe

Read only

0 Likes
735

Or you can just go to transaction SM12

It is the table of the objects that are locked

You can just delete the lock there