Call BAPI with Commit/Rollback
sap_bapi_callCall an RFC-enabled BAPI function to create, change, or delete SAP business objects, with automatic commit on success and rollback on errors.
Instructions
Call a BAPI function module. Automatically calls BAPI_TRANSACTION_COMMIT on success or BAPI_TRANSACTION_ROLLBACK on ABAP error (type E/A in the RETURN table).
WARNING: BAPI calls can create, change, or delete business objects. Use only in development/sandbox unless you are certain of the effect.
Args:
bapi_name (string): BAPI name (must be RFC-enabled).
params (object): BAPI parameters (default: {}).
response_format.
Returns (json): { functionName, result, return?: [{type, id, number, message}], committed }. committed=true means BAPI_TRANSACTION_COMMIT was called. committed=false means an error occurred and it was rolled back.
Examples:
"Create a purchase order" -> bapi_name='BAPI_PO_CREATE1', params={...header/item tables...}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | BAPI import / table parameters as a JSON object. | |
| bapi_name | Yes | BAPI function module name (e.g. 'BAPI_GOODSMVT_CREATE'). | |
| response_format | No | Output format: 'markdown' (human-readable, default) or 'json' (structured). | markdown |