09-11-2012 10:50 AM
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
09-11-2012 10:55 AM
Hi suba,
Are u getting any return message.
or
if it is urget requiremnt then go for bdc.
Regards,
Amol
09-11-2012 11:49 AM
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
09-11-2012 11:54 AM
09-11-2012 11:58 AM
I tried that one also ,through that i did't get any information regarding my issue.
Regards,
Subba.R
09-11-2012 12:01 PM
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.
09-11-2012 12:45 PM
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
09-11-2012 1:28 PM
Hi
check the bellow thread which wis related to same issue having solution. hope it will help you in providing solution.
09-13-2012 1:11 PM
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
03-17-2020 10:36 AM
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.