The following section shows how to use the Xtract BAPI component.

Look up a BAPI #

  1. In the main window of the component click magnifying-glass. The window “Function Module Lookup” opens.
  2. Enter the name of a BAPI or function module in the Function Name field (1). Use wildcards (*), if needed.
    Alternatively you can search for function groups. Look-Up-Function-Module
  3. Click magnifying-glass (2) and select an item from the displayed list (3).
  4. Click [OK] (4) to confirm.

The application now returns to the main window of the component.

Define Import, Export, Changings and Tables #

The main window of the Xtract BAPI component shows all parameters of the selected BAPI.

  1. Add input parameters to send to SAP in Imports, see Import Parameters.
    You can enter scalar values (1) or structures (2). Define-Bapi-Data-Source
  2. Define the output to receive from SAP in Exports, see Export Parameters.
    Select output by activating the checkbox next to the items. BAPI export parameters
  3. Optional: If available, define input and output parameters in Changings, see Changings Parameters.
  4. Add tables to the output or add table parameters as input in Tables, see Table Parameters.
    Click the glasses icon to check the names and data types of the table fields (1).
    Activate the checkbox next to the items to add items to the output (2).
    Click the pen icon to edit tables (3). BAPI table
  5. Optional: If available, define which exceptions thrown by the BAPI are ignored during runtime, see Exceptions.
  6. Click [OK] to confirm.

Note: Nested parameters are supported, e.g., tables in tables, structures in tables and structures in structures.

Transaction Commit #

Some SAP Function Modules require calling the function module BAPI_TRANSACTION_COMMIT to successfully update data in the database, e.g., BAI_PO_CREATE. To automatically call BAPI_TRANSACTION_COMMIT after the selected Function Module / BAPI is processed, activate the option Commit work in SAP after execution in the configuration menu of the Xtract BAPI component.

xtract-bapi-commit-transaction