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 do you process errors in session method ? : abap bdc

781


THANKS ALL. i CLEARED THE INTERVIEW OF INFOSYS BASED ON THIS QUESTION SET. IT REALLY WORKS. LONG LIVE ALLINTERVIEW.COM

16047


Explain the advantages and disadvantages of different types of bdc's?

823


What is the major difference between pool tables and transparent tables?

729


What is the difference between a structure and a table? : abap data dictionary

829


What is an authorization in sap?

819


What is the use of dequeue function module? : sap abap data dictionary

849


On which event we can validate the input fields in module programs?

822


What are local objects?

799


How will you read from internal table records in a given value range (without using loop)

1218


How can we set the tablespaces and extent sizes ?

744


Control Break statements- At new...endat.

1141


What are the components of sap scripts? : abap hr

777


What is the use of message command in a report? What are the different message types?

735


What is the significance of the memory table ‘screen’?

776