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
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
This addition determines whether the statement uses the active version or an inactive version of the
repository object. state
can have the values "A" (for active) and "I" (for inactive), which is checked statically if specified as a literal.
-
If the addition
state
is 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
state
is 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-subrc
is set to 4.
Exceptions
Non-Handleable Exceptions
-
Cause:
state
has a value other than "A" or "I".
Runtime error:INSERT_REPORT_ILLEGAL_STATE