Skip to Content
0

Change the BOM Component Quantity BAPI

Apr 25 at 10:51 AM

111

avatar image
P D

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.

10 |10000 characters needed characters left characters exceeded

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 ?

0
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Simone Milesi Apr 27 at 07:06 AM
1

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.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

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.

0

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?

0
avatar image
Former Member Apr 27 at 02:18 PM
0
Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member
1
Amit Sharma May 02 at 11:16 AM
-1

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

Share
10 |10000 characters needed characters left characters exceeded