ABAP Keyword Documentation → ABAP − Reference → program editing → Dynamic Program Editing → text element → READ TEXTPOOL
READ TEXTPOOL - Internal Addition
Other versions: 7.31 | 7.40 | 7.54
This addition is for internal use only. It must not be used in application programs.
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