Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Field 'Qty in Delivery note' in MIGO using BAPI

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.

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?

Can any one help me to pass these values through BAPI

Thanks & Regards,

Subba.R

9 REPLIES 9

amol_samte
Contributor
0 Kudos

Hi suba,

Are u getting any return message.

or

if it is urget requiremnt then go for bdc.

Regards,

Amol

0 Kudos

Hi ,

Thank you for your reply.........

you said go for BDC ,but For MIGO is an enjoy transaction BDC i s not recommended .So through that BAPI we can get Any other way....?

Thanks & Regards,

Subba.R

0 Kudos

Please go thro' documentation it might help u.

Regards,

Amol.

0 Kudos

I tried that one also ,through that i did't get any information regarding my issue.

Regards,

Subba.R

Former Member
0 Kudos

Hi

check the fields whether you are passing are correct or not, try to find parameters which refer to your required field in bapi again

may be that is the problem.

0 Kudos

Hi,

thank you for your reply,

i searched all the things,i didn't find the related to 'Qty in Delivery note' field in that BAPI.

Any other solution............

Regards,

Subba.R

0 Kudos

Hi

check the bellow thread which wis related to same issue having solution. hope it will help you in providing solution.

http://scn.sap.com/thread/100526

0 Kudos

Hi goutham ,

thanks for your Suggestion.

http://scn.sap.com/thread/100526 

through the above link i got information for updating 'Delivery note' only,But i want to update 'Qty in Delivery note' in MIGO .Any other information regarding this pls suggest me....

Thanks & Regards,

Subba.R

0 Kudos

I was facing the same problem, trying to update fields LSMNG and LSMEH using BAPI_GOODSMVT_CREATE. SAP even released a note regarding this issue: 1883262 - Fields MSEG-LSMNG - 'Quantity in unit of measure from delivery note' and MSEG-LSMEH - 'Unit of Measure From Delivery Note' can not be filled with BAPI_GOODSMVT_CREATE -- according to that, there is no possibility to update these fields using BAPI.

However, I have found a solution which is very simple. You can use table EXTENSIONIN (BAPIPAREX) to pass values into BADI: MB_BAPI_GOODSMVT_CREATE (EXTENSIONIN_TO_MATDOC). So, using logic to update custom structure, you can update both mentioned fields. In order to that I have created custom structure based on key from BAPI_TE_XMSEG but including standards fields.

Solution has been tested and used on S4.

Regards,

J.