# BAPI_ALM_NOTIF_GET_DETAIL — Read PM/CS Notification Details

> Reads a maintenance or service notification with its header, items, causes, activities, tasks, partners and long texts. Custom reports, printouts and outbound interfaces use it instead of selecting QMEL and its item tables directly. Set CLEAR_BUFFER when reading many notifications in a loop so old data from the buffer is not returned.

- 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-get-detail/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| NUMBER | BAPI2080_NOTHDRE-NOTIF_NO | Notification number | Yes |
| CLEAR_BUFFER | BAPI2080_NOTHDRE-DELETE_FLAG | Clear the buffer before reading | - |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| NOTIFHEADER_EXPORT | BAPI2080_NOTHDRE | Notification header (result) |
| NOTIFHDTEXT | BAPI2080_NOTHDTXTE | Header descriptions |
| MAINTACTYTYPE | ILA | Maintenance activity type |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| NOTITEM | BAPI2080_NOTITEME | Items (object part, damage) | - |
| NOTIFCAUS | BAPI2080_NOTCAUSE | Causes | - |
| NOTIFACTV | BAPI2080_NOTACTVE | Activities | - |
| NOTIFTASK | BAPI2080_NOTTASKE | Tasks | - |
| NOTIFPARTNR | BAPI2080_NOTPARTNRE | Partners | - |
| NOTLONGTXT | BAPI2080_NOTFULLTXTE | Long texts | - |
| EXTENSIONOUT | BAPIPAREX | Customer extension (output) | - |
| RETURN | BAPIRET2 | Return messages | - |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_ALM_NOTIF_GET_DETAIL'
  EXPORTING
    number = lv_number
  IMPORTING
    notifheader_export = lv_notifheader_export
    notifhdtext = lv_notifhdtext
    maintactytype = lv_maintactytype
  TABLES
    notitem = lt_notitem
    notifcaus = lt_notifcaus
    notifactv = lt_notifactv
    notiftask = lt_notiftask
    notifpartnr = lt_notifpartnr
    notlongtxt = lt_notlongtxt
    extensionout = lt_extensionout
    return = lt_return.
```

## Related tables

QMEL, QMFE, QMMA, QMSM, QMUR

