Application Development 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: 

Production order reference SO to be changed

Former Member
0 Kudos

Hi,

Currently i am using BAPI 'BAPI_PRODORD_CREATE_FROM_REF' to create Production order.

But problem is when reference Production order is MTO than we need reference Sales order also to be updated.

Sales order update is not happening.

It seems above BAPI is good enough for CO01 transaction but Production order which is to be created w.r.t SO is created by CO08 or CO10.

Please share your input in updating SO of Production order using BAPI/FM etc.

Thanks & Regards,

Durgesh

3 REPLIES 3

Jelena
Active Contributor
0 Kudos

Why are you using ...REF? There is BAPI_PP_ORDER_CREATE and it has sales order as a parameter...

Former Member
0 Kudos

Hi Jelena,

Thanks for your response.

We have BAPI 'BAPI_PRODORD_CREATE' for creating Production order from SO.

But the problem is in CO08 when we create from SO than we can pass Prod. order also.

Hence components are picked from Prod. order.

My main requirement is to split P1 to P1 & P2.

P2 should have same components as P1.

When i create using above BAPI that time the link between P1 and P2 is missing.

Regards,

Durgesh

Jelena
Active Contributor
0 Kudos

To be honest, I'm very much confused by this business process. If you are creating production orders for the sales order, then why do you also need to refer another production order at the same time? Why are components not determined based on the sales order? And why do you need to "split" something? This looks rather odd, you might want to check with PP consultant.

Either way, there are only few BAPIs out there and their parameters are clear, so it is what it is.