cancel
Showing results for 
Search instead for 
Did you mean: 

E M7 Deficit of PU GR quantity 5

Former Member
0 Kudos
971

hi friends.

hope your doing good .

I am facing a problem when i use " BAPI_GOODSMVT_CREATE". i am getting an error message as " Deficit of PU GR quantity".

i have seen the material quanitity it is sufficient for positing the GR.

what will be the resone for this plz let know the solution.

thanks in advance.

~YSR.

Edited by: ysr@jay on Feb 24, 2010 3:51 PM

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

closed

Former Member
0 Kudos

Hi YSR,

I am facing same issue. Please let me know if you have solution for this problem.

JL23
Active Contributor
0 Kudos

you cannot do with a BAPI waht is forbidden in a online transaction.

Talk to your MM consultant, he can tell you what needs to be done.

JL23
Active Contributor
0 Kudos

you are doing a cancellation or a return, right?

you cancel more with reference to a certain PO than you had received before.

this is not possible.

you can only cancel as much as you had received.

Please check the PO history tab.

Former Member
0 Kudos

hi

thank you for your quick response..

i am reversing the GR with movement type '102' when i am doing first time it is working fine

when i am doing 2nd time it is not working it is giving the above error message

eg

total po quantity is 20

using movt 101 postted 10 quantity .

using movt 102 postted -10 quantity . for reversal " in this case it is working

using movt 101 postted 5 quantity .

using movt 102 postted -5 quantity . for reversal ' in this case FM is not working and it is giving the above error .

using movt 101 postted 10 quantity .

~ysr .

JL23
Active Contributor
0 Kudos

try it manually in MIGO, just to see if it reacts differently

Former Member
0 Kudos

Hi,

See the note 520813 - FAQ: BAPIs for goods movements you have to populate the information about material document

Regards

Edited by: jordis on May 12, 2010 12:20 PM

furlan
Participant
0 Kudos

It worked for me! Thanks!

In the OSS Note 520813, you can find follow text:

-

-


7. Question:

When I try to post a goods receipt for the purchase order using a BAPI, the system displays error message M7 021 'Deficit of & & & &'. The goods-receipt based verification is active, and the item in the purchase order may have already been cancelled once.

Which fields do I have to fill when calling the BAPI to avoid this error?

Answer:

In this case, you must also transfer fields LFBJA, LFBNR and LFPOS from the purchase order history (table EKBE); otherwise, the system cannot find the correct document. For more information, see Note 109396. Even though this note refers to an IDoc processing, the same logic also applies to BAPI_GOODSMVT_CREATE.

Fill fields GOODSMVT_ITEM-REF_DOC_YR, GOODSMVT_ITEM-REF_DOC and GOODSMVT_ITEM-REF_DOC_IT in the BAPI interface and test the system behavior again.

-

-


Just fill up GOODSMVT_ITEM-REF_DOC_YR, GOODSMVT_ITEM-REF_DOC and GOODSMVT_ITEM-REF_DOC_IT fields and bing!

Regards

Flávio Furlan