Application Development and Automation 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: 
Read only

error while using BAPI_OUTB_DELIVERY_CHANGE

Former Member
0 Likes
6,131

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.

11 REPLIES 11
Read only

Former Member
0 Likes
3,418

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

Read only

Former Member
0 Likes
3,418

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

Read only

0 Likes
3,418

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.

Read only

Former Member
0 Likes
3,418

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.

Read only

Former Member
0 Likes
3,418

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.

Read only

0 Likes
3,418

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

Read only

0 Likes
3,418

Hi Umesh,

I am gettting same error . how did you resolved this issue.

Thanks in Adv

Read only

0 Likes
3,418

Hi Umesh,

I am gettting same error . how did you resolved this issue.

Thanks

Read only

3,418

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

Read only

0 Likes
3,418

Thank A lot.

Read only

0 Likes
3,418

Thanks, man!