# BAPI_BUS2002_SET_STATUS — Set or Reset Network Status

> Sets or resets system and user statuses of a network header and, through the activity tables, of individual activities. It is used to release networks or activities from custom programs and approval interfaces. Check RETURN and E_RESULT, then call BAPI_TRANSACTION_COMMIT.

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

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| NUMBER | BAPI_NETWORK_LIST-NETWORK | Network number | 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 |
|---|---|---|---|
| I_ACTIVITY_SYSTEM_STATUS | BAPI_ACT_MNT_SYSTEM_STATUS | Activity system statuses to set or reset | - |
| I_ACTIVITY_USER_STATUS | BAPI_ACT_MNT_USER_STATUS | Activity user statuses to set or reset | - |
| E_RESULT | BAPI_STATUS_RESULT | Results of the status change | - |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_BUS2002_SET_STATUS'
  EXPORTING
    number = lv_number
  IMPORTING
    return = lv_return
  TABLES
    i_activity_system_status = lt_i_activity_system_status
    i_activity_user_status = lt_i_activity_user_status
    e_result = lt_e_result.
```

## Related tables

AUFK, JEST

