When you enter text symbols in the source code of your program, they are not automatically included in the text pool. The analyzing function allows you to:
No text symbols have yet been maintained in the following program:
PROGRAM TEXT_ELEMENTS_4.
WRITE: TEXT-010,
/'Default Text'(020),
/TEXT-030.
The ABAP Text Elements screen appears.
The ABAP Text Symbol Analysis (Display) screen appears. If the list of text symbols is empty, the option Text symbols that need to be added to the text pool is selected by default.
The selected text symbols are marked for transfer into the text pool.
If you choose Enter in the example, the system inserts the text symbols 010, 020, and 030 in the text pool. No texts are assigned to symbols 010 or 030 but the text literal defined in the program is assigned to symbol 020.
You can slightly change the above program to use other analysis functions.
PROGRAM TEXT_ELEMENTS_4.
WRITE: TEXT-010,
/'Default Text'(020),
/'Test_Symbol'(030).
Comparing Text Symbols with the Source Code
You can compare texts that are defined differently in the program and in the text pool as follows:
You can replace the empty text from text symbol 030 in the text pool with the program text "test_symbol". The third column indicates whether the text is defined in the text pool (T) or in the program (P).
Deleting Text Symbols from the Text Pool
Before deleting a text symbol, check the where-used list.
If text symbol 020 is no longer needed in the program, you can delete it.