‎2009 May 20 9:32 AM
Hi,
I am using BAPI BAPI_SALESORDER_CREATEFROMDAT2 for sales order upload.
I am putting quanity in field TARGET_QTY of Item Data table.
Problem is all the remaining data is getting uploaded and i can see it in va01/va02/va03 but the target quantity fields remain empty.
Please help is there any other field to which data should be passed.
regards
vivek
‎2009 May 20 9:38 AM
hi,
you need to fill the field REQ_QTY in table ORDER_SCHEDULES_IN of the same bapi and also need to mark the X for the same field in table ORDER_SCHEDULES_INX.
you need to pass the item no also for which you are passing quantity
this will solve ur problm
thanks & regards
vj
Edited by: Vijay Sharma on May 20, 2009 10:53 AM
‎2009 May 20 9:38 AM
hi,
you need to fill the field REQ_QTY in table ORDER_SCHEDULES_IN of the same bapi and also need to mark the X for the same field in table ORDER_SCHEDULES_INX.
you need to pass the item no also for which you are passing quantity
this will solve ur problm
thanks & regards
vj
Edited by: Vijay Sharma on May 20, 2009 10:53 AM
‎2009 May 20 9:41 AM
Hi Vivek,
Please check BAPISDITMX (Item Data Checkbox) for traget quantity field. You need to pass value 'X' into this field.
Best Regards,
Deepa Kulkarni
‎2009 May 20 9:42 AM
‎2009 May 20 9:52 AM
Hi,
Try doing in the following way:
wa_order_items_in-itm_number = posnr_temp.
wa_order_items_in-material = wa_salesitem-matnr.
wa_order_items_in-plant = wa_salesitem-werks.
wa_order_items_in-target_qty = wa_salesitem-kwmeng.
wa_order_items_in-ref_doc = wa_salesitem-vbeln.
wa_order_items_in-ref_doc_it = wa_salesitem-posnr.
wa_order_items_inx-itm_number = wa_salesitem-posnr.
wa_order_items_inx-material = 'X'.
wa_order_items_inx-plant = 'X'.
wa_order_items_inx-target_qty = 'X'.
wa_order_items_inx-ref_doc = 'X'.
wa_order_items_inx-ref_doc_it = 'X'.
APPEND wa_order_items_in TO it_order_items_in.
APPEND wa_order_items_inx TO it_order_items_inx.
Then pass these two structures, wa_order_items_in & wa_order_items_inx to the item tables of the BAPI.
Hope it helps.
Regards,
Arnab.
‎2009 May 20 9:52 AM
Hi ,
May be check out the field size for quantity.Check the quantity as BAPISDITM-TARGET_QTY
It has worked for me .