You can create an attribute or local variable in order to assign the result of a functional method call. A functional method provides a returning parameter.
This quick assist is provided if the statement has a result.
This functionality is provided in SAP NetWeaver Release 7.31 SP11 and higher as well as Release 7.40 SP05 and higher.
Example
Before Execution | After Execution |
---|---|
To copy the source code example, click hereCode Example Before Execution |
|
The new variable car is to be added to replace the call of the create method |
In the implementation part of the test method, the new car variable is declared. At the cursor position, the new variable is added and assigned to the existing statement. Now, you can, for example, change its name |