Skip to Content
0
Former Member
Feb 16, 2009 at 07:11 AM

Problem in changing delivery qty through 'BAPI_OUTB_DELIVERY_CHANGE'

629 Views

Dear friends.

i am passing all the parameters according to documentation.

yet the del qty is not getting updated. Return message is like this:

(Required field in interface to delivery update missing &1 &2 &3 &4)

please help me.

here i am giving my code.

**************************************************************************

gs_header_data-deliv_numb = '0080000228' .

gs_header_control-deliv_numb = '0080000228' .

gs_delivery-deliv_numb = '0080000228' .

gs_item_data-deliv_numb = '0080000228' .

gs_item_data-deliv_item ='000010' .

gs_item_data-material = '307045229000306LG1' .

gs_item_data-batch = '0STOCKYARD'..

gs_item_data-hieraritem = ' ' .

gs_item_data-dlv_qty = '61.656'. *********** New del qty

gs_item_data-dlv_qty_imunit = '61.656'. .******* please confirm this.....?????

gs_item_data-fact_unit_nom = '00001' .

gs_item_data-fact_unit_denom = '00001' .

gs_item_data-sales_unit = 'TO' .

gs_item_data-sales_unit_iso = 'TNE' .

gs_item_data-base_uom = 'TO' .

gs_item_data-base_uom_iso = 'TNE' .

APPEND gs_item_data TO gt_item_data.

gs_item_control-deliv_numb = '0080000044' .

gs_item_control-deliv_item = '000010' .

gs_item_control-chg_delqty = 'X' .

APPEND gs_item_control TO gt_item_control.

CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'

EXPORTING

header_data = gs_header_data

header_control = gs_header_control

delivery = gs_header_data-deliv_numb

TABLES

item_data = gt_item_data

item_control = gt_item_control

return = gt_bapiret2