# BAPI_BUS2054_GET_STATUS — Read WBS Element Status

> Returns the system and user statuses of a list of WBS elements. Custom programs use it to check whether WBS elements are released, locked or closed before posting costs or creating follow-on documents. Pass the elements in I_WBS_ELEMENTS and evaluate RETURN.

- 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-get-status/

## Exporting parameters

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

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| I_WBS_ELEMENTS | BAPI_WBS_ELEMENTS | WBS elements to read | Yes |
| E_SYSTEM_STATUS | BAPI_WBS_SYSTEM_STATUS | System statuses | - |
| E_USER_STATUS | BAPI_WBS_USER_STATUS | User statuses | - |
| E_RESULT | BAPI_STATUS_RESULT | Results of the status change | - |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_BUS2054_GET_STATUS'
  IMPORTING
    return = lv_return
  TABLES
    i_wbs_elements = lt_i_wbs_elements
    e_system_status = lt_e_system_status
    e_user_status = lt_e_user_status
    e_result = lt_e_result.
```

## Related tables

JEST, PRPS

