Show TOC

Creating an ABAP Function ModuleLocate this document in the navigation structure

Prerequisites

You have created a function group in which you want to add the function module.

Context

You can create an ABAP Function Module for which you provide reusable functions.

Procedure

  1. In your ABAP project, select the relevant Package node in the Project Explorer.
  2. Expand the Source Library folder and select the relevant Function Group.
  3. Open the context menu and select Start of the navigation path New Next navigation step ABAP Function Module End of the navigation path.
  4. In the following dialog, enter a unique name for the new function group in the Name field.
    Note You can enter maximum 30 digits.
  5. Enter a Description providing additional details.
    Note The Original Language will automatically be assigned with the same language as defined in the function group.
  6. Enter a Description providing additional details.
    Note The Original Language is already predefined by the default language of the ABAP project.
  7. [Optional] Choose the Browser... button if you want to add the function module to another Function Group.
  8. Choose Next.
  9. Assign a Transport Request.
  10. Choose Finish.

Results

The function module is assigned to the function group selected in the function module folder of the Source Library.

Editor that is displayed after creating the function module
Figure 1: Editor that is displayed after creating the function module

In the next step, you can enter the definition part and implementation part of the function module.