# BAPI_ALM_NOTIF_DATA_ADD — Add Data to PM/CS Notification

> Adds new items, causes, activities, tasks, partners or long text lines to an existing notification. It is useful when follow-up information (damage codes, measures) arrives later from a mobile or shop-floor system. Use KEY_RELATIONSHIPS to link new causes and activities to their items, then call 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-add/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| NUMBER | BAPI2080_NOTHDRE-NOTIF_NO | Notification number | Yes |
| NOTIFHEADER | BAPI2080_NOTHDRI | Notification header data | - |
| TASK_DETERMINATION | BAPIFLAG | Automatic task determination | - |
| SENDER | BAPI_SENDER | Logical sender system | - |
| ORDERID | BAPI2080_NOTHDRE-ORDERID | Maintenance order number | - |
| NO_BUFFER_REFRESH_ON_ERROR | QM00-QKZ | Keep the buffer on error | - |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| NOTIFHEADER_EXPORT | BAPI2080_NOTHDRE | Notification header (result) |
| NOTIFHDTEXT | BAPI2080_NOTHDTXTE | Header descriptions |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| NOTFULLTXT | BAPI2080_NOTFULLTXTI | Long texts | - |
| NOTITEM | BAPI2080_NOTITEMI | Items (object part, damage) | - |
| NOTIFCAUS | BAPI2080_NOTCAUSI | Causes | - |
| NOTIFACTV | BAPI2080_NOTACTVI | Activities | - |
| NOTIFTASK | BAPI2080_NOTTASKI | Tasks | - |
| NOTIFPARTNR | BAPI2080_NOTPARTNRI | Partners | - |
| KEY_RELATIONSHIPS | BAPI2080_NOTKEYE | Key assignment of new sub-objects | - |
| EXTENSIONIN | BAPIPAREX | Customer extension (input) | - |
| EXTENSIONOUT | BAPIPAREX | Customer extension (output) | - |
| RETURN | BAPIRET2 | Return messages | - |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_ALM_NOTIF_DATA_ADD'
  EXPORTING
    number = lv_number
  IMPORTING
    notifheader_export = lv_notifheader_export
    notifhdtext = lv_notifhdtext
  TABLES
    notfulltxt = lt_notfulltxt
    notitem = lt_notitem
    notifcaus = lt_notifcaus
    notifactv = lt_notifactv
    notiftask = lt_notiftask
    notifpartnr = lt_notifpartnr
    key_relationships = lt_key_relationships
    extensionin = lt_extensionin
    extensionout = lt_extensionout
    return = lt_return.
```

## Related tables

QMEL, QMFE, QMMA, QMSM, QMUR

