This statement is for internal use only.
It cannot be used in application programs.
DELETE REPORT prog.
... STATE state
Deletes the source code, attributes, text elements, and generated version of the program, whose names
are in the data object prog. An entry for prog in the database table TADIR remains unchanged.
Return Value
This statement does not delete the package assignment, the documentation, or the variants of the program
in prog on the database. To completely delete a program, you should use the function module RS_DELETE_PROGRAM.
... STATE state
You can save programs in the library either as 'active' or as 'inactive'. This addition determines the
state of the program affected when you delete the program prog.
state may have the values
A (active) or I (inactive). Inactive programs are only visible to the person currently editing 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 have the state '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 report programs.
Non-Catchable Exceptions