Show TOC Start of Content Area

Procedure documentation Moving Components to a Superclass  Locate the document in its SAP Library structure

Use

You can move attributes, methods and events of a class to their direct superclass.

Caution

Note that a conflict occurs if non-private components that you want to move to the superclass already exist in another class that is derived from this superclass. This results in a syntax error in the corresponding derived class.

Procedure

1.       Open the class.

2.       Make sure you are in Change mode.

3.       Choose Utilities ® Refactoring ® Refactoring Assistant.

The Assistant is started in a separate window.

4.       Select the component to be moved and move it to the name of the superclass using Drag & Drop.

You can move several components at one time with multiple selection.

5.       Choose Save.

Result

The moved components are deleted in their original class and created in the superclass.

End of Content Area