Skip to Content
avatar image
Former Member

Regarding PM notification and Workorder

Hi experts,

Requirement: Need to create Notification and work order based on the input file.

My approach is creating notification using BAPI_ALM_Notif_create and after notification successfully created, creating work order using the notification created above using BAPI_ALM_ORDER_MAINTAIN and it is working successfully.

Now my problem here is if any error occurred during order creation, need to revert the notification also, so that we will correct the data and will create notif and order newly.

Please help me here or suggest me on the approach.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Feb 06, 2018 at 07:04 PM

    Use the BAPI "BAPI_ALM_NOTIF_CLOSE" to Close the Notification and / or BAPI "IBAPI_ALM_NOTIF_SETDELFLAG" to Set the Deletion Status (if needed).

    See this Blog on Order and Notification API's : link

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 07, 2018 at 08:54 AM


    Its more likely that an order creation will fail as there is far less functionality in the notification creation process.

    So why not create the order first, then the notification.

    Alternatively, have a follow-up process for notifications created without an order (say a batch program to send emails)..

    Something else to try is not performing the commit until both BAPIs have been executed (if thats even possible!!).


    Add comment
    10|10000 characters needed characters exceeded