Skip to Content
author's profile photo Former Member
Former Member

Automatic Work Order Creation during Notification create and change

Hi All,

We have a requirement to create work order automatically during notification create and change on save action of notification based on few checks.

Using BAPI 'BAPI_ALM_ORDER_MAINTAIN' in the BADI NOTIF_EVENT_POST is causing errors as 'Notification & not found' and 'Notification & is locked' when called directly or in update task and not creating the workorder.

1. It is working fine if the BAPI is called in a wrapper FM in back ground task.

2. The other option is to use workflow WS20000317 that has BUS2038 and event CREATED, but this works only for creation of notification and not change mode.

However the challenge with workflow option is that we are not able to issue messages back to the screen like 'Work order & created successfully'. - Any way to handle this ?

For our custom requirement the below standard options do not behave as expected

1. Create button on IW21 T-CODE screen next to the 'Order' field (Third field from top).

2. Menu option Maintenance Notification--> Order -->Create-->In background

Please share your ideas on the same.

Add comment
10|10000 characters needed characters exceeded

0 Answers