cancel
Showing results for 
Search instead for 
Did you mean: 

Return delivery error --> wrong document flow?

08-23-2016 1:35 PM
michael_fallenbchel Active Participant
2182 views 8 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

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

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

michael_fallenbchel
Active Participant
0 Likes

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

Answers (1)

Answers (1)

former_member197616
Active Contributor
0 Likes

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,

michael_fallenbchel
Active Participant
0 Likes

Hi,

real data:

PO qty - 4002 pcs

ASN 1 - 720 pcs

ASN 2 - 2004 pcs

ASN 3 - 1278 pcs

--> sum is fine

GR 1 - 720

GR 2 - 2004

Now I want to reverse the 720:

MIGO - A02 - R02 with material document

Error "Return delivery qty greater than previously GR-posted qty: 4500.../01"

Error can't be correct, rest is in, document flow seems to be fine - except VBFA-RFMNG_FLO which is empty, rest (RGMNG/RFMNG_FLT) is correct with 720 pcs...

former_member233510
Active Contributor
0 Likes

Hi Michael,

Use VL09 for reversal.

BR, Rosh.

michael_fallenbchel
Active Participant
0 Likes

Hi Rosh,

tried - no error message, empty protocoll, but still posted GR 😞

If I check for material documents that can be cancelled - empty list

Regards

Michael

Former Member
0 Likes

This message was moderated.

former_member197616
Active Contributor
0 Likes

Hi, Some times what will happen is as soon as the GR is taken in stores will utilize that qty and try check the MMBE as well as the MB51 for that material any issues happened after the GR . Regards

michael_fallenbchel
Active Participant
0 Likes

Hi Mohammed,

coming from external vendor.

When doing the A02 Return Delivery R02 Material Document with MIGO, it's using the 122, so should be fine.

The most interesting part for me is VBFA -> when having 2 ASNs for one Purchase order, field RFMNG_FLO is empty. When I have only 1 ASN then field is filled with correct qty. Seems like something in document flow is wrong?

Regards

Michael