Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

'BAPI_SALESORDER_CREATEFROMDAT2' help! ?

Hi experts

I am using 'BAPI_SALESORDER_CREATEFROMDAT2' in order to update The total (rounded) order quantity of a sales document.

I can update header of items but i couldnt update that field. I used

  • ORDER_SCHEDULES_IN-req_qty = T_VBFA-RFMNG.

  • ORDER_SCHEDULES_IN-ITM_NUMBER = T_VBAP-POSNR.

  • ORDER_SCHEDULES_INX-req_qty = 'X'.

but this only adds the amount to the current amount. For example in the sales doc order quantity is 100 and i want to make it 60. But if i assing 60 to T_VBFA-RFMNG it makes 160. It adds the value.

Which field should i have to fill in order to change order quantity?

Thanks

Tags:
Not what you were looking for? View more on this topic or Ask a question