cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Issue with BAPI_PRODORDCONF_CREATE_TT / CREATE_HDR – Confirmation Saved but Not Visible in CO15

xtimas
Explorer
0 Likes
429

 


Hello everyone,

I’m working on a .NET solution using the SAP .NET Connector (NCo) to confirm and update production orders and their operation quantities (yield, scrap, and rework).

I’m using the following BAPIs:

  • BAPI_PRODORDCONF_CREATE_TT

  • BAPI_PRODORDCONF_CREATE_HDR

I’m updating the TIMETICKETS table for BAPI_PRODORDCONF_CREATE_TT and the ATHDRLEVELS table for BAPI_PRODORDCONF_CREATE_HDR, setting all relevant field values.

When I execute these BAPIs, I receive a success message:
"Confirmation of order [OrderId] saved."

However, when I check transaction CO15, the confirmation is created, but the values are not the same as those I passed to the BAPI functions. Only the yield is recorded, and it reflects the total planned output quantity of the production order, rather than the specific quantities (yield, scrap, rework) that I provided during execution.

I’m committing the transaction using:

BAPI_TRANSACTION_COMMIT
f.SetValue("WAIT", "X");
f.Invoke(dest);

(dest is an RfcDestination)

I get the same result when testing these functions in transaction SE37.

What am I missing or doing wrong?

Thanks for your help!


 

Accepted Solutions (0)

Answers (1)

Answers (1)

Caetano
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello

Try to use BAPI_PRODORDCONF_GET_TT_PROP and get the input parameters to be used in BAPI_PRODORDCONF_CREATE_TT.

Regards,
Caetano 

xtimas
Explorer
0 Likes
Unfortunately, the implementation did not work as expected. It’s possible I applied it incorrectly. Could you clarify your solution in more detail? Thank you