PM
BAPI
RFC
Used the same way in S/4HANA
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.
- Function group
- IWOPM
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
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)
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_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
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.