New Quick Assist Functionalities in ADT 2.19
ABAP Development Tools (ADT) 2.19 provides a various set of quick assists that help you to change ABAP source code in a semi-automated way as follows:
- Refactoring aids for changing the structure of source code without changing its behavior
- ABAP Quick fixes for resolving errors and warnings
- Generators for adding new functionality
In SAP NetWeaver NW7.40 SP5, following new quick assist functionalities make your daily development tasks easier to handle:
Refactoring Aids
Identifier |
Function |
Description |
Variables |
Declaring Variables from Usage |
You define a new local variable, attribute, or parameter from its usage. |
Declaring Inline Variables Explicitly |
You convert local inline declarations of one or several variables into explicit declarations. |
|
Extracting Local Variables from Expressions |
You create a local variable from an expression. |
|
Converting Local Variables to Parameters |
You promote local variables to a parameter of a method. |
|
Assigning a Statement to a New Variable |
You declare a new variable and assign the result of a statement to this variable. |
|
Variables / Constants |
Extracting Parameters from Literals |
You create a new importing parameter for the current method with the literal as default value. Then, this parameter is used instead of the literal. |
Methods |
Extracting Methods from Expressions |
You can move an expression to a new method and replace it with the call of a new method. |
Exceptions |
Declaring Exceptions from a Raise Statement |
You add an exception to the method signature based on an existing RAISE EXCEPTION statement in the method implementation. |
ABAP Quick Fixes
Function |
Description |
Creating ABAP Function Modules from Usage |
You can create an ABAP function module from the name of the missing repository object. For this purpose, the corresponding creation wizard is opened. |
Creating ABAP Includes from Usage |
You can create an ABAP include from the name of the missing repository object. For this purpose, the corresponding creation wizard is opened. |
Generating ABAP Source Code
Identifier |
Function |
Description |
Classes |
Generating Class Constructor Methods |
You can create an empty static class constructor method in the public section of the current ABAP class. |
Generating Constructor Methods |
You can create an instance method in the public section of the current ABAP class. |
|
Generating Factory Methods |
You can create a static create method in the public section of the current ABAP class. |
Hi Wolfgang Woehrle,
I don't know where to post ADT issues, so I leave it here, at the most relevant post I could find (from a SAP person). Please tell me what I should do if it's not the right place.
For the following code with RAISE EXCEPTION, I don't get any quick assist (I guess it fails internally):
But it works for this:
My ADT version is 2.106.4
Thanks.
Sandra
Hi Sandra,
I am sorry for my late response.
You can also use the following channel for posting questions regarding ADT:
https://answers.sap.com/topics/adt.html
ADT 2.106.4 is an old client version. In the first step, can you update your client an retest it, please?
I will check your question with my colleagues. We will inform you as soon as possible.
Kind regards,
Wolfgang
Thank you Wolfgang. Still the same issue with recent ADT. I just posted a question in the forum: https://answers.sap.com/questions/12679006/no-adt-quick-assistant-suggestion-add-raising-decl.html