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

Production order confirmations using BAPI

Former Member
0 Likes
728

We are using tcode CO15 for Production order confirmations. In the

configuration ( OPK4 )we have set the error handling to

1) terminate for incorrect Act Costs

2) terminate for incorrect goods movement.


When we perform a CO15 manually for an order we cannot confirm the

order unless all the records are terminated. Our scenario is that there

is 1 header material and 4 components ( C1 C2 C3 C4) in the order. If

even one component has a discrepancy then the confirmation is

terminated unless the discrepancy is corrected. When I use the BAPI

BAPI_PRODORDCONF_CREATE_HDR the confirmation of the order is created

with the header material and component C1 & C2 getting posted and the

components C3 and C4 ( which had errors in them ) do not get posted and

are stored in the error records tcode COGI. When I confirm the order

manually with the same scenario I am not able to post the

confirmations.Whay does the BAPI behave differently from the manual

transactions?


Also when I use a BDC to do the confirmations the same result as the

BAPI occurs. The production order is confirmed with discrepancy.


Is there a source code correction which needs to be applied?

2 REPLIES 2
Read only

rupesh_brahmankar
Active Contributor
0 Likes
525

Dear,

Please refer the OSS note 208477 Consulting: Process control in confirmation which has clearly address this issue. OPK4 setting for terminate in correct good movement for component or cost will not work for confirmation BAPI

Also refer this link too,

http://scn.sap.com/thread/1810150

Regards,

R.Brahmankar

Read only

sjeevan
Active Contributor
0 Likes
525

Check out note 515656