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: 

whenever I create a program or Include the editor lock gets checked.

Former Member
0 Kudos
119

DO you know why this would get automatically set everytiem I create a program? I have to manually go in and uncheck it/

Thanks

4 REPLIES 4

Former Member
0 Kudos
49

Hi Laja,

1) check the ON indicator is stored in TRDIR table

and

2)

If you find 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

Hope this will be help else let me know i will try to help you

Thanks

Kalyan

0 Kudos
49

thanks this was the issue. Do you know how these values get set in this table?

Former Member
0 Kudos
49

hi bro....

i m not very sure about this cause i was trying for the reason for the same but didnt had authorization

for the same so i couldnot find it...

but this thing is related to initail screen of SE38

there you goto SYSTEM -> USER PROFILE -> OWN DATA..

THERE YOU CAN FIND REASON FOR THIS IN FORM OF SOME PARAMETER

REGARDS

Former Member
0 Kudos
49

Hi

Please FInd the Code Below

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.

Thanks

kalyan