Hi All,
I am using the following code to fill item data while creating order using BAPI_BUSPROCESSND_CREATEMULTI.
loop.
*----Fill the Item details
lv_number = lv_number + 10.
lv_schdno = lv_cshdno + 1.
ls_item-handle = '0000000001'.
ls_item-header_handle = '0000000001'.
ls_item-ordered_prod = lv_ordered_prod. "material
ls_item-number_int = lv_number.
INSERT ls_item INTO TABLE lt_item.
*----Fill the Scheduline Details
ls_scheduleline-item_handle = '0000000001'.
ls_scheduleline-handle = '0000000001'.
ls_scheduleline-quantity = lv_quan.
ls_scheduleline-schedlin_no = lv_schdno.
INSERT ls_scheduleline INTO TABLE lt_scheduleline.
endloop.
Order is getting created fine but it has only the last item. Previous line items are not getting added to the order. Do I need to pass any other parameters ot the item or scheduleline table?
Please help me.
Thanks in Advance!
Sonali.