on 2025 Nov 10 1:33 PM - last edited 4 weeks ago
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!
Request clarification before answering.
Hello
Try to use BAPI_PRODORDCONF_GET_TT_PROP and get the input parameters to be used in BAPI_PRODORDCONF_CREATE_TT.
Regards,
Caetano
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.