Show TOC

Using Code Completion AutomaticallyLocate this document in the navigation structure

In the ABAP source code editor of a development object, you want to open the code completion list automatically when you enter a component selector such as -, ~, ->, =>.

Prerequisites

To use this function, open the Start of the navigation path Window Next navigation step Preferences Next navigation step ABAP Development Next navigation step Editors Next navigation step Source Code Editors Next navigation step Code Completion End of the navigation path preference page and select the Start of the navigation path Typing Next navigation step Automatic code completion after typing -,~,->,=> End of the navigation path option.

Context

Note Automatic code completion is selected by default.

Procedure

  1. In the source code, you start typing a component.

    The following component selectors are supported:

    Component Selector Displayed Proposals
    - Fields of structures
    ~ Components of interfaces
    -> Instance components of object references
    => Static components of ABAP classes / interfaces

    The code completion list is automatically displayed.

    Code completion list and popup according to the component
    Figure 1: Code completion list and popup according to the component
  2. Select a component from the code completion list.

Results

The component is added to the source code at the current position.

A call to the static call_static_demo2 method is inserted at your current position
Figure 2: A call to the static call_static_demo2 method is inserted at your current position