Renaming Elements in a Single Source Unit
In SAP NetWeaver 7.31 SP5, you can change all occurrences of a named element (except ABAP keywords) that are used in a local ABAP program at the same time. But you cannot change code elements that are used in an already activated ABAP program.
In higher versions, you can rename global ABAP classes, interfaces, or their members (such as fields or methods of classes or interfaces) that are used globally in other programs.
- In the source code editor of your ABAP program, select the element to be renamed.
- In the context menu, select Edit > Quick Fix or choose the shortcut
Ctrl + 1
In the source unit, selectRename x or choose the shortcut
Ctrl + 2 + R.
A frame appears around each occurrence of the element.
- In the frame, type in your change and press Enter.
The editor changes simultaneously all occurrences of the element in the source code unit you are working in.