cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_GOODSMVT_CREATE (GM_Code 07)

Former Member
0 Kudos

GM_Code 07: Subsequent adjustment with regard to a subcontract order

If PO don't have GR cancel history, this BAPI works well.
But, if PO have GR cancel history, BAPI generates an error message.
"Goods receipt quantity of ordered material in a subcontractorder is 0"


PO was canceled once and then GR again. PO has GR Quantity.

I don't know why BAPI generates an error message

PO : 4500002466
09.21 GR
09.21 GR Cancel
09.21 GR


I use following BAPI.


BAPI : BAPI_GOODSMVT_CREATE
(GOODSMVT_HEADER)
     PSTNG_DATE 2012.09.11
     DOC_DATE 2012.09.11

(GOODSMVT_CODE)
     GM_CODE 07

(GOODSMVT_ITEM)
(1)
     MATERIAL VMS9010MD_T03
     PLANT 1110
     MOVE_TYPE 121
     PO_NUMBER 4500002466
          PO_ITEM 00010
     WITHDRAWN X
     LINE_ID 000001

(2)
     MATERIAL VMS9010MD_S01
     PLANT 1110
     ENTRY_QNT 1.000
     PO_NUMBER 4500002466
     PO_ITEM 00010
     WITHDRAWN X
     LINE_ID 000002
     PARENT_ID 000001
     LINE_DEPTH 01

Accepted Solutions (1)

Accepted Solutions (1)

former_member197994
Active Contributor
0 Kudos

Hi Hye-young,

I guess the error here is message M7 385.

The system will check that the total quantity received for
the finished material is different than zero in the corresponding
GR/IR assignment block.
For this, you need to consider:

- The GR/IR assignment block.
- And, inside the GR/IR assignment block, only those documents which
  affect the received quantity of the finished material. Do not
  consider here invoices, consumptions of the component...

If the document that you take as reference for the BAPI is the reference
document of the GR/IR assignment block in which the quantity received
for the finished material is different than zero, you will not receive
the error message M7 385.

Best regards,

Tiemin

Former Member
0 Kudos

Thnaks, Tiemin.

Yes... error message is M7 385.

What is GR/IR assignment block?

Where Can I find GR/IR assignment block?

PO was canceled once and then GR again.

So....PO has GR Quantity. Finished material is not zero.

I don't know what problem is.

former_member197994
Active Contributor
0 Kudos

Hi Hye-young,

I think it over... 

Please check if the PO to which this adjustment refers,
has the "GR-based IV" indicator set  at item level.
Then the following fields must also be transferred:

REF_DOC_IT (LFPOS): Item of a reference document
REF_DOC (LFBNR): Document number of a reference document
REF_DOC_YR (LFBJA): Fiscal year of a reference document
Only when you transfer these fields is it guaranteed that the reference
to the original goods movement stays the same.

I hope this can be of help.

Best regards,

Tiemin

Former Member
0 Kudos

Hi, Tiemin.

I modified the program as you said, the problem is solved.

Your explanation was very helpful.

Thanks for your help.

former_member197994
Active Contributor
0 Kudos

Hi Hye-young,

It's my pleasure to be of help.

Best regards,

Tiemin

Answers (0)