Application Development and Automation 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: 
Read only

Change the BOM Component Quantity BAPI

former_member207873
Participant
0 Likes
3,994

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.

8 REPLIES 8
Read only

former_member207873
Participant
0 Likes
3,006

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 ?

Read only

SimoneMilesi
Active Contributor
3,006

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.

Read only

0 Likes
3,006

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.

Read only

matt
Active Contributor
0 Likes
3,006

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?

Read only

Read only

Amit_SAP
Active Contributor
0 Likes
3,006

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

Read only

SimoneMilesi
Active Contributor
0 Likes
3,006

You should check better P D requirement: it's clearly stated he wants to change COMPONENTS not routings/operations.