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

automatic editor lock

Former Member
0 Likes
548

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.

3 REPLIES 3
Read only

Former Member
0 Likes
469

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

Read only

Former Member
0 Likes
469

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

Read only

0 Likes
469

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