Show TOC

Quick Assist OverviewLocate this document in the navigation structure

In ABAP Development Tools, you can apply the following refactoring options or ABAP quick fix at the following positions:

Note The Rename functionality can be applied to all identifiers.
Methods
Function Description Available since SAP NetWeaver 7.31 Available since SAP NetWeaver 7.4
Extracting Methods from Statements Creating a new method in the current class. The selected code is moved into the body of the new method and replaced with a call to the new method. Further occurrences of similar code are not replaced. SP06 SP02
Extracting Methods from Expressions Creating a new method in the implementation of an ABAP class that returns the result of a selected expression. The selected expression is replaced with the call to the new method. Further occurrences of similar expressions are not replaced. SP11 SP05
Creating Method Implementations from the Method Definition Creating an empty method implementation from an existing declaration in an ABAP class. SP06 SP02
Creating Method Definitions from Implementation Parts Creating empty method implementations of the methods defined in an implemented ABAP interface and of other unimplemented methods within an ABAP class. SP06 SP02
Creating Implementation Parts for Unimplemented Methods Promoting the implementation part of methods that are defined in an ABAP interface as well as method stubs of other unimplemented methods. SP06 SP02
Creating Methods from Method Calls Creating a method from the method call. The signature is derived from the existing method call. SP06 SP02
Generating Class Constructor Methods Creating an empty class constructor method in the public section of the current ABAP class. SP11 SP05
Generating Constructor Methods Creating a constructor in the public section of the current ABAP class.
Note

If the class has attributes, a dialog is opened where you can select the attributes that should be instantiated by the constructor.

SP11 SP05
Generating Factory Methods Creating a static create method in the public section of the current ABAP class.
Note

If the class has attributes, a dialog is opened where you can select the attributes that should be instantiated by the factory method.

SP11 SP05
Constants
Function Description Available since SAP NetWeaver 7.31 Available since SAP NetWeaver 7.4
Extracting Constants from Literals Creating a constant with the value of the literal and replacing all occurrences. SP11 SP05
Reusing Existing Constants Replacing a literal with an existing constant. All other occurrences of the same literals are not changed. SP11 SP05
Converting Locals to Class Members Converting a local constant, local variable, or local type to a class member such as a member constant, attribute, or member type. SP11 SP05
Variables
Function Description Available since SAP NetWeaver 7.31 Available since SAP NetWeaver 7.4
Extracting Local Variables from Expressions Assigning the selected expression to a new local variable. The selected expression is replaced with the new local variable. - SP05
Assigning a Statement to a New Variable Assigning the value of the selected statement to a new local variable or attribute. SP11 SP05
Converting Locals to Class Members Converting a local constant, local variable, or local type to a class member such as a member constant, attribute, or member type of the current class. SP11 SP05
Converting Local Variables to Parameters In a certain method, converting an existing local variable to a new parameter. SP11 SP05
Declaring Variables from Usage Creating a declaration for an attribute within a method. SP11 SP05
Declaring Inline Variables Explicitly In the method signature, converting an existing inline declaration of a local variable to an explicit declaration. - SP05
Deleting Unused Variables Supported deletion of unused data declarations and variables. SP06 SP02
Members
Function Description Available since SAP NetWeaver 7.31 Available since SAP NetWeaver 7.4
Changing Visibility of Members Changing the visibility of a member by moving it into the public, protected, or private section. SP06 SP02
Converting Locals to Class Members Converting a local constant, local variable, or local type to a class member such as a member constant, attribute, or member type of the current class. SP11 SP05
Text Literals
Function Description Available since SAP NetWeaver 7.31 Available since SAP NetWeaver 7.4
Creating a Text Symbol in the Text Pool Creating a text symbol in the text pool of an ABAP program. - SP08
Editing Text Symbols Changing a text symbol in the text pool of an ABAP program. - SP08
Correcting Inconsistencies Within Text Symbols Balancing mismatches between source code and text pool. - SP08
Switching Notations Adopting text changes of an existing text symbol in the text pool or the source code and vice versa. - SP08
Other Identifiers
Identifier Function Description Available since SAP NetWeaver 7.31 Available since SAP NetWeaver 7.4
Classes and Interfaces Creating ABAP Classes or ABAP Interfaces from Usage Starting the creation wizard of a global ABAP class or interface directly from the name of the missing repository object. SP06 SP02
Function Modules Creating ABAP Function Modules from Usage Starting the creation wizard of an ABAP function module from the name of the missing repository object. SP11 SP05
Includes Creating ABAP Includes from Usage Starting the creation wizard of an ABAP include from the name of the missing repository object. SP11 SP05
Exceptions Declaring Exceptions from a Raise Statement Adding an exception class to the signature of a method signature that is based on an existing RAISE EXCEPTION statement. SP11 SP05