
In the source code editor, you have the following options for extracting 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 |