Creating Method Implementations from the Method Definition

Prerequisites

In the ABAP class where you want to create the empty implementation part of a method, the declaration of the method must exist in the definition part.

The ABAP class must be free of syntax errors, other than those for the missing method implementation(s).

Context

In an ABAP class, you can generate the implementation part of a method from an existing declaration in the definition part. The added implementation part is empty and can be edited for development activities.

Procedure

  1. In the source code editor, position the cursor on a method definition that has no implementation part yet.
    Creating the implementation part out of the method definition
    Creating the implementation part out of the method definition
  2. Choose Quick Fix (Ctrl 1) from the context menu.
  3. In the Quick Fix dialog, double-click Create implementation 'method_with_variable'.

Results

ABAP Development Tools inserts the corresponding (empty) implementation part of the method into the existing implementation of the ABAP class.

Adding of the empty implementation part
Adding of the empty implementation part