The interface of a function module consists of the parameters you need to use the module in your own program.
The interface parameters are the following:
Name | Description |
---|---|
Import |
Values transferred from the calling program to the function module. You cannot overwrite the contents of import parameters at runtime. Note
If a parameter does not have to be assigned, select the Optional checkbox. |
Export |
Values transferred from the function module back to the calling program. Note
There is no Optional checkbox for export parameters. They are always optional. |
Changing |
Values that act as import and export parameters simultaneously. The original value of a changing parameter is transferred from the calling program to the function module. The function module can change the initial value and send it back to the calling program. |
Tables |
Internal tables that can be imported and exported. The contents of an internal table are transferred from the calling program to the function module. The function module can change the contents of the internal table and then send it back to the calling program. Tables are always assigned by reference. |
Exceptions |
The calling program uses exceptions to find out if an error has occurred in the function module. |
You can specify the data type of a formal parameter by linking it to a data type in a type pool. Type pools are ABAP Dictionary objects that allow you to define your own global types. If you want to use the types in a type pool for formal parameters, you must declare the type pool in the TOP include of the function group.
For a full description of the task of the function module, see the Administration tab page, or choose the Function Module Documentation pushbutton.
If you want to print out all interface information, choose Function module → Print.
For more information about setting parameter attributes, see Specifying Parameters and Exceptions .