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
What is the difference between field-group header and other field groups? : abap modularization
When, how and how would you control changes to standard SAP objects.
What is a table cluster? : abap data dictionary
What are pooled tables?
What are the commands used for interactive reports?
What is the differences between abap and ooabap. In which situation we useooabap?
What are the types of windows in sap script?
Normally how many and what files get created when a transaction program is written?
When value table becomes check table?
What is the use of start-of-selection.,if not use in report what will happen,?
what are the main technical differences between oracle and sap? it would be more helpful to me if get this answer...
What is a match code? : abap data dictionary
How will you link form with the event driven in sap scripts?
how can you display data say "your name"in sap script without print program or driver program??
Explain what are extracts?