Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  program editing →  Dynamic Program Editing →  text element →  Internal Statement for Editing Text Elements 

DELETE TEXTPOOL

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 TEXTPOOL prog LANGUAGE lg. 

Addition

... STATE state

Effect

All text elements in the program whose name is in the field prog are deleted from the library in the specified language lg.

If the value '*' is used for lg, the text elements of all languages are deleted.


Example

Deletes all text elements of the program "PROGNAME" in the language "English".

DATA PROGRAM LIKE SY-REPID VALUE 'PROGNAME'. 

DELETE TEXTPOOL PROGRAM LANGUAGE 'E'. 

Addition

... STATE state

Effect

activeinactive

In the ABAP development environment, a set of objects in editing (for example, text elements) can be defined for each user. These objects are saved as inactive until the user activates them. If the STATE addition is omitted, this set of objects is saved as inactive, while all other objects are saved as active.

Since this set is only temporarily available within the transactions in the ABAP development environment, it is guaranteed that all other programs that use the statement DELETE TEXTPOOL without the addition STATE always delete "active" text elements.

Exceptions


Non-Catchable Exceptions

  • Cause: state has a value other than "A" or "I".
    Runtime Error: INSERT_REPORT_ILLEGAL_STATE