Show TOC Start of Content Area

Procedure documentation Renaming Local Elements  Locate the document in its SAP Library structure

Use

You use this procedure to rename local elements (for example, local variables, types, and classes and their components) by means of the Refactoring Assistant.

Procedure

       1.      In the Object Navigator (transaction SE80), navigate to your program.

       2.      In the source code, position the cursor on the name of the local element (for example, a local variable). In the context menu, choose Refactoring Rename.

The Refactoring Assistant Wizard appears.

       3.      Choose Continue.

       4.      In the New Name field, enter the new name of the element and choose Continue.

You are asked whether you want to perform the renaming.

       5.      Choose Complete.

All occurrences of the local element in the compilation unit are renamed.

Note

In the new ABAP Front-End Editor you can see bookmarks at the places where changes have been made.

       6.      In the context menu of the source code, choose Refactoring Display Preview to get an overview of all changes.

Note

The preview shows the differences between the file saved in the repository and the current contents of the editor. Even if your renaming involves many different includes, the system applies no changes until you choose Save. You can revert all changes by choosing Undo.

End of Content Area