04-16-2013 9:36 AM
Hi, I need check component data and set value to field "Unloading Point"(RESB-ABLAD) before Production Order saving in CO01/CO02/CO08/CO40/CO41 and so on.
I have tried user exit PPCO0001, but system only call use exit PPCO0001(Line 733 in FM CO_BT_ORDER_POST) after post Production Order(around line 477 in FM CO_BT_ORDER_POST), so use exit PPCO0001 is not useable for ths requirement.
For other user exits as PPCO00XX, the import and export parameter is not enough for component data update.
Do we have a good user exit for this requirement?
I also saw some ENHANCEMENT-POINT in FM CO_BT_ORDER_POST. Is this the only way to update component before Production Order saving?
04-16-2013 12:01 PM
Hello liu
Try to make use of enhancement PPCO0007 (Exit when saving production order). This enhancement holds a structure which does not have the field mentioned in your query i.e. RESB-ABLAD(Unloading Point). But through method of stack programming you can achieve this goal of updating some value to unloading point.
Regards
Suresh Nair
04-16-2013 12:08 PM
04-16-2013 12:45 PM
Hi,
Please check - "WORKORDER_UPDATE" with method "AT_SAVE"
Regards,
RP Jaiswal
04-16-2013 12:54 PM
Hello
BADi mentioned is correct, but method to be used is IN_UPDATE.
Regards
Suresh Nair
04-18-2013 4:30 AM
Hi, method IN_UPDATE will not be call when we saving Production Order, only BEFORE_UPDATE will be call. And BEFORE_UPDATE does't have any exception to raise.
However, the table parameters of BEFORE_UPDATE are all only Importing, not Changing, so we can not cange data here! For this reason, BADI WORKORDER_UPDATE is not useable for this requirement anymore.
Do we have a solution to change data before Production Order saving?
04-17-2013 4:27 AM
07-28-2016 3:09 PM