Skip to Content
author's profile photo Former Member
Former Member

Field 'Qty in Delivery note' in MIGO using BAPI

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Sep 11, 2012 at 09:55 AM

    Hi suba,

    Are u getting any return message.

    or

    if it is urget requiremnt then go for bdc.

    Regards,

    Amol

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 11, 2012 at 11:01 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 17 at 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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.