We are creating a production order via BAPI_PRODORD_CREATE_FROM_REF. We are using an existing production order as our reference. The existing production order has account assignment to WBS, and the existing production order is listed under PROJECT STOCK in MD04. The newly created order does not have the assignment to WBS, and also is showing up as a fulfillment of PLANT STOCK in MD04.
We attempt to update (via CO02) the newly created order by populating the WBS and settlement rule, but it remains in PLANT STOCK. How can we get the production order removed from PLANT STOCK and show up in PROJECT STOCK for the correct WBS?