Hi experts,
have an inbound delivery I want to return to vendor.
Easy - MIGO, use material document, check, post...
Unfortunatelly, it's not working for all inbounds.
In my case, I have a PO with one position, 2 ASNs are created (sum is 4000 pcs, I have 1 ASN with 1000, one with 3000)
I enter the material document for GR of the first, press check button in MIGO and get error VL 319 "Return delivery qty greater than previously GR-posted qty: &1/&2"
Now I tried to debug, found out that somehow qty from VBFA (RFMNG_FLO) is compared against qty I want to return.
In my case - this field is empty! It's the Referenced quantity in sales unit (float). Also the field for the UoM (VRKME) is empty. Checked material master, there's no qty maintained for purhasing (MARA-BSTME) is maintained.
Not sure if this causes the error?
Any ideas?
Thanks
Michael
Aaaargh! Found the real problem!
This plant is posting GR with a Z report.
First BAPI_GOODSMVT_CREATE for posting, then SD_DELIVERY_UPDATE for writing the document flow.
And the second one to update document flow missed the field RFMNG_FLO :-( So the field is never updated in VBFA...
Have corrected coding, now working!
Thanks all for your suggestions.
Regards
Michael
Hi, If you are using a PO every thing needed to get posted as PO history . Have a look over it and see how much quantity is received and based upon it you reverse the quantity . Does your ASNs posts a PGR for the delivery created for the PO ? How much quantity you are tryiing to return . Simplae logic do not exceed the return quantity more than the alreday made the GR quantity . with your inbound delivery document are you going to return to vendor ? Regards,
Add a comment