Skip to Content
0
Former Member
Apr 26, 2006 at 11:41 AM

error while using BAPI_OUTB_DELIVERY_CHANGE

1463 Views

Hi Friends,

I m using BAPI_OUTB_DELIVERY_CHANGE to change the delivery. But I m getting error - Error in document &1 item &2 (quantity consistency check).

I m changing the delivered qty in batch-split and

delivered qty in header level.

Is there any problem in code

Some code snaps is:

loop at itab.

item_data1-DELIV_NUMB = s_vbeln.

item_data1-DELIV_ITEM = 10.

item_data1-DLV_QTY = itab-nt_qty.

item_data1-UNIT_OF_WT = itab-unit.

append item_data1.

endloop.

ITEM_CONTROL1-DELIV_NUMB = s_vbeln.

item_control1-DELIV_ITEM = 10.

item_control1-CHG_DELQTY = 'X'.

append item_control1.

CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'

EXPORTING

HEADER_DATA = header_data1

HEADER_CONTROL = header_control1

DELIVERY = s_vbeln

  • TECHN_CONTROL =

TABLES

  • HEADER_PARTNER =

  • HEADER_PARTNER_ADDR =

  • HEADER_DEADLINES =

ITEM_DATA = item_data1

ITEM_CONTROL = item_control1

  • ITEM_SERIAL_NO =

  • SUPPLIER_CONS_DATA =

  • EXTENSION1 =

  • EXTENSION2 =

RETURN = ret .

Please help me.