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

ParameterTypeDescription
RETURNBAPIRETURN1Return messages

Tables parameters

ParameterTypeDescriptionRequired
I_WBS_ELEMENTSBAPI_WBS_ELEMENTSWBS elements to readYes
E_SYSTEM_STATUSBAPI_WBS_SYSTEM_STATUSSystem statuses—
E_USER_STATUSBAPI_WBS_USER_STATUSUser statuses—
E_RESULTBAPI_STATUS_RESULTResults 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.

Request a custom report