on 12-12-2012 2:43 AM
Hi There,
We are now implementing BAPI_GOODSMVT_CREATE. A strange thing is that we met error M7021 when doing a normal goods return.
We use BAPI to GR and reverse GR. We can do it for twice and get error above. For example, GR -> reverse GR -> GR -> reverse GR -> error. If we do the GR with MIGO, then there is no error. Is there anyone has the same experience?
Hi,
Seems system could not find the correct reference document information.
Can you please check note 520813-7:
7. 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 invoice verification is active, and the item
in the purchase order may have already been cancelled once.
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.
Can you please try the suggested solution as above?
Thanks and regards,
Polly
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.