READ TEXTPOOL prog ... INTO itab ... LANGUAGE lg.
Parts marked with " ..." are interchangeable
... STATE state
Reads the text elements for the program prog and the language lg
from the library into the internal table itab . The line structure
of the table itab is described in the section on text
DATA: PROGRAM(8) VALUE 'PROGNAME', TAB LIKE TEXTPOOL OCCURS 50 WITH HEADER LINE. READ TEXTPOOL PROGRAM INTO TAB LANGUAGE SY-LANGU.
This addition is intended for internal use. SAP reserves the right to make changes, which may be incompatible, at any time.
The STATE addition indicates whether you want to read the active or inactive version of the text pool. state may have the value A for active, or I for inactive. Inactive text elements are only visible to the user curretly working on them. All other users work with the active version.
In the ABAP Workbench, you can define a list of objects being edited by each user. These objects are saved in their inactive state until the user activates them. If you omit the STATE addition, the system reads the inactive version of these objects, and the active version of all other objects.
INSERT_REPORT_ILLEGAL_STATE: state does not have the value A or I.
INSERT TEXTPOOL, DELETE TEXTPOOL