Context
You can use this function to rename elements in all parts of the ABAP source
code.
Procedure
- In the source code editor, position the cursor on the element to be renamed.
ADT marks the element.
Figure 1:
Highlighted positions where an element is renamed
It also marks all other occurrences of the element in the source unit that
you are editing. You can scroll or use Ctrl K to find
other occurrences quickly.
- Start the
from the context menu of the element to be renamed). Or use the Quick
Fix menu: Ctrl 1 and then Rename...
- In the dialog box that follows, enter the new name for the element and choose
Next.
Note You can also choose Finish to complete the renaming
right away.
Figure 2:
Input field to enter the new element name
- The Rename function shows you the changes that will be
made. Use the navigation buttons to step through the changes.
Figure 3:
Changes highlighted in a compare window
- Choose Finish to complete the renaming.
Results
The wizard renames the selected element and updates the references.
Figure 4:
Display of the renamed elements and updated references
Note You can undo the renaming by choosing Undo Rename (Ctrl Z) from the
context menu.