Dear friends,
Iam facing a problem on Delivery Split
My Requirement : I have a delivery A with Item 000010 and Batches 10,20,30,40,50 in ERP system. I have a third party system which wil create a new delivery B for this Original delivery A and associate batches 20, 30 - Means... the Third party system is splitting the delivery A to delivery A and B and associate
Delivery A with Batches 10, 40 and 50
New Delivery B with Batches 20 and 30.
What am I trying to do is
Step 1. I am trying to create a new delivery B using "BAPI_OUTB_DELIVERY_SPLIT_DEC"
Step 2. Ill do a Batch Split for B using "BAPI_OUTB_DELIVERY_CHANGE"
Step 3. Ill delete the Batches 20 and 30 which are used in Delivery B from Delivery A.
Usage of "BAPI_OUTB_DELIVERY_SPLIT_DEC"
wa_item-deliv_numb = p_n_dlv. "New Delivery Number "65000000
wa_item-deliv_item = p_n_psn. "New Delivery Item "000010
wa_item-curr_qty = 'B'. "Base Unit (B) / Sales Unit (A)
wa_item-dlv_qty = lv_qty. "40
*wa_item-DEL_QTY_FLO =
wa_item-sales_unit = wa_lips-vrkme. "MSF
wa_item-isocode_sales_unit = wa_lips-vrkme . "MSF
wa_item-dlv_qty_stock = lv_qty. "40
*wa_item-DLV_QTY_ST_FLO =
wa_item-base_uom = wa_lips-meins. "MSF
wa_item-base_uom_iso = wa_lips-meins. "MSF
wa_item-sales_qty_num = 1.
wa_item-sales_qty_denom = 1.
wa_item-convfactor = wa_lips-umrev. "0.00000000000.....0+0
APPEND wa_item TO lt_items.
CALL FUNCTION 'BAPI_OUTB_DELIVERY_SPLIT_DEC'
EXPORTING
delivery = p_vbeln
deliverynew = p_n_dlv
deliveryitemsbelongto = p_dlv_md "N
businessprocess = 'Z006'
TECHNCONTROL =
TABLES
itemdata = lt_items
EXTENSIONIN =
return = l_return
ITEM_SERIAL_NO =
.
Errors which Iam getting
E |LEDSP |037 | <
E |LEDSP |025 | <
Waiting for some good suggestions!...
<removed by moderator>
Cheers,
Kripa Rangachari.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = LV_WAIT.
Edited by: Thomas Zloch on Feb 19, 2011 1:38 PM - please do not promise ...