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

What is the difference between field-group header and other field groups? : abap modularization

573


When, how and how would you control changes to standard SAP objects.

1430


What is a table cluster? : abap data dictionary

738


What are pooled tables?

622


What are the commands used for interactive reports?

570






What is the differences between abap and ooabap. In which situation we useooabap?

715


What are the types of windows in sap script?

609


Normally how many and what files get created when a transaction program is written?

565


When value table becomes check table?

582


What is the use of start-of-selection.,if not use in report what will happen,?

1164


what are the main technical differences between oracle and sap? it would be more helpful to me if get this answer...

1536


What is a match code? : abap data dictionary

643


How will you link form with the event driven in sap scripts?

535


how can you display data say "your name"in sap script without print program or driver program??

1725


Explain what are extracts?

630