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

ParameterTypeDescriptionRequired
EXTERNAL_NUMBERBAPI2080_NOTHDRE-NOTIF_NOExternal notification number—
NOTIF_TYPEBAPI2080-NOTIF_TYPENotification typeYes
NOTIFHEADERBAPI2080_NOTHDRINotification header dataYes
TASK_DETERMINATIONBAPIFLAGAutomatic task determination—
SENDERBAPI_SENDERLogical sender system—
ORDERIDBAPI2080_NOTHDRE-ORDERIDMaintenance order number—
MAINTACTYTYPEILAMaintenance activity type—
NOTIFCATION_COPYQWRNUMReference notification to copy—
IV_DONT_CHK_MANDATORY_PARTNERBAPIFLAG-BAPIFLAGSkip mandatory partner check—

Exporting parameters

ParameterTypeDescription
NOTIFHEADER_EXPORTBAPI2080_NOTHDRENotification header (result)
MAINTACTYTYPE_EXPORTILAMaintenance activity type (result)

Tables parameters

ParameterTypeDescriptionRequired
NOTITEMBAPI2080_NOTITEMIItems (object part, damage)—
NOTIFCAUSBAPI2080_NOTCAUSICauses—
NOTIFACTVBAPI2080_NOTACTVIActivities—
NOTIFTASKBAPI2080_NOTTASKITasks—
NOTIFPARTNRBAPI2080_NOTPARTNRIPartners—
LONGTEXTSBAPI2080_NOTFULLTXTILong texts—
KEY_RELATIONSHIPSBAPI2080_NOTKEYEKey assignment of new sub-objects—
EXTENSIONINBAPIPAREXCustomer extension (input)—
EXTENSIONOUTBAPIPAREXCustomer extension (output)—
RETURNBAPIRET2Return 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.

Request a custom report