Application Development Blog Posts
Learn and share on deeper, cross technology development topics such as integration and connectivity, automation, cloud extensibility, developing at scale, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos

In SAP NetWeaver 7.31 SP6 and higher, you can rename elements in a single source unit as well as global ABAP classes, interfaces, or their members (such as fields or methods of classes or interfaces) that are used globally in other programs.

Procedure

  1. In the source code editor of your ABAP program, put the cursor on the element to be renamed.

    All occurrences of the variable are highlighted
  2. In the context menu, select Source > Rename or choose the shortcut Ctrl + 1 and select Rename x.
  3. In the following dialog box, enter the New Name that has to be renamed and click Next.
  4. The following dialog box displays the ABAP programs and transport request where the element is used and changed. Select Next or Finish to continue.
  5. In the Rename: Field window, the changes are displayed in the Refactored Source frame. Check the changes step-by-step by using the navigation buttons.
  6. Select Finish to complete the renaming.

Result

The source code editor renames the selected element and updates the references.

NOTE

You can undo the renaming by choosing Undo Rename (Ctrl + Z) from the context menu.

1 Comment