# BAPI_ALM_NOTIF_DATA_MODIFY — Change PM/CS Notification Data

> Changes the header and existing items, causes, activities, tasks and partners of a notification. Each data table has a matching _X table; mark every field you want to change there, otherwise the value is ignored. Finish with BAPI_ALM_NOTIF_SAVE and 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-data-modify/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| NUMBER | BAPI2080_NOTHDRE-NOTIF_NO | Notification number | Yes |
| NOTIFHEADER | BAPI2080_NOTHDRI | Notification header data | - |
| NOTIFHEADER_X | BAPI2080_NOTHDRI_X | Header change flags | - |
| MAINTACTYTYPE | ILA | Maintenance activity type | - |
| NO_BUFFER_REFRESH_ON_ERROR | QM00-QKZ | Keep the buffer on error | - |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| NOTIFHEADER_EXPORT | BAPI2080_NOTHDRE | Notification header (result) |
| MAINTACTYTYPE_EXPORT | ILA | Maintenance activity type (result) |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| NOTIFITEM | BAPI2080_NOTITEMI | Items (object part, damage) | - |
| NOTIFITEM_X | BAPI2080_NOTITEMI_X | Item change flags | - |
| NOTIFCAUS | BAPI2080_NOTCAUSI | Causes | - |
| NOTIFCAUS_X | BAPI2080_NOTCAUSI_X | Cause change flags | - |
| NOTIFACTV | BAPI2080_NOTACTVI | Activities | - |
| NOTIFACTV_X | BAPI2080_NOTACTVI_X | Activity change flags | - |
| NOTIFTASK | BAPI2080_NOTTASKI | Tasks | - |
| NOTIFTASK_X | BAPI2080_NOTTASKI_X | Task change flags | - |
| NOTIFPARTNR | BAPI2080_NOTPARTNRI | Partners | - |
| NOTIFPARTNR_X | BAPI2080_NOTPARTNRI_X | Partner change flags | - |
| EXTENSIONIN | BAPIPAREX | Customer extension (input) | - |
| EXTENSIONOUT | BAPIPAREX | Customer extension (output) | - |
| RETURN | BAPIRET2 | Return messages | - |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_ALM_NOTIF_DATA_MODIFY'
  EXPORTING
    number = lv_number
  IMPORTING
    notifheader_export = lv_notifheader_export
    maintactytype_export = lv_maintactytype_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

