Skip to Content
avatar image
Former Member

BAPI_ALM_NOTIF_CREATE not creating any maintenance notification.

I am trying to use the BAPI_ALM_NOTIF_CREATE bapi to create a notification. If I use the transaction IW21, I can create it perfectly. However, when I call the bapi from my z program, or from the transaction se37 (as a test), passing exactly the same data, it returns no error or information message, but the notification is never created when I check the result with the transaction IW23.

Am I missing some data to pass to the BAPI, that gets automatically created when using Tx IW21?

Any pointer, any light over this matter is GREATLY appreciated.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jun 19, 2008 at 10:31 PM


    You need to call the Function module BAPI_ALM_NOTIF_SAVE after BAPI_ALM_NOTIF_CREATE.

    Also you need to commit using BAPI_TRANSACTION_COMMIT.



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      Please tell me if i want to create notifcation by executing FM to pass parameters?

      Are there any madatory fields and dependencies between HDR>> other tables



  • avatar image
    Former Member
    Jun 20, 2008 at 02:27 AM

    Thanks for the quick response!

    I used it in a test Y program and it worked, but now in the Z program it doesn't work I suspect it is because the bapi is called inside a function module, which in turn is called 'in update task' (V1). Where should I call the BAPI_TRANSACTION_COMMIT function module? Inside my Z-function module or outside. If I call it inside the function... couldn't that compromise the integrity of the DB? (I have to do another DB changes along with the PM/CS BAPI)

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hehehe... I just realized (the hard way) that it is not possible to do commit work inside an update function. hehehe... I should have read more carefully my ABAP academy books....