# BAPI_ALM_NOTIF_CHANGEUSRSTAT — Change User Status of PM/CS Notification

> Sets or resets a user status of a notification according to the status profile of its notification type. It is used when external workflows track their own steps on the notification. Set SET_INACTIVE to remove a status, and save with BAPI_ALM_NOTIF_SAVE plus BAPI_TRANSACTION_COMMIT.

- Modules: PM
- Type: BAPI
- Function group: IWOPM
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-alm-notif-changeusrstat/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| NUMBER | BAPI2080_NOTHDRE-NOTIF_NO | Notification number | Yes |
| USR_STATUS | BAPI2080_NOTUSRSTATI | User status to set | Yes |
| SET_INACTIVE | BAPI20783T-STATUS_IND | Deactivate the status | - |
| TESTRUN | BAPI20783T-STATUS_IND | Test run (no update) | - |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| SYSTEMSTATUS | BAPI2080_NOTADT-SYSTATUS | System status |
| USERSTATUS | BAPI2080_NOTADT-USRSTATUS | User status |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| RETURN | BAPIRET2 | Return messages | - |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_ALM_NOTIF_CHANGEUSRSTAT'
  EXPORTING
    number = lv_number
    usr_status = lv_usr_status
  IMPORTING
    systemstatus = lv_systemstatus
    userstatus = lv_userstatus
  TABLES
    return = lt_return.
```

## Related tables

JEST, QMEL

