Show TOC

Refactoring for Web Dynpro ABAPLocate this document in the navigation structure

Use

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 refactoring support in your personal settings.

  1. In the ABAP Workbench choose Start of the navigation path Utilities Next navigation step Settings... End of the navigation path.

  2. On the Refactoring tabpage choose Activate Refactoring Support , and the other functions you require.

  3. Save your settings.

Features

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.

Note

Before you save a changed component, you can choose Start of the navigation path Utilities Next navigation step  Refactoring Overview End of the navigation path to display all the changes made to your own component and to external components.

Delete

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

Delete

Refactoring Assistant Support

Controller usage in a controller

Assignments 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 Node

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.

Rename

The refactoring assistant provides the following support for renaming objects:

Renaming

Refactoring Assistant Support

Context Node

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.

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.

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.

More Information

Documentation about the Refactoring Assistant