Show TOC

Creating ABAP Function Modules from UsageLocate this document in the navigation structure

Context

You can create an ABAP function module that does not exist yet, based on the CALL FUNCTION statement.

Note

  • Parameter types are not considered
  • The quick fix is only proposed if the name of the function module is set in hyphens.

Example

The function module NEW_FUNCTION_MODULE is called in an ABAP class as follows:

CALL FUNCTION 'NEW_FUNCTION_MODULE'.

If the function module does not exist yet, you can create it using a quick fix.

Procedure

  1. In the source code editor, position the cursor on the corresponding function module name you want to create.
  2. In the context menu, choose Quick Fix or use the shortcut (Ctrl 1).
  3. In the Quick Fix dialog box, double-click Create function module.

Results

The creation wizard is opened. Here you enter the data for creating the missing function module.