ABAP Keyword Documentation → ABAP − Reference → program editing → Dynamic Program Editing → ABAP Source Code → Internal Statements for Source Code Processing
DELETE REPORT
Other versions: 7.31 | 7.40 | 7.54
This statement is for internal use only. It must not be used in application programs.
Syntax
DELETE REPORT prog.
Addition
Effect
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.
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 on the database. For this reason, the function module RS_DELETE_PROGRAM should be used to delete a program in full.
Addition
... STATE state
Effect
This addition determines whether the statement uses the active version or an inactive version of the
repository object. state can have the values "A" (for active) and "I" (for inactive), which is checked statically if specified as a literal.
-
If the addition
stateis not specified, the statement accesses either
- the active version of the repository object or
- the inactive version of the repository object in the worklist of the current user. If there are no inactive versions in the worklist of the current user, the statement accesses the active version of the repository object.
-
If the addition
stateis specified, the statement accesses
- the active version of the repository object if "A" is specified,
- the inactive version of the repository object if "I" is specified. The user to which the inactive
version is assigned is not important here or whether the version is part of a worklist. If there are no inactive versions, the object is not accessed and
sy-subrcis set to 4.
Exceptions
Non-Handleable Exceptions
-
Cause:
statehas a value other than "A" or "I".
Runtime error:INSERT_REPORT_ILLEGAL_STATE