on 09-24-2012 3:06 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
12 | |
4 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.