Function Module / BAPI Services
This page shows how to use the Function Module / BAPI service type.
The Function Module / BAPI service type can be used to parameterize and execute SAP function modules and BAPIs for automation.
About Function Modules / BAPIs
Function modules are procedures that encapsulate and reuse global functions in the SAP system. SAP systems contain several predefined functions modules that can be called from any ABAP program. A Business Application Programming Interface (BAPI) is a remote function module that can access business data and processes of an SAP system from different systems.
Custom BAPIs
The use of custom BAPIs (Z function modules) is possible. Issues specific to Z function modules are not included in the scope of support provided by Theobald Software.
Prerequisites
- A connection to an SAP system is available, see SAP Connection.
- The SAP user used in the SAP connection has sufficient user rights, see SAP Authority Objects.
Create a Function Module / BAPI Service
To create a new Function Module / BAPI web service in Xtract Universal.iQ:
- Open the Services menu.
- Click [Add Service].
- Enter a unique name and a description.
- Optional: Activate the checkbox Enable MCP Access and add an MCP description to expose the service via the Xtract Universal.iQ MCP Server.
- Select an existing SAP connection from the Connection dropdown. If no connection is available, create a connection, see Connect to SAP.
- Select Function Module / BAPI from the Type dropdown.
- Select a target environment from the Destination dropdown. By default, Xtract Universal.iQ services return SAP data in HTTP response of the service (HTTP destination).
- Click [Save].
The service is now listed in the Services menu.
Next, select the SAP object you want to extract.
Look up a Function Module / BAPI
To select a function module or BAPI from your SAP source system:
- Create a new service of service type Function Module / BAPI.
- In the Function Modules menu, click [Select Function Module / BAPI]. The "Search SAP Function Modules" menu opens.
- Enter the name of a Function Module / BAPI or a function groups. Use wildcards (*) if needed.
- Click [Search] to display the search results.
- Select a function module or BAPI from the list of search results. The "Search SAP Function Modules" menu closes.
Xtract Universal.iQ loads and displays the metadata of the function module or BAPI in the service.
Next, configure the remaining service settings.
Configure the Function Module / BAPI Service
After creating the service, configure the service using the following workflow:
- Add input parameters to the service, see Import Parameters.
- Add output parameters to the service, see Export Parameters.
- Run the Service in Xtract Universal.iQ to check the results.
For more information, see Function Module / BAPI Settings.