2014 Dec 15 1:43 PM
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
2014 Dec 15 2:43 PM
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.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |