‎2011 Apr 29 11:26 AM
Hi All,
I have a requirement as follows:
In IW32, after entering an order number, if we change the user status (activating the user status) and press the SAVE button, a mail needs to be triggered for which user exit or an Enhancement point or a BADI should be triggered soon after the table JCDS is updated with the user status.
I have found a couple of user exits but I am unable to find one soon after the table updation. Another important thing to note is that if the user wants to deactivate the user status (i.e., when the user status is reverted back to the previous status) and saved, then this functionality should not be executed. Kindly help me with the user exit or the enhancment or the BADI where I can implement this functionality.
‎2011 Apr 29 11:39 AM
Hi,
You can use the BADI - WORKORDER_UPDATE, and write your logic in IN_UPDATE method.
Regards,
Satish Kanteti
‎2011 Apr 29 11:51 AM
Hi,
Thanks for the response. But will this BADI get triggered soo after the table JCDS gets updated? Also, how do I stop the functionality if the user status is reverted and saved
‎2011 Apr 29 12:38 PM
Hi,
I couldn't find any BADI that triggered after saving the JCDS table updation. As soon as all the BADI's were executed, JCDS is updated at the end.
You can cross check by putting the break-point in the class CL_EXITHANDLER, method GET_INSTANCE. Here you get the exit names when you save the order. At the completion of each BADI execution, I tried to refresh the entries in JCDS. But no records were inserted.
Few ex. of BADI's that were triggered in the SAVE:
IWO1_ORDER_BADI
NOTIF_EVENT_SAVE
...
Regards,
Satish Kanteti
‎2011 Apr 29 1:10 PM
Yes but there is a BADI NOTIF_COST_CALCULATE after which the JCDS table gets updated. And afterthis BADI, ATP_PUBLISH_RESULTS BADI gets triggered. But we are not allowe to make any change to this BADI.