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

MIGO for updating Kanban Status & quantity

Hi Experts,

The requirement is to update the Qty & Status during POSTing in MIGO if the material is Kanban managed.

Requirement :

Scrapping using 551/ 552 should accordingly increase/ decrease the Kanban Qty and modify the status (visible in PK31 and PKPS table)

Approach:

1. Implemented BADI "MB_MIGO_BADI" & called the FM to update Kanban status & Qty. But got the error of COMMIT_IN_POSTING.

2. Used EXIT_SAPMM07M_001 to call FM "BAPI_KANBANCC_WITHDRAWQUANTITY" but still the same error

3. Implemented BADI "MB_DOCUMENT_BADI" but faced the same error.

Any pointers to user-exit/badi which would help to fulfill the above requirement.

Also let me know, if the approach should be changed.

Thanks,

Best regards,

Prashant

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Jun 30, 2008 at 01:20 PM

    Prashant,

    am not sure this BADi or BApiwould work for you or not but you can look at this also:

    MB_MIGO_ITEM_BADi.

    BAPI_INCOMINGINVOICE_CHANGE

    Amit.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 01, 2008 at 03:24 AM

    Hi Amit,

    This doesnt work. It gives the same error.

    Has anyone worked on a similar requirement to update Kanban status in MIGO. Please let me know the approach for the same.

    If a BADI is called in UPDATE TASK, then how to call other Function Modules (FM which has commit work inside it) in the BADI ?

    Thanks,

    Best regards,

    Prashant

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi ,

      1.Dont do any COMMIT work in BADI , just check for any errors in RETURN table, any how its on Update Task , commit work will take place later on.

      2.If above logic wont then , create a Implicit Enhancement after processing the BADI , and put ur logic over there.

      Regards

      Prabhu

  • Posted on Jul 01, 2008 at 05:21 AM

    Hi Prabhu,

    1. Since the Commit Work is inside the FM, there is no way to comment it.

    2. Could you please elaborate on this.

    Thanks,

    Best regards,

    Prashant

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Prasanth ,

      i mean to say is

      Method BADI.

      call 'BAPI'.

      as per standard procee , we need to wtite COMMIT WORK after the BAPI , but in this case dont commit the work , BAPI also wont COMMIT the changes on it own.

      Endmethod.

      normal BAPI call.

      call 'BAPI'.

      if return[] is initial.

      commit work. ---> but in BADI dont give this one, that it, lets try and let me know in case of any errors , so that we can go for another option.

      endif.

  • Posted on Jul 01, 2008 at 06:27 AM

    Hi Prabhu,

    This didnt work either 😔

    Since COMMIT WORK inside MIGO is standard SAP code, i couldnt comment it.

    Any other alternative solution ?

    Thanks a ton,

    Best regards,

    Prashant

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi ,

      Can u check this include LMIGOKG1 , put a break point here , as per codiing , it says here its going to commit the work.

      i think u can make use of it .

      regards

      Prabhu

      Edited by: Prabhu Peram on Jul 2, 2008 3:09 PM

  • Posted on Aug 13, 2008 at 06:28 AM

    Inserted the record in Z Table in the BADI & created another program to call the BAPI to process the records from Z table.

    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.