If i have locked a program using Locking and iam in
bangalore.How can i give authorization to other user to use
my program who is another place say Pune?is it possible?

Answer Posted / saifur rahaman

f you wish to Lock or UnLock a program Editor Lock it can
be done by the program given below. The SAP System Table
TRDIR has a field called EDTX which is basically the EDITOR
lock filed. Edit Lock facility is given in the PROGRAM
ATTRIBUTES. The EDITOR LOCK is a check box given in the
PROGRAM ATTRIBUTES. If this field is SET then the program
gets locked and if this is Unchecked the the program is
unlocked.

If the EDITOR lock is ON then only the program's author
user who has created the program can edit it. Please find
the program below.

REPORT ZEX_LOCKUNLOCKED .

************************************************************
**
*
ABAPLOVER.BLOGSPOT.COM *
* Editor
Lock *
*
*
************************************************************
**
* Table Declaration
TABLES: TRDIR. "System table TRDIR

*Parameters-------------------------------------------------
-*
Parameter: P_PROG LIKE TRDIR-NAME,
P_EDITOR LIKE TRDIR-EDTX.

* Select the entered Program
SELECT SINGLE * FROM TRDIR WHERE NAME = P_PROG.

* Set/Remove the lock
TRDIR-EDTX = P_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.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we upload a text file having delimiters in to legacy system?

589


there are 2 selection screens. material num in screen 200 and plant in screen 300. so how can you write in INITIALISATION event?

1755


Can we write the code both call transaction and session method in single program?

598


What is the significance of delivery class? : abap data dictionary

564


In sap script how to print bar code in vertical manner

2625






How to load data from ms excel sheet to sap by using bdc method ? : abap bdc

716


What is meant by slab? How is indian slab and us slab? : sap abap hr

550


how to use the xk01 in realtime.can it apply the others. how it it will goes to first page and next page.

1715


How move-corresponding works

923


What is the role of ‘refresh’ in internal table?

588


How can we decide weather we can enhance the standard infotype or not ? : abap hr

565


hi,i worked mostly in core abap.know iam assigned to XI utility project.can u experts let me know what r the basic things i need to learn to work in XI utility project.i already searched in forum.thanks in advance.

1556


What is narrow casting and wide casting?

1127


What are the fields in a bdc_tab table? : abap bdc

606


what are the 2 other types of views, which are not allowed in release 3.0? : abap data dictionary

601