I am using BAPI_GOODSMVT_CREATE for posting GRN against Purchase Order.
I want to post Quantity in Delivery note(LSMNG) and Unit of Measure From Delivery Note(LSMEH) also.
I used itab-QUANTITY = '1'.
itab-BASE_UOM = 'L'.
but it is not getting updated properly.
Can any one help me to pass these values through BAPI
Thanx for your reply.I couldn't get any information from the provided note.I am getting document number and GRN has been done against Purchase Order using this BAPI.All other fields are properly getting updated except these 2 fields Qty in delivery note and unit of delivery note. Can i pass these 2 field values using this BAPI or do I need to use any other BAPI. Is there any BAPI for MIGO instead of MB01?
I think that perhaps this text helps you:
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.
Other question. Set a break-point when the BAPI finishs, and check the info in RETURN (type BAPIRET2) to be aware the type of error that you have.
See also SAP Note 131838 - Collective note for BAPIs w/ 'Commit Work' command.
I hope this helps you
I passed these values also but of no use. While calling this BAPI, the transaction code displayed under Doc.info tab is MB01 instead of MIGO_GR. Do I need to use any other BAPI?
Stock is properly getting updated but only qnty in delivery note and its UOM is missing.
How to maintain these values through BAPI?
I am passing following values in BAPI
gm_code = '01'
move_type = '101'
mvt_ind = 'B'
entry_qnt = '1'.
entry_uom = 'L'.
entry_uom_iso = 'L'.
quantity = '1'.
base_uom = 'L'.
ref_doc_yr = '2012'
no_more_gr = 'X '
Do I need to pass any other values?
can i use MB_CREATE_GOODS_MOVEMENT BAPI?
hi, are you sure these fields are under BAPI2017_GM_ITEM_CREATE structure, I could not find them..however, i can see delivery qty and UOM under BAPI2017_GM_ITEM_CREATE1 structure
also check below thread
Edited by: Yogesh Lohiya on Jan 11, 2012 6:15 AM
I searched for BAPI2017_GM_ITEM_CREATE1 and couldn't find it.
Can you pls guide me if we didn't maintain Qty in Delivery note field, will it have any effect on any other transaction?
I checked MSEG table and found many of the PO's without this value. User may sometime skip this value. But since we are using BAPI, we are not sure whether it will affect our system in future?
Pls clear my doubts so that I can go ahead with this BAPI.
Thanx for your reply.I am able to do GRN entries.But when i try to post GRN for same PO next time system is not picking this PO number using POPUP_GET_VALUES.
I am passing PO Number suing this Function module.First time the PO# gets populated but after doing GRN using BAPI, this PO# is not displayed.How to rectify this problem?