SAP DELETE REPORT ABAP Statements

Get Example source ABAP code based on a different SAP table
  


Standard SAP Help for DELETE_REPORT

DELETE REPORT
ABAP Code Snippet
• DELETE REPORT ABAP_STATEMENT_INT


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-subrcMeaning 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.
• STATE DELETE REPORT (internal)

ABAP Addition

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

Return to menu