DELETE - Delete a program

Note

This statement is for internal use only.

Incompatible changes or further developments may occur at any time without warning or notice.


Basic form

DELETE REPORT prog.

Addition:


... STATE state

Effect

Deletes some components (source code, attributes, text elements and generated version) of the program specified in the field prog.

The Return Code is set as follows:

SY-SUBRC = 0:
The program was deleted.
SY-SUBRC = 4:
The program does not exist.

Note

This statement deletes neither the variants nor the documentation.
Normally, you should use the function module RS_DELETE_PROGRAM to delete a program.

Addition

... STATE state

Effect

You can save programs in the library either as 'active' or as 'inactive'. This addition determines the state of the program affected when you delete the program prog. state may have the values A (active) or I (inactive). Inactive programs are only visible to the person currently editing them. All other users work with the active version.

The ABAP Workbench 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 have the state 'active'.

Since this set is only available at short notice within the transactions in the ABAP development environment, you can be sure that all other programs that use the DELETE REPORT statement without the STATE addition always delete active report programs.

Exceptions

Non-Catchable Exceptions

Related

INSERT REPORT