Creating a Function Module 

  1. Enter the function's name in the field Function module.
  2. Choose Create.
  3.  

  4. In the Enter function group dialog box, enter the function group to which you want to assign the function module.
  5. The Administration page of the Create function module screen appears.

     

  6. Enter the following attributes
  7. Attribute

    Explanation

    Application

    Specifies the function's application group. Leave the field blank ("For all applications") if your function is not application-specific.

    Short text

    Describes the function module.

    Process type

    Specifies the function type. Choose Normal unless you are writing a function to be run in remote systems or in an update task.

    General data

    Lists general administration information

  8. Choose Save.

The Workbench automatically creates an include file for your function module, whose name is eight letters long. For example, for the first function module in the function group FGRP, the include file is called LFGRPU01. The next function modules will have include files LFGRPU02, LFGRPU03, LFGRPU04, and so on.

For further information about the include programs, see Understanding Function Module Code