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

Inbound delivery - Goods receipt - batch split - function WS_DELIVERY_UPDATE

Former Member
0 Likes
2,201

Hi,

I hope, anybody of you guys could help me out of trouble with our Goods receipt issue.

We have incoming IDOCs, that should update the inbound delivery documents with the use of batch split. There is already some development, but we are facing the error message in the IDOC "Putaway quantity cannot be less than GR posted quantity":

My test delivery looks like this:

My test IDOC contains only one item with the quantity 2:

First, the function WS_DELIVERY_UPDATE is called like this:

The value of im_vbkok:

VBELN_VL                                  4008238048

The values of lt_vbpok_bs:

row1:

VBELN_VL                                  4008238048
POSNR_VL                                  000010
VBELN                                  4008238048
POSNN                                  000010
VBTYP_N                                 
MATNR                                  000000000000330460
CHARG                                 
WERKS                                  G101
TAQUI                                 
KZNTG                                 
KZBRG                                 
KZVOL                                 
LIANP                                 

row2:

VBELN_VL                                  4008238048
POSNR_VL                                  000010
VBELN                                  4008238048
POSNN                                  000010
VBTYP_N                                 
MATNR                                  000000000000330460
CHARG                                  BATCHTEST1
WERKS                                  _____
TAQUI                                 
KZNTG                                 
KZBRG                                 
KZVOL                                 
LIANP                                  X
LFIMG                                  4.000
WMS_RFBEL                                  4008238048
WMS_RFPOS                                  900001

The function is being called with RC = 0

Now, the function is being called again, but only with the batch split item 900001:

VBELN_VL                                  4008238048
POSNR_VL                                  900001
VBELN                                  4008238048
POSNN                                  900001
VBTYP_N                                 
MATNR                                  000000000000330460
CHARG                                  BATCHTEST1
WERKS                                  _______
TAQUI                                 
KZNTG                                 
KZBRG                                 
KZVOL                                 
LIANP                                  X
LFIMG                                  4.000

In the delivery I can see the batch split item and the delivery amount is also being deducted by 2:

But the next IDOC with the amount of 2 will fail with the error mentioned above:

Can anybody see, what is wrong in the way, this has been done here? Do I somehow need to change it to only one function call of WS_DELIVERY_UPDATE. If so, how should it be called in my case?

Thank you very much for any help!

Michael

Hi,

I hope, anybody of you guys could help me out of trouble with our Goods receipt issue.

We have incoming IDOCs, that should update the inbound delivery documents with the use of batch split. There is already some development, but we are facing the error message in the IDOC "Putaway quantity cannot be less than GR posted quantity":

My test delivery looks like this:

My test IDOC contains only one item with the quantity 2:

First, the function WS_DELIVERY_UPDATE is called like this:

The value of im_vbkok:

VBELN_VL                                  4008238048

The values of lt_vbpok_bs:

row1:

VBELN_VL                                  4008238048
POSNR_VL                                  000010
VBELN                                  4008238048
POSNN                                  000010
VBTYP_N                                 
MATNR                                  000000000000330460
CHARG                                 
WERKS                                  G101
TAQUI                                 
KZNTG                                 
KZBRG                                 
KZVOL                                 
LIANP                                 

row2:

VBELN_VL                                  4008238048
POSNR_VL                                  000010
VBELN                                  4008238048
POSNN                                  000010
VBTYP_N                                 
MATNR                                  000000000000330460
CHARG                                  BATCHTEST1
WERKS                                  _____
TAQUI                                 
KZNTG                                 
KZBRG                                 
KZVOL                                 
LIANP                                  X
LFIMG                                  4.000
WMS_RFBEL                                  4008238048
WMS_RFPOS                                  900001

The function is being called with RC = 0

Now, the function is being called again, but only with the batch split item 900001:

VBELN_VL                                  4008238048
POSNR_VL                                  900001
VBELN                                  4008238048
POSNN                                  900001
VBTYP_N                                 
MATNR                                  000000000000330460
CHARG                                  BATCHTEST1
WERKS                                  _______
TAQUI                                 
KZNTG                                 
KZBRG                                 
KZVOL                                 
LIANP                                  X
LFIMG                                  4.000

In the delivery I can see the batch split item and the delivery amount is also being deducted by 2:

But the next IDOC with the amount of 2 will fail with the error mentioned above:

Can anybody see, what is wrong in the way, this has been done here? Do I somehow need to change it to only one function call of WS_DELIVERY_UPDATE. If so, how should it be called in my case?

Thank you very much for any help!

Michael

1 REPLY 1
Read only

Former Member
0 Likes
1,554

Hi,

I think 900001 accepts only 2 quantity only because it contains delivery quantity is 2 only..!

VBELN_VL                                  4008238048
POSNR_VL                                  900001
VBELN                                  4008238048
POSNN                                  900001
VBTYP_N                                 
MATNR                                  000000000000330460
CHARG                                  BATCHTEST1
WERKS                                  _______
TAQUI                                 
KZNTG                                 
KZBRG                                 
KZVOL                                 
LIANP                                  X
LFIMG                                  2.000

Hopes its helps you.

Thanks,

Ashok.