Skip to Content

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.

Procedure

  1. In the source code editor of your ABAP program, select the element to be renamed.
  2. In the context menu, select Edit > Quick Fix or choose the shortcut Ctrl + 1.
  3. In the source unit, select Rename x or choose the shortcut Ctrl + 2 + R.
    A frame appears around each occurrence of the element.
    Refactoring_Intelligent_Search_and_Rename_Quick_Fix.png
  4. In the frame, type in your change and press Enter.

Result

The editor changes simultaneously all occurrences of the element in the source code unit you are working in.

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply