# BAPI_QUALNOT_MODIFY_DATA — Change QM Notification Data

> Changes existing data of a quality notification: header, items, causes, tasks, activities and partners, controlled by the matching _X flag structures. It is used to update notifications from external complaint or 8D tools. Fill the _X structure for every changed field, then call BAPI_QUALNOT_SAVE and BAPI_TRANSACTION_COMMIT.

- 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-modify-data/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| NUMBER | BAPI2078_NOTHDRE-NOTIF_NO | Notification number | Yes |
| NOTIFHEADER | BAPI2078_NOTHDRI | Notification header data | - |
| NOTIFHEADER_X | BAPI2078_NOTHDRI_X | Header change flags (X structure) | - |

## Exporting parameters

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

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| NOTIFITEM | BAPI2078_NOTITEMI | Notification items (defects) | - |
| NOTIFITEM_X | BAPI2078_NOTITEMI_X | Item change flags (X structure) | - |
| NOTIFCAUS | BAPI2078_NOTCAUSI | Causes | - |
| NOTIFCAUS_X | BAPI2078_NOTCAUSI_X | Cause change flags (X structure) | - |
| NOTIFACTV | BAPI2078_NOTACTVI | Activities | - |
| NOTIFACTV_X | BAPI2078_NOTACTVI_X | Activity change flags (X structure) | - |
| NOTIFTASK | BAPI2078_NOTTASKI | Tasks | - |
| NOTIFTASK_X | BAPI2078_NOTTASKI_X | Task change flags (X structure) | - |
| NOTIFPARTNR | BAPI2078_NOTPARTNRI | Partners | - |
| NOTIFPARTNR_X | BAPI2078_NOTPARTNRI_X | Partner change flags (X structure) | - |
| NOTFULLTXT | BAPI2078_NOTFULLTXTI | Long texts | - |
| RETURN | BAPIRET2 | Return messages | - |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_QUALNOT_MODIFY_DATA'
  EXPORTING
    number = lv_number
  IMPORTING
    notifheader_export = lv_notifheader_export
  TABLES
    notifitem = lt_notifitem
    notifitem_x = lt_notifitem_x
    notifcaus = lt_notifcaus
    notifcaus_x = lt_notifcaus_x
    notifactv = lt_notifactv
    notifactv_x = lt_notifactv_x
    notiftask = lt_notiftask
    notiftask_x = lt_notiftask_x
    notifpartnr = lt_notifpartnr
    notifpartnr_x = lt_notifpartnr_x.
```

## Related tables

QMEL, QMFE, QMMA, QMSM, QMUR

