# BAPI_QUALNOT_COMPLSTAT — Complete QM Notification

> Sets a quality notification to completed status, using the reference date and time in SYSTSTAT. It is used when an external complaint process closes and SAP must follow. Run it with TESTRUN first if needed, check RETURN and call BAPI_TRANSACTION_COMMIT; open tasks can prevent completion.

- Modules: QM
- Type: BAPI
- Function group: 2078
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-qualnot-complstat/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| NUMBER | BAPI2078_NOTHDRE-NOTIF_NO | Notification number | Yes |
| SYSTSTAT | BAPI2078_NOTSTI | System status data for completion | Yes |
| TESTRUN | BAPI20783T-STATUS_IND | Test run (no update) | - |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| SYSTEMSTATUS | BAPI2078_NOTADT-SYSTATUS | System status after completion |
| USERSTATUS | BAPI2078_NOTADT-USRSTATUS | User status after completion |

## Tables parameters

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

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_QUALNOT_COMPLSTAT'
  EXPORTING
    number = lv_number
    syststat = lv_syststat
  IMPORTING
    systemstatus = lv_systemstatus
    userstatus = lv_userstatus
  TABLES
    return = lt_return.
```

## Related tables

JEST, QMEL

