# BAPI_TRANSACTION_ROLLBACK — Roll Back BAPI Transaction

> Discards all database changes of the current logical unit of work that were prepared by previous BAPI calls. Programs call it when a BAPI returns an error message in RETURN, so that no partial data is saved. It is also needed in RFC scenarios, because an external caller cannot issue ROLLBACK WORK directly.

- Modules: CA
- Type: BAPI
- Function group: BAPT
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-transaction-rollback/

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| RETURN | BAPIRET2 | Return messages |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'
  IMPORTING
    return = lv_return.
```


