‎2009 Jun 17 11:58 AM
Hi.
i am making a sales order with the bapi BAPI_SALESORDER_CREATEFROMDAT2. the order is created but the items haven't any quantity.
i fill the fields for items: itm_number, material, target_qty and TARGET_QU.
i don't know if i need to fill any more fields for items.
thanks
‎2009 Jun 17 12:05 PM
Hi,
fill the ORDER_ITEMS_INX. Give item numbers like increments of 10 or so.. and try..
ORDER_ITEMS_IN STRUCTURE BAPISDITM OPTIONAL ORDER_ITEMS_INX STRUCTURE BAPISDITMX OPTIONAL These have to be filled to reflect the line items..
Also ensure that you are using BAPI_TRANSACTION_COMMIT.
Edited by: Renjith Michael on Jun 17, 2009 4:35 PM
‎2009 Jun 17 12:06 PM
Hi,
Refer the link
http://www.sap-img.com/abap/bapi-salesorder-createfromdat2.htm
Please make sure to pass posnr and quantity in ORDER_SCHEDULES_IN ( ITM_NUMBER and REQ_QTY fileds).
‎2009 Jun 17 12:07 PM
Hi,
I think you need to give REQ_QTY in ORDER_SCHEDULES_IN structure. i.e., you have to give required quantity at schedule line level.
Thank you.
‎2009 Jun 17 12:21 PM