Analyzing Text Symbols 

When you enter text symbols in the source code of your program, they are not automatically entered in the text pool. To keep the list up to date and avoid discrepancies, use the Analyze function.

This allows you to

This is important for text symbols that are used in the program, but not yet included in the text pool

Prerequisites

Suppose we have the following program for which no text symbols have yet been maintained:

PROGRAM TEXT_ELEMENTS_4.

WRITE:    TEXT-010,

         /'Default Text'(020),

         /TEXT-030.

Procedure

From the ABAP Editor:

  1. Go to the text element maintenance initial screen.
  2. Select Text symbols and choose Analyze.
    If you have not yet maintained any text symbols for the program, the following screen appears:


    Since the list of text symbols is empty, the second option is selected.
  3. Choose Edit.
    The following screen appears:

  4. Select the text symbols that you want to include in the text pool.
  5. Choose Insert text symbol.
    The selected text symbols are marked for transfer into the text pool. The following screen appears:

  6. Use the Log function to display the changes again.
  7. You can adopt the changes by choosing Save, or cancel them by choosing Undo.

Result

If we choose Save in our 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

You can change the above program slightly 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. Select Text symbols defined repeatedly/differently in program.
  2. Choose Edit.
    In our example, the following screen would appear:


    You can now 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

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

To delete text symbols from the text pool in the Analysis results:

  1. Select the first option: Text symbols which can be deleted from the text pool.
  2. Choose Edit.

  3. If text symbol "020" is no longer needed in the program, you can delete it.
  4. Choose Delete.