Show TOC Start of Content Area

Procedure documentation Refactoring a Web Dynpro Object  Locate the document in its SAP Library structure

Use

To rename a Web Dynpro object or move it to another package, you must first refactor it. A refactoring action changes the code without affecting its semantic behavior.  

To rename an application, model classes, components, component interfaces, interface views, custom controllers, used components, views, and windows, you must use Rename. You can also rename the context node and context attributes of a view, window, component and interface view.

To move a component, application, or component interfaces from one package to another, you must use Move.

Note

If the custom code in the Java editor has references to the refactored object, you must change the code manually.

Prerequisites

You have:

            Installed SAP NetWeaver Developer Studio 7.1.

            Opened the Web Dynpro perspective in SAP NetWeaver Developer Studio and you have created the Web Dynpro object that you want to refactor.

Procedure

Renaming a Web Dynpro Object

            ...

       1.      In the Web Dynpro Explorer, click the object that you want to rename with the secondary mouse button and choose Refactor Rename.

       2.      Enter the new name.

       3.      To preview the list of objects that contain references to the object that you are going to rename, choose Next.

       4.      Choose Finish.

Note

You can also rename a Web Dynpro object from the Data Modeler.

To rename a context node or attribute, in the context menu of the object, choose Rename. Repeat steps 2 to 4.

Moving a Web Dynpro Object to another Package

            ...

       1.      In the Web Dynpro Explorer, click the object that you want to move with the secondary mouse button and choose Refactor Move.

       2.      Enter the new package name or click Browse to select an existing package.

       3.      To preview the list of objects that contain references to the object that you are going to move, choose Next.

       4.      Choose Finish.

End of Content Area