# BAPI_ALM_NOTIF_CREATE — Create PM/CS Notification

> Creates a maintenance or service notification with header, items, causes, activities, tasks, partners and long texts. The notification is created only in the buffer with a temporary number, so call BAPI_ALM_NOTIF_SAVE and then BAPI_TRANSACTION_COMMIT to get the final number. Typical uses are breakdown reports from mobile apps, sensors or upload programs.

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

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| EXTERNAL_NUMBER | BAPI2080_NOTHDRE-NOTIF_NO | External notification number | - |
| NOTIF_TYPE | BAPI2080-NOTIF_TYPE | Notification type | Yes |
| NOTIFHEADER | BAPI2080_NOTHDRI | Notification header data | Yes |
| TASK_DETERMINATION | BAPIFLAG | Automatic task determination | - |
| SENDER | BAPI_SENDER | Logical sender system | - |
| ORDERID | BAPI2080_NOTHDRE-ORDERID | Maintenance order number | - |
| MAINTACTYTYPE | ILA | Maintenance activity type | - |
| NOTIFCATION_COPY | QWRNUM | Reference notification to copy | - |
| IV_DONT_CHK_MANDATORY_PARTNER | BAPIFLAG-BAPIFLAG | Skip mandatory partner check | - |

## 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 |
|---|---|---|---|
| NOTITEM | BAPI2080_NOTITEMI | Items (object part, damage) | - |
| NOTIFCAUS | BAPI2080_NOTCAUSI | Causes | - |
| NOTIFACTV | BAPI2080_NOTACTVI | Activities | - |
| NOTIFTASK | BAPI2080_NOTTASKI | Tasks | - |
| NOTIFPARTNR | BAPI2080_NOTPARTNRI | Partners | - |
| LONGTEXTS | BAPI2080_NOTFULLTXTI | Long texts | - |
| 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_CREATE'
  EXPORTING
    notif_type = lv_notif_type
    notifheader = lv_notifheader
  IMPORTING
    notifheader_export = lv_notifheader_export
    maintactytype_export = lv_maintactytype_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
    extensionin = lt_extensionin
    extensionout = lt_extensionout
    return = lt_return.
```

## Related tables

QMEL, QMFE, QMMA, QMSM, QMUR

