READ TEXTPOOL prog INTO itab LANGUAGE lang.
This statement reads the text elements of the text pool of the language specified in lang and the program specified in prog from the Repository and places them into the internal table itab. The previous content of itab is deleted. If the text elements cannot be read, then the content of itab remains unchanged.
For prog, you must specify a flat character-like data object, which contains the name of the program of the text elements to be read; the name is case-independent. The internal table can have any table type and its row type must correspond to structure TEXTPOOL from the ABAP Dictionary.
For lang, you must specify a flat character-like data object, which contains a language key of up to one character, whose value must be contained in the SPRAS column of database table T002. If lang contains a blank, the behavior is undefined.
After a successful read, itab contains in the ENTRY column the texts of the text symbols, the selection texts, the
list headers and the title from the
program attributes. Every text
element that exists for the specified language occupies one row of the internal table and is identified
uniquely by the columns ID and KEY. The column LENGTH contains the length of the text element. The table below shows the possible values of the columns ID and KEY and their meaning:
ID | KEY | ENTRY |
H | 001 to 004 | List header: Column headings |
I | Text symbol identifier | Text symbol text |
R | - | Program title |
S | Name of a parameter or selection criterion | Selection text |
T | - | List Title: Titlebar |
For selection texts, the actual text in ENTRY is preceded by eight blanks.
System Fields
sy-subrc | Meaning |
0 | At least one text element was read. |
4 | The program specified in |