The following section shows how to use the integration type Function Module / BAPI.

Look up a Function Module / BAPI #

  1. Create a new Service of type Function Module / BAPI.
  2. Click [Save and edit]. The Search Function Module menu opens.
  3. Enter the name of a Function Module or BAPI in the fields Search by name (1) or search for function groups. You can use wildcards (*) if needed.
    Look-Up-Function-Module
  4. Click [Search] (2) to display the search results.
  5. Select a source file from the list of available search results (3). The settings of Function Module / BAPI open automatically.

The settings for Function Module consist of the following subsections:

yunIO-function-module

Function Module #

The name and description of the selected Function Module or BAPI is displayed in the Function Module section.
To select a different source file, click Select in the upper right corner of the section.

Advanced Settings #

Commits Transaction

If this option is active, the funtion module “BAPI_TRANSACTION_COMMIT” is called after processing the selected Function Module / BAPI. Some SAP Function Modules (e.g., BAPI_PO_CREATE) require this commit function to successfully update data in the database.

Function Module Interface Parameters #

In the Function Module Interface Parameters section all parameters of the selected Function Module / BAPI are displayed. Function Modules / BAPIs can have up to four parameter types: Import, Export, Changing and Table.

Import Parameters #

Import parameters represent the input values sent from the client to SAP. In the tab Import you can define import parameters.

Select input parameters in the column Input Mode:

  • Items set to Supplied by Caller become available as parameters in the request body of the service and can be filled at runtime.
  • Items that are left on Default (defined in SAP) use the default values from SAP.

BAPI export parameters

Note: When parameterzing the import parameters of the service, make sure the input matches the data type of the parameters.

Export Parameters #

Export parameters represent the output values sent from SAP back to the client after the execution of a Function Module. In the tab Export you can select the items you want to add to the output of the Function Module / BAPI:

  • To add an item to the output of the Function Module / BAPI, mark the checkbox on the right.
    BAPI export parameters

Changing Parameters #

Changing parameters represent parameters that can be used for input and output. In the tab Changing you can define the changing parameters.

Table Parameters #

Table parameters are parameters presented in a table structure consisting of multiple rows. Tables can be used for input and output. In the tab Tables you can define table parameters for importing and exporting data into and from an SAP Function Module or BAPI.

Tables as input parameters:

  • Items set to Supplied by Caller become available as parameters in the request body of the service and can be filled at runtime.
  • Items that are left on Default (defined in SAP) use the default values from SAP.

Tables as output parameters

  • To add an item to the output of the Function Module / BAPI, mark the checkbox on the right.
    BAPI table