Skip to Content
0
Former Member
Aug 05, 2010 at 07:47 AM

split Outbound Delivery after Save

340 Views

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