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.3 EHP1 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.3 EHP1 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.3 EHP1 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. SP14 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
Using Similar Variables You have following possiblities for using similar variables: - SP08
Deleting Unused Variables Supported deletion of unused data declarations and variables. SP06 SP02

Members

Function Description Available since SAP NetWeaver 7.3 EHP1 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
Pull-up Members to Superclass Removing member definitions from a subclass and adding it to the superclass. - SP08
Pull-up Members to Interface Removing member definitions and adding them to the implemented interface. Additionally, aliases are declared to avoid invalidation of existing usages. - SP08

Text Literals

Function Description Available since SAP NetWeaver 7.3 EHP1 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. SP14 SP08
Editing Text Symbols Changing a text symbol in the text pool of an ABAP program. SP14 SP08
Correcting Inconsistencies Within Text Symbols Balancing mismatches between source code and text pool. SP14 SP08
Switching Notations Adopting text changes of an existing text symbol in the text pool or the source code and vice versa. SP14 SP08

Exceptions

Source Code Selection That Includes Raised Exceptions

The exception(s) are added to the signature of the calling method or surrounded with a TRY CATCH block.

Function Description Available since SAP NetWeaver 7.3 EHP1 Available since SAP NetWeaver 7.4 Available since SAP NetWeaver 7.5
Propagating All Exceptions Adding the unhandled exceptions of the selected block to the signature of the calling method in order to propagate them. - - SP00
Surrounding with TRY CATCH Single catches: Surrounding the selected block of statements with a try catch statement to handle raised exception(s). Each exception is handled in a seperate catch block - - SP00
Multi catch: Surrounding the selected block of statements with a try catch statement to handle raised exception(s). One catch block handles all exceptions. - - SP00
Existing TRY CATCH Block

The statement(s) are surrounded by a TRY CATCH block in order to handle the exceptions.

Function Description Available since SAP NetWeaver 7.3 EHP1 Available since SAP NetWeaver 7.4 Available since SAP NetWeaver 7.5
Extracting a Catch Variable Adding a local variable and adding the INTO clause to an existing catch block. - - SP00
Extending a TRY CATCH Statement Adding a new catch block to an existing try catch statement. - - SP00
Removing a TRY CATCH Statement Removing the entire try catch statement. - - SP00
Splitting a MULTI CATCH Block Replacing the existing multi catch block by individual catch blocks per exception. - - SP00
RAISE EXCEPTION Statement
Function Description Available since SAP NetWeaver 7.3 EHP1 Available since SAP NetWeaver 7.4 Available since SAP NetWeaver 7.5
Propagating an Exception Adding an exception class to the signature of a method signature that is based on an existing RAISE EXCEPTION statement. SP11 SP05  
Extracting an Exception Variable from a RAISE Statement Adding a variable declaration for the exception and source code to instantiate the exception before raising it. SP11 SP05  

Others

Identifier Function Description Available since SAP NetWeaver 7.3 EHP1 Available since SAP NetWeaver 7.4 Available since SAP NetWeaver 7.5
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  
Classes 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 SP08  
Generating Getters and Setters       SP00
Regenerating a Constructor for Exception Classes       SP00
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  
Text Symbols Creating and Maintaining Text Symbols Creating a text symbol in the text pool of an ABAP program. SP14 SP08  
Editing Text Symbols Changing a text symbol in the text pool of an ABAP program. SP14 SP08  
Correcting Inconsistencies Within Text Symbols Balancing mismatches between source code and text pool. SP14 SP08  
Notations Switching Notations Adopting text changes of an existing text symbol in the text pool or the source code and vice versa. SP14 SP08