# 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.

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

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| PROJECT_DEFINITION | BAPIPR-PROJECT_DEFINITION | Project definition | Yes |
| UNDO_SYSTEM_STATUS | BAPI_SYSTEM_STATUS-SYSTEM_STATUS | System status to reset | - |
| UNDO_USER_STATUS | BAPI_USER_STATUS-USER_STATUS | User status to reset | - |
| SET_SYSTEM_STATUS | BAPI_SYSTEM_STATUS-SYSTEM_STATUS | System status to set | - |
| SET_USER_STATUS | BAPI_USER_STATUS-USER_STATUS | User status to set | - |

## Exporting parameters

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

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| E_RESULT | BAPI_STATUS_RESULT | Results of the status change | - |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_BUS2001_SET_STATUS'
  EXPORTING
    project_definition = lv_project_definition
  IMPORTING
    return = lv_return
  TABLES
    e_result = lt_e_result.
```

## Related tables

JEST, PROJ

