Show TOC

Inserting or Overwriting Source CodeLocate this document in the navigation structure

In the ABAP source code editor, you can insert a keyword, identifier, or template from the code completion list at the current position. Optionally, you can configure the code completion to overwrite the keyword or identifier at the current position.

Prerequisites

To overwrite the keyword or identifier at the current position, choose the Start of the navigation path ABAP Development Next navigation step Editors Next navigation step Source Code Editors Next navigation step Code Completion Next navigation step Content Assist Next navigation step Completion overwrites End of the navigation path preference in advance.

Context

Note Code insertion is defined by default.

Procedure

  1. In the source code editor, type the beginning character(s).
  2. To display the list of suggested entries at this position, choose Ctrl + Space.

    The code completion list is opened.

    Example for inserting the identifier current_speed and replacing it with the existing identifier result
    Figure 1: Example for inserting the identifier current_speed and replacing it with the existing identifier result
  3. Adopt the displayed entry into your source code by choosing the tabulator key.
    Note To toggle beween inserting and overwriting while the content assist is active, choose Ctrl.

Results

The selected keyword, identifier, or template is inserted and replaces the keyword or identifier at the current cursor position.

Example after replacing the identifier result with current_speed
Figure 2: Example after replacing the identifier result with current_speed