‎2006 Apr 26 12:41 PM
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.
‎2006 Apr 26 12:44 PM
Umesh,
May be your Qty is beyond the qty ordered in the sales order. Check that.
Regards,
Ravi
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 10, 2008 11:51 AM
‎2006 Apr 26 12:57 PM
make sure your item1 and item2 quantity sum should be equal to your header level quanity.
adjust the quanitites in such a way that their sum equals to header level quantity.
Regards
vijay
‎2006 Apr 26 1:30 PM
Hi Vijay,
I m using only 1 item and I m changing the header qty and the batch split item qty with same value.
So according to me I m setting header qty and the item qty with same value.
‎2006 Apr 26 2:11 PM
Hello Umesh,
The error is being raised from following FM. Put a breakpoint on this and debug. It should give u solution...
FM SHP_QUANTITY_CONSISTENCY_CHECK in program LV50IF01. This is raising error greater than 3.
‎2006 Sep 18 10:53 AM
HI umesh,
i want to use same bapi..can u please send me the whole code if u r sucessfull in using this bapi..it will be great help from ur side.can i get ur cell number?so that i can call u directly.
thanks in advance,
manish khare.
‎2007 Mar 01 2:59 AM
Manish Khare ,
also i have this problem ,if you have test successful ,
could sent an example code to me,
my Email: <REMOVED BY MODERATOR>
thanks .
xionghua
Edited by: Alvaro Tejada Galindo on Apr 10, 2008 11:53 AM
‎2007 Jun 01 6:58 PM
Hi Umesh,
I am gettting same error . how did you resolved this issue.
Thanks in Adv
‎2008 Mar 10 7:57 AM
Hi Umesh,
I am gettting same error . how did you resolved this issue.
Thanks
‎2008 Apr 10 4:48 PM
Hi friends, this can be solved setting values for the following additional parameters of structure ITEM_DATA.
FACT_UNIT_NOM = 1.
FACT_UNIT_DENOM = 1.
This works for me, please let me know if this works for you!
Regards
Leonardo
‎2016 Apr 07 11:39 AM
‎2023 Sep 26 4:22 PM