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 a sequence of event-triggered in report?
Difference between call by value and call by reference? : abap data dictionary
What are aggregated objects : abap data dictionary
Is main window mandatory in smartforms?
What are the functional modules used in sequence in bdc? : abap hr
WHAT ARE THE INPUT PARAMETERS TO BE PASSED FOR THE BAPIS 'BAPI_CUSTMATINFO_GETDETAILM' AND 'BAPI_CUSTMATINFO_GETLIST'
What is the transaction for recording bdc ? : abap bdc
What is the reserve command?
What is the use of a pretty printer?
Suppose there is a secondary index on 4 non-key fields A,B,C & D. There are 3 select queries :- a) one on basis of A, B, C , D b) Second on basis of A, B, C c) Third on basis of D, C,B, A In which all situations , the above secondary index will be used?
What is lock object ? : abap data dictionary
What is a currency factoring technique?
What are the functional areas? User groups? and how does ABAP query work in relation to these?
What are the different abap editors? What is the used of different editors in abap?
What are the function modules used in a sap script driver program?