cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to Create maintenance notification Using BAPI_ALM_NOTIF_CREATE

tharaka_fernando
Contributor
0 Kudos

Dear Experts,

I'm using a User Exit (IMRC0004) for IK11 T-code (Create Measurement Document in Plant Maintanace) to check the user values in Measurement Reading option. (The requirement is if user enters a value which is out of measurement range , a Measurement notification should be created in IW21).

In order to create a notification I'm using BAPI_ALM_NOTIF_CREATE. it is gettting posted (No errors & return is balnk) but when i go to IW28 to check the notification created nothing displays.

What could be the error?

plz help..

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try out using following FM's

CALL FUNCTION 'BAPI_ALM_NOTIF_SAVE'

EXPORTING

number = es_return-notif_header-notif_no

IMPORTING

notifheader = es_return-notif_header

TABLES

return = lt_return.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'

IMPORTING

return = ls_return.

Regards,

Sudhakar

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Use this F\M:

BAPI_SERVNOT_SAVE -Save service notification

Do commit work after save.

Thanks,

AMS