hi gurus,
i am workign with BAPI - SD_SALESDOCUMENT_CREATE
My problem is QTY is being not updated when Sales document is crreated, it is created with 0.
Even though i am passing qty to line item data as below
as below.
va_posnr = va_posnr + 10.
wa_order_items_in-itm_number = va_posnr.
tb_order_items_inx-itm_number = ca_x.
wa_order_items_in-material = -matnr.
tb_order_items_inx-material = ca_x.
wa_order_items_in-plant = va_werks.
tb_order_items_inx-plant = ca_x.
wa_order_items_in-target_qty = kwmeng
tb_order_items_inx-target_qty = ca_x.
APPEND wa_order_items_in TO tb_order_items_in.
APPEND tb_order_items_inx.
along with this im pasing partner data as well with ship to party.
Sales document is created with out any problem, But Quantity is not beign updated. I have debuged BAPI till SD_SALES_DOCUMENT_SAVE place
zmeng is still filled with qty = 1.
Please help.
rgs,
Jayant.