on 08-12-2020 10:09 AM
Hi,
PLease find the scenario below.
I created a PO1 with quantity = 200 PC.
XX1 (custom movement type with spl. stock scrapping the material, similar to 101)
XX2 (custom movement type with spl. stock for reversing and scrapping the material)
101 GR done for 40. (Inbound delivery/PGI).
XX2 - Reverse GR w.r.t PO. GR done for 20 PC - Success
XX1 - GR done for 20 PC - Success
Now we have 40 PC.
XX2 - Reverse GR w.r.t PO. GR done for 25 PC - Failed
Deficit of Delivered quantity 5.000 PC : XXXXXXXX Plnt Sloc. Spl. Stck (K)
Here it is trying to post from the initial quantity recieved using 101 GR and not considering the quantity received from XX1 document
I am using BAPI_GOODSMVT_CREATE populating below fields .
GOODSMVT_ITEM: MATERIAL/ PLANT/STGE_LOC /MOVE_TYPE/SPEC_STOCK/VENDOR/ENTRY_QNT/ENTRY_UOM/PO_NUMBER / PO_ITEM/MOVE_MAT MOVE_PLANT MOVE_STLOC/MVT_IND= B/XSTOB = X/QUANTITY
Same issue while using L_IDOC_INPUT_WMMBXY during inbound IDOC processing.
Hi,
Try reading by Material document number and movement type and pass to BAPI.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abinath,
Thanks for your reply.
While posting XX2, I am picking up the latest PO created and has a GR with 101 and has open quantity.
I am passing movement type XX2 to BAPI_GOODSMVT_CREATE in strucuture GOODSMVT_ITEM-MOVE_TYP = XX2 and have to generate Mat. Doc.
Please let me know if I am not clear.
Thanks,
Srikanth.
Hi 1to100,
Sharing code can help to suggest
Hi Abinath,
PFB bapi parameters for BAPI_GOODSMVT_CREATE.
Let me know if you need anything more.
Header:
GOODSMVT_HEADER
PSTNG_DATE 08/11/2020
DOC_DATE 08/11/2020
REF_DOC_NO
BILL_OF_LADING
GR_GI_SLIP_NO
PR_UNAME XXXXXX
HEADER_TXT TEST
VER_GR_GI_SLIP
VER_GR_GI_SLIPX
EXT_WMS
REF_DOC_NO_LONG
BILL_OF_LADING_LONG
BAR_CODE
GOODSMVT_CODE 01
Item:
GOODSMVT_ITEM
MATERIAL XXXXXXX
PLANT XXXX
STGE_LOC XXXX
BATCH
MOVE_TYPE XX2
STCK_TYPE
SPEC_STOCK K
VENDOR XXXXXXX
CUSTOMER
SALES_ORD
S_ORD_ITEM 000000
SCHED_LINE 0000
VAL_TYPE
ENTRY_QNT 20.000
ENTRY_UOM PC
ENTRY_UOM_ISO
PO_PR_QNT 0.000
ORDERPR_UN
ORDERPR_UN_ISO
PO_NUMBER XXXXXXX
PO_ITEM 000XX
MOVE_MAT XXXXXXX
MOVE_PLANT XXXX
MOVE_STLOC XXXX
MVT_IND B
MOVE_REAS 0000
BAPI Return:
RETURN
TYPE E
ID M7
NUMBER 328
MESSAGE Deficit of Delivered quantity 5.000 PC : XMATX XPLANTX XSLOCX
LOG_NO
LOG_MSG_NO 000000
MESSAGE_V1 Delivered quantity
MESSAGE_V2 5.000
MESSAGE_V3 PC
MESSAGE_V4 : XMATX XPlantX XS.LocX XKX
PARAMETER GOODSMVT_ITEM
ROW 1
FIELD
SYSTEM XXXX
When you post a query and give further updates, please add the content under "Comments" and not under "Answer" as you were not answering to a query but only providing additional informations as asked by the members. Also, when you add the text under Comments, it will be intimated to the person to whom you are responding whereas, if you add the text under Answer, the member will not be intimated. By the way, your above answer has been converted as comment by me.
Hi,
I was able to resolve my issue, there was a change in Confirmation Control keys, GR Assignment field T163G-WEZUO.= 'X'.
Thankyou.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I was able to resolve my issue, there was a change in Confirmation Control keys, GR Assignment field T163G-WEZUO.= 'X'.
Thankyou.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
102 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
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.