Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic Work Order Creation during Notification create and change

Former Member
0 Kudos
1,622

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.

0 REPLIES 0