Skip to Content

Regarding PM notification and Workorder

Feb 06 at 03:42 PM


avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Nic Teunckens Feb 06 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

10 |10000 characters needed characters left characters exceeded
Peter Atkin Feb 07 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!!).


10 |10000 characters needed characters left characters exceeded