I have created a ztcode which uses bapi BAPI_SALESORDER_CREATEFROMDAT2 to create copies of a manually created sales order
this function was working perfectly fine as till now we only had one line item per sales order
last week we added a material which has 2 BOM items (both non stock)
We passed only the parent item into the bapi so the orders created thru the bapi had only the parent item and the child items exploded on to the order because of the BOM config already in place.
This works perfectly fine in Quality systems but failed in production
Both the systems are identical in nature in all respects visa vis transports config and system patch as well.
The BOM is maintained in CS01
both the child items are marked as Relevant for sales and BOM usage is marked as 5
I am failing to understand why it doesnt work in production
And as we have used std bapi my tech consultant has been debugging without any sucess as well
Would appreciate any thoughts on how to find a lead in solving this mystery.