Entering content frame

Procedure documentation Moving Components to Subclass(es) Locate the document in its SAP Library structure

Use

You can move attributes, methods and results of a class to one or more direct subclasses. See also: Class Diagram.

Prerequisites

The (private) components to be moved do not yet exist in the subclass.

Procedure

  1. Select the superclass and change to the Class Editor.
  2. Make sure you are in Change mode.
  3. Choose Utilities ® Refactoring Assistant.
  4. The Assistant is started in a separate window.

  5. Select the component(s) to be moved and move them to the name of a subclass using Drag&Drop.
  6. If there is more than one subclass, you can move the selected components to all the subclasses in one step by dragging the components to Subclasses.

  7. Save using the corresponding icon.
  8. Close the Assistant.

Result

The moved components are deleted in their original class and created in the subclass(es).

Caution

If you did not move the components from the superclass to all direct subclasses, these components will be deleted from all the subclasses that were not affected.

 

 

Leaving content frame