# BAPI_QUALNOT_CREATE — Create QM Notification

> Creates a quality notification with header, defect items, causes, tasks, activities, partners and long texts, like QM01. It is used in complaint portals and production interfaces that report defects. The notification gets a temporary number; call BAPI_QUALNOT_SAVE and then BAPI_TRANSACTION_COMMIT to store it.

- 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-create/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| EXTERNAL_NUMBER | BAPI2078_NOTHDRE-NOTIF_NO | External notification number | - |
| NOTIF_TYPE | BAPI2078_NOTHDRE-NOTIF_TYPE | Notification type | Yes |
| NOTIFHEADER | BAPI2078_NOTHDRI | Notification header data | Yes |
| TASK_DETERMINATION | BAPIFLAG | Run automatic task determination | - |
| SENDER | BAPI_SENDER | Logical sender system (ALE) | - |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| NOTIFHEADER_EXPORT | BAPI2078_NOTHDRE | Notification header (result) |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| NOTITEM | BAPI2078_NOTITEMI | Notification items (defects) | - |
| NOTIFCAUS | BAPI2078_NOTCAUSI | Causes | - |
| NOTIFACTV | BAPI2078_NOTACTVI | Activities | - |
| NOTIFTASK | BAPI2078_NOTTASKI | Tasks | - |
| NOTIFPARTNR | BAPI2078_NOTPARTNRI | Partners | - |
| LONGTEXTS | BAPI2078_NOTFULLTXTI | Long texts | - |
| KEY_RELATIONSHIPS | BAPI2078_NOTKEYE | Key relationships between temporary and final numbers | - |
| RETURN | BAPIRET2 | Return messages | - |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_QUALNOT_CREATE'
  EXPORTING
    notif_type = lv_notif_type
    notifheader = lv_notifheader
  IMPORTING
    notifheader_export = lv_notifheader_export
  TABLES
    notitem = lt_notitem
    notifcaus = lt_notifcaus
    notifactv = lt_notifactv
    notiftask = lt_notiftask
    notifpartnr = lt_notifpartnr
    longtexts = lt_longtexts
    key_relationships = lt_key_relationships
    return = lt_return.
```

## Related tables

QMEL, QMFE, QMMA, QMSM, QMUR

