If I create a quotation using VA21 and then turn it into a sales order via VA01 then the MRP transactions create pallned orders based upon the quotation quantity, which is what we want.
But if I do the same via BAPIs then the MRP transactions create planned orders based upon the sales order quantity.
I can see that in table VBBE the sales orders created via VA01 have field "VBELE" as the quotation number, and the ones created via BAPI have the field "VBELE" as the sales order number.
I am passing the reference quotation number into the BAPI_SALESORDER_CREATEFROMDAT2 in the following places
header-ref_doc = vbak-vgbel.
header-refdoc_cat = zvbak-vbtyp_v. "Quotation
it_order_items-ref_doc = vbak-vgbel.
it_order_items-ref_doc_it = xvbap-vgpos.
it_order_items-ref_doc_ca = zvbak-vbtyp_v. "Quotation
Do I need to pass in anything else to get the MRP to work as I wish?
I am very tempted to go back to using a BDC as I know that will work.
Login to follow, like, comment, share and bookmark content.