In the ABAP source code editor, you can open the code completion
list manually at any position or open it automatically after you have typed a component
selector such as -, ~, ->, =>.
Context
This functionality enables you to:
- add possible keywords or identifiers such as variables, classes, interfaces,
methods
- select and add the component of the related identifier, such as a field of a structure or a
method of a class,
to your source code.
Procedure
- In the source code editor, type the beginning character(s).
- To display the list of suggested entries at this position, choose Ctrl + Space.
The most relevant proposals are displayed in the code completion
list.
- Choose Enter to add keywords or identifiers or Shift + Enter to add the full signature of a method or function module.
Note
If the code completion list is not displayed, check whether the related
components are correctly defined in the respective development object.
As of SAP NetWeaver 7.40 SP02 and 7.31
SP11, you can use wildcards like the asterisk (*) to limit the list of
relevant entries if you do not know the qualified name of the keyword or
identifier.
If you use the asterisk, a list is opened that displays the relevant
keywords and identifiers after the cursor position.
Figure 1:
Example for finding a keyword or identifier on the basis of
an asterisk
- Selecting a proposal from the code completion list.
Results
The corresponding keyword or identifier is added to the source code at this
position.