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

ParameterTypeDescriptionRequired
NUMBERBAPI2080_NOTHDRE-NOTIF_NONotification numberYes
CLEAR_BUFFERBAPI2080_NOTHDRE-DELETE_FLAGClear the buffer before reading—

Exporting parameters

ParameterTypeDescription
NOTIFHEADER_EXPORTBAPI2080_NOTHDRENotification header (result)
NOTIFHDTEXTBAPI2080_NOTHDTXTEHeader descriptions
MAINTACTYTYPEILAMaintenance activity type

Tables parameters

ParameterTypeDescriptionRequired
NOTITEMBAPI2080_NOTITEMEItems (object part, damage)—
NOTIFCAUSBAPI2080_NOTCAUSECauses—
NOTIFACTVBAPI2080_NOTACTVEActivities—
NOTIFTASKBAPI2080_NOTTASKETasks—
NOTIFPARTNRBAPI2080_NOTPARTNREPartners—
NOTLONGTXTBAPI2080_NOTFULLTXTELong texts—
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_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.

Request a custom report