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 in the data object
prog. An entry for
prog in the 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 on the database. For this reason, the function module RS_DELETE_PROGRAM should be used to delete a program in full.
... STATE state
This addition determines whether the statement uses the active version or an inactive version of the
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.
statehas a value other than "A" or "I".