ABAP Keyword Documentation → ABAP - Reference → program editing → Dynamic Program Editing → Source Code → Internal Statements for Source Code Processing
Other versions: 7.31 | 7.40 | 7.54
This statement is for internal use only. It must not be used in application programs.
DELETE REPORT prog.
Deletes the source code, attributes, text elements, and generated version of the program, whose names
are contained in data object
prog. An entry for
prog in database table TADIR remains unchanged.
|0||The program was deleted.|
|4||The program does not exist.|
This statement does not delete the package assignment, the documentation, or the variants of the program
prog in the database. To completely delete a program, therefore, you should use the function module RS_DELETE_PROGRAM.
... STATE state
You can save programs in the library as either "active" or "inactive". This addition determines which
state is to be taken into account when program
prog is deleted.
can have the values "A" (for "active") and "I" (for "inactive"). Inactive programs are only visible to the person currently processing them. All other users work with the active version.
The ABAP development environment allows you to define a set of programs being worked on by each user.
These programs are saved as "inactive" until they are activated. If you omit the
STATE addition, the system assumes that this set of programs is inactive and that all other programs are active.
Since this set is only temporarily available within the
transactions of the ABAP
development environment, it is guaranteed that all other programs that use the DELETE
REPORT statement without the
STATE addition always delete active reports.
statehas a value other than "A" or "I".