cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_GOODSMVT_CREATE

Former Member
0 Kudos

Hi Experts,

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

Regards,

Sam

Accepted Solutions (1)

Accepted Solutions (1)

eduardo_hinojosa
Active Contributor
0 Kudos

HI

See SAP Note 520813 - FAQ: BAPIs for goods movements, question 7.

I hope this helps you

REgards

Eduardo

Former Member
0 Kudos

Hi E_Hinojosa,

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?

Regards,

Sam

eduardo_hinojosa
Active Contributor
0 Kudos

Hi Sam,

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

Regards

Eduardo

Former Member
0 Kudos

Hi Eduardo,

I cannot fill GOODSMVT_ITEM-REF_DOC and GOODSMVT_ITEM-REF_DOC_IT since I am making GRN based on Purchase Order Number. Once GRN is posted then only we will get document Number.

Regards,

Sam

nabheetscn
Active Contributor
0 Kudos

Hi Sam,

In the above fields you need topass the reference document such as PO number and line item number and its category... It is is basically an indicator against which object we are doing GRN..

Nabheet

Former Member
0 Kudos

Hi Nabheet,

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?

Regards,

Sam

nabheetscn
Active Contributor
0 Kudos

What GM_Code you are passing to BAPI...?Please read the documentation of BAPI also for more details

Nabheet

Former Member
0 Kudos

Hi Nabheet,

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?

Regards,

Sam

Former Member
0 Kudos

Hi Experts,

Please provide a solution for the issue.

I tried to pass values in QUANTITY & BASE_UOM fields oof Table BAPI2017_GM_ITEM_CREATE

Eventhough these fields are not getting updated.

Pls help me to resolve this issue.

Regards,

Sam

former_member221541
Contributor
0 Kudos

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

yogesh

Edited by: Yogesh Lohiya on Jan 11, 2012 6:15 AM

Former Member
0 Kudos

Hi Yogesh,

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.

Regards,

Sam

former_member221541
Contributor
0 Kudos

Sam, are you creating inbound delivery against your PO and using vendor confirmations / confirmation control key in your PO item details? if not then you are good, this field is not needed.

yogesh

Edited by: Yogesh Lohiya on Jan 11, 2012 7:44 AM

Former Member
0 Kudos

Hi Yogesh,

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?

Regards,

Sam

Former Member
0 Kudos

Actually I was using NO_MORE_GR = 'X'.Hence Delivery completion was automatically happening.I removed this code before calling BAPI and now my problem is resolved.

Regards,

Sam

Former Member
0 Kudos

Hi,

how can i search SAP notes, is there any site for SAP Notes.

Please help me.

Thanks  & Regards,

Subba.R

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi sam,

have you Solved your problem .if yes i am lucky ,now i am getting the same problem in MIGO Qty in Delivery note not updated through BAPI BAPI_GOODSMVT_CREATE.

So please tell me the solution.  it should be reward.

Thanks & Regards,

Subba.R