Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

split Outbound Delivery after Save

Former Member
0 Kudos

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

1 REPLY 1

Jelena
Active Contributor
0 Kudos

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