Entering content frameProcedure documentation Specifying Parameters and Exceptions Locate the document in its SAP Library structure

The parameters and exceptions for a function module constitute its interface. The Function Builder contains a tab page for each of the following interface components: tables, exceptions, import, export, and changing parameters.

To set the parameters and exceptions of your function module:

  1. Enter the function module name on the initial screen of the Function Builder.
  2. Select Interface and choose Change.
  3. Enter any further required information for the parameters (import, changing, export, or table).
  4. Field

    Explanation

    Parameter

    Name of the formal parameter, for identification

    Reference field/

    structure

    A database field, component of an ABAP Dictionary structure, or an entire ABAP Dictionary structure. This is the same as the ABAP Dictionary field name in the Reference field/ reference structure column.

    Use this field to create a field based on an ABAP Dictionary field. You should always use a reference structure if the data in the parameter must have the same structure as the reference field (for example, when you want to add new entries to the database).

    Reference type

    You can enter any system type, either generic or fully typed.

    For further information, refer to the Structure link Data Types section of the ABAP User's Guide.

    Default

    This is the parameter's default value. Applies to import and changing parameters only. The system transfers this value to the function module if the caller sets its own value for that parameter.

    Reference

    The parameter reference. Specify this if you want the parameter to be called by reference instead of by value. When a parameter is called by reference, the system points to the original parameter without making a copy of it. The function module works with and, if necessary, alters the original parameter and not a copy. Table parameters are always passed by reference.

     

  5. Enter the exceptions.
  6. The exceptions screen only allows you to enter a text with which the exception can be triggered in the function module.

  7. You can also document the interface on this screen.
  8. On the documentation screen, you can enter short descriptions of the parameters and exceptions.
    You can also write full documentation of the entire function module from here.
    For further information, see
    Documenting and Releasing Function Modules

  9. Save your entries.

 

 

Leaving content frame