A user created the ABAP program and set the "editor lock" checked-ON (in Program Attributes screen); which makes that user the only person to make any changes to the program.
The same user left the project a year ago, and now there is a need to change the program. How can we do that? Because if someone else tries to modify it, the system doesn't allow him/her saying that "the program is locked from any changes. Only original user can change it".
How do we resolve it? I know the checked-ON indicator is stored in TRDIR table, but that table cann't be maintained manually. Please suggest what to do?The lock in an ABAP program is defined in table TRDIR, field EDTX. You must change the value 'X' by ' '.
Use the following example program to unlock your program editor lock:
REPORT sy-repid.
TABLES: TRDIR.
PARAMETERS: P_PROG LIKE TRDIR-NAME OBLIGATORY.
START-OF-SELECTION.
SELECT SINGLE * FROM TRDIR WHERE NAME = P_PROG.
IF SY-SUBRC = 0.
IF TRDIR-EDTX = 'X'.
MOVE ' ' TO TRDIR-EDTX.
MODIFY TRDIR.
WRITE: /'Editor Lock was removed from', P_PROG.
ELSE.
WRITE: /'Program', P_PROG, 'does not have an Editor Lock'.
ENDIF.
ELSE.
WRITE: /'No match found for program', P_PROG.
ENDIF.
How to delete an editor lock In SAP ABAP
Topics
-
▼
2008
(35)
-
▼
September
(35)
- SAP ABAP What date format should be used in batch ...
- Easy Way To Remember Table In SAP ABAP
- Difference between extract and collect statements ...
- Trace when a variant of a report was created In SA...
- What is use of using HASHED TABLE In SAP ABAP
- How to get the field descriptions of a table In SA...
- Difference between Work Area and Header Line In SA...
- Working on Polymorphism In SAP ABAP
- Working on Polymorphism1 In SAP ABAP
- How to delete an editor lock In SAP ABAP
- What is the difference between SMOD and CMOD In SA...
- ABAP Self Test Q & A In SAP
- SAP ABAP Interview Questions And Answers
- SAP ABAP Interview Questions And Answers1
- SAP ABAP Real Time Interview Questions And Answers
- Interview Questions And Answers for SAP ABAP
- SAP ABAP Interview Questions And Answers(FAQ's)
- ABAP FAQ in SAP
- ABAP Frequently Asked Question in SAP
- ABAP FAQ in SAP Important
- ABAP Frequently Asked Question FAQ in SAP
- Sample Test Questions on ABAP Programming in SAP
- Real Time questions in SAP ABAP
- QUESTION Database in SAP ABAP
- ABAP Objective Questions in SAP
- Learning ABAP or SAP Application
- Interview Question on BAPI, RFC, ABAP Objects, Tab...
- ABAP Interview Questions in SAP
- Faq Miscellaneous in SAP ABAP
- SAP ABAP FAQ (Technical)
- Important ABAP FAQ's in SAP
- ABAP Certification Sample Questions for Abapers in...
- The Other 50 ABAP Interview Faq's in SAP
- ITs about FAQS in SAP ABAP
- Real Time questions in SAP ABAP
-
▼
September
(35)