# BAPI_PS_PRECOMMIT — Precommit for PS BAPIs

> Runs the final checks and prepares posting for all PS BAPI calls made since BAPI_PS_INITIALIZATION. Every program that creates or changes projects, WBS elements or networks with the BUS2001/BUS2054/BUS2002 BAPIs calls it before the commit. Check ET_RETURN for type E or A messages and call BAPI_TRANSACTION_COMMIT only if there are none.

- Modules: PS
- Type: BAPI
- Function group: PS_BAPI
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-ps-precommit/

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| ET_RETURN | BAPIRET2 | Return messages | - |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_PS_PRECOMMIT'
  TABLES
    et_return = lt_et_return.
```


