‎2018 Apr 25 11:51 AM
Hello Experts,
I need to change the BOM component quanity. I have gone through many posts which discusses the same issue. Most of them are advicing for a BDC. I would like to know is there any better way to achive this than BDC. (Because I have to update the component quantity from a custom program which has ALV grid and using the same data for BDC will be a bit tricky considering the table control in CO02 and so on) .
NB: I already tried BAPI_RESERVATION_CHANGE but as you may be knowing it shows the error automatic reservation can't be changed.
B.R.
‎2018 Apr 26 3:11 PM
any help ? I am not finding a way out of this ? I need to change the componenet quantity may be add a component also . Any way i can acheive this ?
‎2018 Apr 27 8:06 AM
First of all, you are speaking about Work Order components, not BOM, they are different objects.
If you want meaningful answers, you have to write proper questions ^_^
Anyway, googling "BAPI CO02 Components", you find a lot of topics about the same issue and the first one you fins is https://archive.sap.com/discussions/thread/1120164
There is an answer there pointing to a blog with a full example on how to create and change Production Orders.
For the creation, i would stick with standard BAPI BAPI_PRODORD_CREATE but sadly SAP doesn't provide a similar BAPI for the update/change ( BAPI_PRODORD_CHANGE effects only the header).
Try with the links i gave you and i suggest you to be more clear in your questions so people can help you better.
‎2018 Apr 27 11:06 AM
Hello Simone Milesi,
Thanks a lot for your answer. But the code in the link which you shared is less legible. Moreover my problem is with update and modify. I am not finding a suitable way to do so. Even in the case of BDC I am finding a way to modify( if a new component has to be added). Because I work from a custom internal table (an ALV) from which I try to modify, update the production order. Any better ways to do so ?
B.R.
‎2018 May 09 12:31 PM
Custom internal table (an ALV) - .. an ALV is an ABAP List Viewer. An internal table is a data structure. And what do you mean by custom?
‎2018 Apr 27 3:18 PM
Hello PD,
These links might be useful for you
https://archive.sap.com/discussions/thread/3304861
https://blogs.sap.com/2013/08/13/using-bapialmordermaintain-to-update-production-order-component/
Best,
Aashrith.
‎2018 Apr 27 3:32 PM
https://launchpad.support.sap.com/#/notes/1694267
This note has another option.
‎2018 May 02 12:16 PM
Hi,
Kindly try to explore user exit PPCO0008 to add or change components in production/process orders and take help of Abap consult to write program accordingly
Regards,
Amit
‎2018 May 09 9:07 AM
You should check better P D requirement: it's clearly stated he wants to change COMPONENTS not routings/operations.