Analyzing Text Symbols
Use
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:
- Delete obsolete text symbols from the text pool
- Adopt new text symbols in the text pool
- Maintain text symbols that are used in the program but not yet included in the text pool
- Compare text symbols with the program code
Prerequisites
Procedure
- In the Object Navigator (transaction SE80), open the program you want to edit.
- In menu bar, choose Goto → Text Elements → Text Symbols.
The ABAP Text Elements screen appears.
- In the application toolbar, choose
with the quick info text Compare Text Symbols.
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.
- Choose the Edit pushbutton.
- Select the text symbols you want to include in the text pool.
- In the application toolbar, choose Insert text symbol.
The selected text symbols are marked for transfer into the text pool.
- To review the changes, choose the Logpushbutton.
- You can adopt the changes by choosing Enter, or cancel them by choosing Undo.
Result
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.
Other Functions
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:
- On the ABAP Text Symbol Analysis (Display) screen, select the Text symbols defined repeatedly/differently in program radio button.
- Choose Edit.
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).
- Choose Replace.
- Save your entries.
Deleting Text Symbols from the Text Pool
- On the ABAP Text Symbol Analysis (Display) screen, select the option Text symbols which can be deleted from the text pool.
- Choose Edit.
If text symbol 020 is no longer needed in the program, you can delete it.
- Choose Delete.