PS
BAPI
RFC
Used the same way in S/4HANA
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.
- Function group
- CNIF_STATUS_2054
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
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)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
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
Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.