Show TOC

 Specifying Parameters and ExceptionsLocate this document in the navigation structure

Use

You use this procedure to set parameters and exceptions for your function module. They constitute its interface. The Function Builder has a tab page for each of the following interface components: tables, exceptions, import, export, and changing parameters.

Procedure
  1. In the Object Navigator (transaction SE80), open the function module you want to edit.
  2. Enter the required information for each of the parameters (import, changing, export, or table).
    Field Description

    Parameter Name

    Name of the parameter for identification purposes.

    Type spec.

    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).

    Associated Type

    You can enter any system type, either generic or fully typed. For more information, see the Data Types section of the ABAP User Guide.

    Default

    Default value of the parameter. 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.

  3. Enter the exceptions.

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

  4. Document the interface on this screen.

    On the Documentation screen, you can enter short descriptions of the parameters and exceptions or write full documentation of the entire function module.For more information, see Documenting and Releasing Function Modules

  5. Save your entries.