08-05-2010 8:47 AM
hi,
how to split delivery with BAPI_OUTB_DELIVERY_SPLIT_DEC i get error message all the time.
I trigger this FM after the Delivery has been saved that I need to split further.
wa_itemdata-deliv_numb = lv_vbeln_new. " Say if I have 0802003455 I will add 1 => 0802003456
wa_itemdata-deliv_item = lt_lips-posnr.
wa_itemdata-curr_qty = lt_lips-akmng.
wa_itemdata-sales_unit = lt_lips-vrkme.
wa_itemdata-sales_qty_num = 1.
wa_itemdata-sales_qty_denom = 1.
wa_itemdata-convfactor = 1.
wa_itemdata-dlv_qty = lt_lips-lfimg / lv_factor.
APPEND wa_itemdata TO lt_itemdata.
CLEAR: wa_itemdata.
CALL FUNCTION 'BAPI_OUTB_DELIVERY_SPLIT_DEC'
EXPORTING
delivery = lt_lips-vbeln
deliverynew = lv_vbeln_new
deliveryitemsbelongto = 'N'
businessprocess = 'Y001'
TABLES
itemdata = lt_itemdata
return = lt_return.
The error I get is as follows. Looks like something related to decentralised warehousing:
LEDSP 037 000000 LE_DSP_DECENTRAL DATA_ERROR
LEDSP 086 000000 802003456
Edited by: Maksims Jegorovcevs on Aug 5, 2010 5:05 PM
08-05-2010 10:26 PM
I worked with this long time ago... I think in the ITEM table you need to have the items for both "old" and "new" delivery. Read the message text in SE91:
086 Delivery &1 is not entered as an old or a new delivery