Skip to Content

Unable to Create maintenance notification Using BAPI_ALM_NOTIF_CREATE

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..

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 19, 2010 at 12:49 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 21, 2010 at 11:00 AM

    Hi,

    Use this F\M:

    BAPI_SERVNOT_SAVE -Save service notification

    Do commit work after save.

    Thanks,

    AMS

    Add comment
    10|10000 characters needed characters exceeded