Start of Content Area

Background documentation Refactoring for Web Dynpro ABAP  Locate the document in its SAP Library structure

The refactoring assistant in the ABAP Workbench can support you in deleting or renaming a subobject of a Web Dynpro ABAP component.

Prerequisites

You must have activated the support in your personal settings. This is done in the menu under Utilities  Settings…  on the tab page Refactoring.

When you save the component after a deleting or renaming a subobject, all objects affected by the change are automatically saved with it. In some cases objects belonging to other components are also affected by the change. If they are, a dialog box will notify you of this, provided you have configured this in your personal settings. In this dialog box you can select whether you want to allow changes to dependent objects in external components too. Unlike with change operations, with delete operations other components are not taken into account.

The table below contains a list of operations triggered when an object is deleted by the refactoring assistant.

Note 

Before you save a changed component, you can choose Utilities   Refactoring Overview to display all the changes made to your own component and to external components.

 

Deletion

Refactoring Assistant Support

Controller usage in a controller

Assignment of events of the used controller in event handler methods are deleted.

Component usage in a component

Associated controller usages in the controllers of the main component are deleted.

Context nodes

All mappings to this node in controllers of your component are deleted.

Event

Registered event handlers in controllers in your component are adjusted.

Supply function

Relevant deletions are made in the context.

UI element container

In the window of your component the UI element container is removed together with all dependent elements.

Inbound Plug

In the windows of the same component all affected navigation links are removed.

Outbound Plug

In the windows of the same component all affected navigation links are removed.

Action

The UI event binding is removed.

View/Window

The embedding in a window of your component is removed with all dependent elements.

Custom controller/window

Controller usage in controllers of your component are removed.

 

The refactoring assistant provides the following support for renaming objects:

 

Renaming

Refactoring Assistant Support

Context nodes

All mappings to this node in used controllers of your component are adjusted. With external mappings, the mappings in the component controller usages in the internal component are adjusted. With interface context nodes all mappings of used controllers belonging to external components are adjusted. For external mappings beyond the component boundaries the mapping in the component controller usages of external components are adjusted.

Code refactoring for CTXT constants and context node types is also performed.

Event

Registered event handlers in controllers in your component are adjusted.

With interface events the registered event handlers in controllers of external components are adjusted.

Supply function

Objects are renamed in the context.

Methods

The code refactoring within your component is supported. With interface methods the code refactoring in controllers of external components and in assistance classes is supported.

Caution 

Only active users are found by the refactoring assistant.

Controller: Attribute

Code refactoring in your own controller as well as in used controllers is supported.

UI element container

In the window of your component the UI element container is changed together with all dependent elements.

Inbound Plug

In the windows of the same component as well as in the windows of used components all relevant navigation links are adjusted.

Caution 

Applications are not taken into account here.

Outbound Plug

In the windows of the same component as well as in those of used components all relevant navigation links are adjusted.

Code refactoring for the fire plug method is also supported.

Action

The UI event binding is adjusted.

View/Window

The embedding in a window of the same component or external component is adjusted with all dependent elements.

Custom controller/window

Controller usages in controllers of your own component are adjusted.

 

 

End of Content Area