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 an interactive report? What is the obvious difference of such report compared with classical type reports?
What are the advantages of logical databases : abap hr
how to Implement a BADI in which it restricts the access when purchase order is created against contract using definition ME_PURCHDOC_POSTED. please tell me the answers if any one knows. thanks in advance. :ravikiran
What is the bitwise operator in the sap abap?
How do you execute the payroll
How do you move on to the next screen in interactive reporting?
suppose i want to print sap script output in different printers at a time what are the settings i'll have to make?
Can a transparent table exist in data dictionary but not in the data base physically? : sap abap data dictionary
i want to add 2 records to a table but the last field in the table is 1000 char long.Is it possible?if yes how?
What is meant by authorization? : sap abap hr
2)In production what is the user exit?
what is the t-code to link technical and functional operation?
What is the difference between skip and reserve?
What are the different types of luws?
If I forgot some command in sap script e.g.: Suppress zero display – how to do find it?