Prerequisites
In the ABAP class where you want to create the corresponding declaration in the
definition part, the method must exist in the implementation part.
The ABAP class must be free of syntax errors other than those for the missing method
definition(s).
Context
You can generate the declaration of a method in the definition part of an ABAP class
directly out of the implementation part of the corresponding method.
Note
If you use the dialog and add parameters, the corresponding signature will be
added in the definition part.
Procedure
- In the source code editor, double-click the method name in the implementation part
that has no definition yet.

Figure 1:
Creating the method definition from the method name in the implementation
- Choose Quick Fix (Ctrl 1) from the context menu.
- In the Quick Fix dialog box, select the option relevant for continuing.
Note You can use the following options:
- Create definition 'METHOD_WITH_VARIABLE' to
create an instance method definition without parameters in the
private section.
- Create definition 'METHOD_WITH_VARIABLE' using
wizard to create a method via the dialog. Here, for
example, you can add parameters or define the visibility of the
method.
- Create definition 'METHOD_WITH_VARIABLE' for
testing to create a test method. Note, this option is
only available for test classes.
Results
The source code editor inserts the definition from the method in the existing class implementation

Figure 2:
Adding the method definition in the private section