PM
BAPI
RFC
Used the same way in S/4HANA
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.
- Function group
- IWOPM
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
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)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
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
Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.