Show TOC

Correcting Inconsistencies Within Text SymbolsLocate this document in the navigation structure

Prerequisites

This functionality is provided for SAP NetWeaver Release 7.31 SP14 and higher as well as Release 7.40 SP08 and higher.

The text in the source code differs from the text stored in the text pool.

Context

You can automatically correct inconsistencies of an existing text symbol in the text pool or the source code editor.

Example

Here, the text in the source code is 'hello', but the text pool contains 'goodbye' for the text key '001'.

REPORT adt_text_symbols.
WRITE:/ 'hello'(001).

Procedure

  1. Position the cursor on the corresponding text or the text key.
  2. In the context menu, choose Quick Fix or use the shortcut (Ctrl 1).
  3. In the Quick Fix dialog box, you can select the following quick fixes:
    1. <- Replace the literal by text 001 to substitute the literal in the source code with the text content of the text pool
    2. -> Replace text 001 in the text pool with the literal to substitute the text content of the text pool with the literal from the source code.
      Note For this quick assist, an editor dialog is opened to verify or adjust the text that will be stored in the text pool.

Results

Example

Depending on your selection, the following results are achieved:

  1. ABAP programm if you have replaced the literal by a text key from the text pool:

    Here, the existing text content is updated with the content provided by the text tool.

    REPORT adt_text_symbols.
    WRITE:/ 'goodbye'(001).
  2. ABAP programm if you have replaced the existing text content of the text pool:

    Here, the text content remains in the source code editor. The text content in the text pool is updated.

    REPORT adt_text_symbols.
    WRITE:/ 'hello'(001).
Tip If the texts are consistent and you want to change them, you can just edit the text in the source code and use the quick assits to adjust the text in the text pool without opening the wizard.