ABAP Keyword Documentation →  ABAP − Reference →  program editing →  Dynamic Program Editing →  Source Code →  Internal Statements for Source Code Processing → 

DELETE REPORT  Syntax Diagram

This statement is for internal use only.
It must not be used in application programs.


Syntax

DELETE REPORT prog.

Addition:


... STATE state

Effect

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.

System Fields

sy-subrc Meaning
0 The program was deleted.
4 The program does not exist.

Note

This statement does not delete the package assignment, the documentation, or the variants of the program in prog in the database. To completely delete a program, therefore, you should use the function module RS_DELETE_PROGRAM.

Addition

... STATE state

Effect

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. state 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.

Exceptions

Non-Catchable Exceptions