Show TOC

Inserting Statement Patterns by Drag and DropLocate this document in the navigation structure

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.

Prerequisites

You use the source code editor mode of the ABAP Editor.

Procedure

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

  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.

    You can insert patterns for:

    • Instantiating global classes
    • Calling methods of global classes
    • Calling function modules
    • Calling subroutines by means of PERFORM.
  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 and all its parameters are inserted at the required position. The optional parameters appear as comments.