sapdev logo background
sapdev logo sapdev logo
Comments

ABAP DELETE REPORT Statement syntax, information and example SAP source code



Return to Statement index



DELETE REPORT


ABAP Syntax DELETE REPORT prog.

ABAP_ADDITION:
... STATE state

What does it do? 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
0The program was deleted.
4The program does not exist.

Latest notes: 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 .

ABAP_ADDITION ... STATE state

What does it do? 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.



Runtime Exceptions
Non-catchable Exceptions

Reason for error: state has a value other than "A" or "I".
Runtime error: INSERT_REPORT_ILLEGAL_STATE
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




DELETE_OBSOLETE
DELETE_SOURCE




comments powered by Disqus