‎2006 Jun 13 11:59 AM
I faced one problem during working on user exit(function module exit).when u go in attributes part one checkbox is there for editor lock (on or off).But in my case it was by default on. so please tell me that in which cases it gets automatically on.
‎2006 Jun 13 12:02 PM
Hi Manish,
I think somebody had lareday used that Function exit before you and did that.
See the name of the last changed person.
By default it will be unchecked for almost all the programs.
Regards,
Ravi
‎2006 Jun 13 3:15 PM
Hi,
Use this program to lock and unlock ABAP editor automatically.
REPORT ZEDITOR.
TABLES: TRDIR. "System table TRDIR
PARAMETERS: PROGRAM LIKE TRDIR-NAME.
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.
Regards,
Rajesh
‎2007 Oct 10 8:57 AM
Dear Manish,
I was having a similar problem and tried the above example and it worked.
You should have rewarded this with 10 points, we just have to give points for help
Is that a big deal.
Neetu