# BAPI_BUS2054_SET_STATUS — Set or Reset WBS Element Status

> Sets or resets system and user statuses for a list of WBS elements, for example to release or technically complete them. Mass status programs and approval interfaces use it. Check RETURN and E_RESULT per element, then call BAPI_TRANSACTION_COMMIT.

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

## Exporting parameters

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

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| I_WBS_SYSTEM_STATUS | BAPI_WBS_MNT_SYSTEM_STATUS | WBS system statuses to set or reset | - |
| I_WBS_USER_STATUS | BAPI_WBS_MNT_USER_STATUS | WBS user statuses to set or reset | - |
| E_RESULT | BAPI_STATUS_RESULT | Results of the status change | - |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_BUS2054_SET_STATUS'
  IMPORTING
    return = lv_return
  TABLES
    i_wbs_system_status = lt_i_wbs_system_status
    i_wbs_user_status = lt_i_wbs_user_status
    e_result = lt_e_result.
```

## Related tables

JEST, PRPS

