Inserting Patterns Using Drag and Drop  

Use

You can insert source code segments in the ABAP Editor easily using drag and drop. To do this, you choose the relevant entry from the tree display in the object list or from your worklist and drag it to the required position in the ABAP Editor.

You can insert patterns for

Prerequisites

You must be using the frontend editor mode of the ABAP Editor.

Procedure

To insert the pattern for a method call into your source code, you would:

  1. Open the program in which you want to open the pattern.
  2. In the navigation area of the Object Navigator, open the class containing the relevant method.
  3. Select the method in the tree display.
  4. Drag the entry into the editor and drop it where you want to insert the pattern.

Result

The pattern for the method call is inserted at the required position, complete with all of the parameters. Optional parameters appear as comments.
You can now complete the pattern and assign values to the parameters.