PS BAPI RFC Used the same way in S/4HANA

BAPI_BUS2001_SET_STATUS Set or Reset Project Definition Status

Sets or resets one system status and one user status of a project definition, for example to release or close a project. Mass status programs and approval interfaces use it instead of CJ20N. Check RETURN and E_RESULT for each status, then call BAPI_TRANSACTION_COMMIT.

Function group
CNIF_STATUS_2001
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
PROJECT_DEFINITIONBAPIPR-PROJECT_DEFINITIONProject definitionYes
UNDO_SYSTEM_STATUSBAPI_SYSTEM_STATUS-SYSTEM_STATUSSystem status to reset—
UNDO_USER_STATUSBAPI_USER_STATUS-USER_STATUSUser status to reset—
SET_SYSTEM_STATUSBAPI_SYSTEM_STATUS-SYSTEM_STATUSSystem status to set—
SET_USER_STATUSBAPI_USER_STATUS-USER_STATUSUser status to set—

Exporting parameters

ParameterTypeDescription
RETURNBAPIRETURN1Return messages

Tables parameters

ParameterTypeDescriptionRequired
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_BUS2001_SET_STATUS'
  EXPORTING
    project_definition = lv_project_definition
  IMPORTING
    return = lv_return
  TABLES
    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