Show TOC

Correcting Misspelled VariablesLocate this document in the navigation structure

You can correct misspelled variables using a quick fix if another variable with a similar name exists.

Prerequisites

The source code contains an undeclared variable, but a variable with a similar name already exists.

This functionality is provided in SAP NetWeaver Release 7.40 SP08 and higher.

Context

Example

Before Execution After Execution

To copy the source code example, click here Code Example Before Execution

The sped variable has been used but it is misspelled with a typo. Only the speed variable is defined.

The misspelled sped variable has been replaced by the existing speed attribute.

Procedure

  1. Position the cursor on the underlined name of the variable.
  2. Get the quick assist proposals by choosing Quick Fix from the context menu (shortcut Ctrl 1) or by using the Quick Assist view.
  3. Apply Use similar attribute 'variable'.