Show TOC

 Analyzing Text SymbolsLocate this document in the navigation structure

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
Tip

No text symbols have yet been maintained in the following program:

PROGRAM TEXT_ELEMENTS_4.

WRITE:    TEXT-010,

 /'Default Text'(020),

 /TEXT-030.

Procedure
  1. In the Object Navigator (transaction SE80), open the program you want to edit.
  2. In menu bar, choose Goto → Text Elements → Text Symbols.

    The ABAP Text Elements screen appears.

  3. 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.

  4. Choose the Edit pushbutton.
  5. Select the text symbols you want to include in the text pool.
  6. In the application toolbar, choose Insert text symbol.

    The selected text symbols are marked for transfer into the text pool.

  7. To review the changes, choose the Logpushbutton.
  8. 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
Tip

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:

  1. On the ABAP Text Symbol Analysis (Display) screen, select the Text symbols defined repeatedly/differently in program radio button.
  2. 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).

  3. Choose Replace.
  4. Save your entries.

Deleting Text Symbols from the Text Pool

Caution

Before deleting a text symbol, check the where-used list.

  1. On the ABAP Text Symbol Analysis (Display) screen, select the option Text symbols which can be deleted from the text pool.
  2. Choose Edit.

    If text symbol 020 is no longer needed in the program, you can delete it.

  3. Choose Delete.