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

Solution is to create a Z program & update the kanban qty & status.

Similar Messages

  • Function Module/BAPI for updating Document Status.

    Hi Experts,
    Is there any Function Module/BAPI available for updating the document status ?
    Thank You,
    Radhika.

    unresolved!

  • STATUS_UPDATE error to update USER STATUS - Update termination error

    Hi All,
    I am using status_update FM in sales order user exit MV45AFZZ in a perform routine for updating user status in line item for sales order. There are 4 custom statuses created for the sales order line item. 1,2 3, and 4 by configuration. My job is to select one of those based on user selection.
    Scenario: During change order process using  VA02, I have to change the existing status to a third status when user selects the second one. That is for example, in VA02, user selects status 4 from previous status 3, and save, I have to make the status 4 inactive and save the new status 2 instead of 3 though user selected 3. How do I achieve this.?  ????Any programming example is really appreciated. Thanks!!!
    I am right now using STATUS_READ and reading the existing status 4. Then making it inactive using status_update FM. And updating the new status 2 as active one and 3 as inactive again. Two inactive updates and one active update is throwing an update termination error while saving the sales order.
    Any help is really appreciated. 
    Thanks
    Ricky

    Hi ricky,
    For saving any changes you need to have a Z-table.
    In programs we can't store the user selection. In your case you can create a z-table and store the status there and delete the last status. The process would be faster as you will always have one record in the table.
    . One more advantage is you can even track the changes through the Z-table(User who is changing it.)
    Hope this solution will surely help you.
    Cheers
    Suvi

  • Badi or Exit for Update in MIGO

    Hi ,
    The requirement is whenever i am doing GRN in MIGO , the Bill of lading field in header stored in table MKPF & field FRBNR , should be automatically filled with a system genarated internal number. That is while we are posting MIGO. I will be able to see the Bill of lading number in display mode of MIGO.
    I need a BADI or exit which can update the Bill of lading field during GRN( creation of material doc).

    hi,
    try this:
    Enhancement
    MB_CF001                                Customer Function Exit in the Case of Updating
    MBCF0011                                Read from RESB and RKPF for print list in  MB26
    MBCF0010                                Customer exit: Create reservation BAPI_RESERVAT
    MBCF0009                                Filling the storage location field
    MBCF0007                                Customer function exit: Updating a reservation
    MBCF0006                                Customer function for WBS element
    MBCF0005                                Material document item for goods receipt/issue
    MBCF0002                                Customer function exit: Segment text in materia
    Business Add-in
    MB_DOCUMENT_UPDATE                      BADI when updating material document: MSEG and
    MB_DOC_BADI_INTERNAL                    BAdIs During Creation of a Material Document (S
    MB_ME_CSGMT_BADI_SAP                    BAdI: Consignment Processing - Stock Transfer
    MB_MIGO_BADI                            BAdI in MIGO for External Detail Subscreens
    MB_MIGO_ITEM_BADI                       BAdI in MIGO for Changing Item Data
    MB_PHYSINV_INTERNAL                     Connection: Core Inventory and Retail AddOn
    MB_QUAN_CHECK_BADI                      BAdI: Item Data at Time of Quantity Check
    MB_RESERVATION_BADI                     MB21/MB22: Check and Complete Dialog Data
    MB_RESERVATION_SCR                      Screen BAdI for Retrofit DFPS
    MB_RESERVATION_UPCHD                    BAdI for Creation and Changing of Manual Reserv
    MB_RES_BAPI_CHANGE                      BAdI: Execution of Changes to Reservation Field
    MB_RES_BAPI_CREATE1                     BAdI: Adoption of Customer's Own Fields as Rese
    MB_RES_BAPI_DETAIL1                     BAdI: Display of Customer's Own Fields in Reser
    MB_STOR_LOC_BADI_GTS                    BADI to Check and Change Storage Location (GTS
    MB_DOCUMENT_BADI_SAP                    BADI for Creation and Changing of a Material Do
    ARC_MM_EBAN_CHECK                       BAdI: Enhancement of Archivability Check (MM_EB
    ARC_MM_EBAN_PRECHECK                    BAdI: Enhancement of Archivability Check (MM_EB
    ARC_MM_EBAN_WRITE                       BAdI: Enhancement of Scope of Archiving (MM_EBA
    ARC_MM_EINA_CHECK                       BAdI: Enhancement of Archivability Check (MM_EI
    ARC_MM_EINA_WRITE                       BAdI: Enhancement of Scope of Archiving (MM_EIN
    ARC_MM_INVBEL_CHECK                     BAdI: Enhancement of Archivability Check (MM_IN
    ARC_MM_INVBEL_WRITE                     BAdI: Enhancement of Scope of Archiving (MM_INV
    ARC_MM_MATBEL_CHECK                     Prüfung ADD-ON-spezifischer Kriterien für MM_MA
    ARC_MM_MATBEL_WRITE                     Check Add-On-Specific Data for MM_MATBEL
    MB_CHECK_LINE_BADI                      BAdI: Check Line Before Copying to the Blocking
    MB_CIN_LMBMBU04                         posting of gr
    MB_CIN_MM07MFB7                         BAdI for India Version exit in include MM07MFB7
    MB_CIN_MM07MFB7_QTY                     Proposal of quantity from Excise invoice in GR
    MB_DOCUMENT_BADI                        BAdIs During Creation of a Material Document
    Edited by: Ierardi Leo on Jul 10, 2008 12:43 PM

  • Inbound IDoc used for updating Sales order status

    I have a requirements to set use standard IDoc to send out the Sales order to a non-SAP software as well as receiving Inbound IDoc to update the status of sales order in SAP. Could someone comment on my questions below:
    1. What are the difference between all the ORDERSxx Idoc types?
    2. What IDoc should be used for Inbound IDoc to update the sales order stataus in SAP?
    3. Can the same IDoc type be used for both Inbound and Outbound with only the difference in the segment of Direction?
    Thank you. Points will be awarded appropriately for helpful comments.

    Hi,
      1.Intially  standard IDOC types "ORDERS01"  is having limited
          segments. After few months the requirement got increased to
          add more fields to "ORDERS01".So,once you release the IDOC
          type you can not add any more fields .So SAP come up
          with "ORDERS02" with new fields.Like that all IDocs types have
          some more new seg ments.
    2.You  can use ORDER05
    3. Yes you can use same IDOC type

  • Updating Batch classification data from MIGO for Purchase order

    Hi,
    I need to update batch classification data (in MSC3n) from MIGO for purchase order. The logic needed for this is as below,
    1) Pass material and batch to MCH1 table to get CUOBJ_BM.
    2) Pass CUOBJ_BM to INOB table to get INOB-OBJEK.
    3) Pass INOB-OBJEK to CLAF_CLASSIFICATION_OF_OBJECTS to get class name & characteristic name.
    4) Pass INOB-OBJEK, CLASS name and characteristic name to BAPI_OBJCL_CHANGE to update batch classification data.
    I created implicit enhancement at the bottom of FM "CLVF_VB_INSERT_CLASSIFICATION". But the problem is, the return parameter of BAPI_OBJCL_CHANGE is giving the following error.
    Class type 023, object type MCH1, object RAW-6             0000001151
    Object is currently locked by user
    The assignment was not changed
    Please let me know how to do it. Is there any BADI or User Exit?

    Hi,
    As you said the break point is not triggering did you activate your exit and activated even the project to which your exit is assigned.
    I hope you missed activating your project in CMOD transaction. Please verify it once and if it is not activated then immediately activate it and try debugging again.
    Regards,
    Rafi

  • Mass updates for Notification/Workorder status

    Is there any way for Mass update of 'status' because orders and notifications need to be un-teco before updating planner groups and work centers? we are using Mass update for IW58,IW38 & IW29 and there is no option for STATUS update.

    Thanks everyone for there response. I'll check the possiblity to add a button in IW28 for the closed notificaitons via any of the below BADIs:
    BADI_EAM_RIQMEL20_FCODE_CUS1 : Implement Customer Function Code in Notification List
    BADI_EAM_RIQMEL20_FCODE_SAP1 : Implement SAP Function Code in Notification List
    and for Work Order:
    BADI_EAM_RIAUFK20_FCODE_CUS1 :Implement Customer Function Code in Order List
    BADI_EAM_RIAUFK20_FCODE_SAP1 :Implement SAP Function Code in Order List
    In IW28 & IW58 there is option u201CPut in Processu201D in Notification Menu, but when I used this option  it says u201CNotification is completed -> can only be displayedu201D. I wonder why this option is not working if Notification is completed.

  • Reg:BAPI for updation of Progress parameter and status profile

    Hi,
    Can anybody suggest name of BAPI used for updating "progress parameter" & "Status Profile" in actvity.
    With Regards
    Rohit Prakash

    Hi Ammar,
    I have checked both BAPI but BAPI are not working as per our requirement.
    Firstly we wanted to update progress parameter like measurement method(progress version,method plan,method actual) & POC weight into activity but as per BAPI given by you there is no any field available related to measurement method(progress version,method plan,method actual).
    And secondly we wanted to update status profile residing in Activity tab not in network header or WBS.
    Waiting for some more input related to  query.
    With Regards
    Rohit Prakash

  • Filling a characteristic with quantity of MIGO for a purchase order

    Hi everyone,
    I have the following issue.
    I have a class Z_BATCH and an assigned characteristic Z_BATCH_LENGHTS.
    My material has a UoM in "mm" and the class is assigned to it.
    What I want to do, is to automatically fill the characteristic Z_BATCH_LENGHTS according to the quantity that is entered during MIGO for a purchase order for example. I tried to define the refereence field in the characteristic definition using GOITEM-ERFMG or MSEG-ERFMG but without success.
    So my question is, how can I automatically fill the quantity into the characteristic?
    Thank you!
    Florian
    Edited by: Florian Preuss on Apr 22, 2009 11:49 AM

    Done by using an user-exit in MIGO to fill the lenghts to the characteristics.

  • Migo GR subcontracting 543 error quantity for BOM

    Hello,
    i have a BOM with 1 material and with quantity 1 to 1.
    i have a schedule agreement....
    we use ME2O for subcontractor send composant...
    when i use migo for reception...i have a problem with the quantity of composant
    for exemple
    BOM
    Maratial A ==> Material B with quantity 1 to 1PC
    at Migo
    code movement 101 ==> Material A =10PC
    code movement 543 ==> Material B = 2PC
    why i have this error?
    BOM has no  modification and as universal BOM( code 3)...
    some others reception= ok
    thx a lot
    Edited by: Driss Ait-hassoun on Mar 21, 2011 4:21 PM

    Hi All
    Is it right that the MIGO will try to make the GR into the same storagelocation as it was send from.
    the sceneraio is that I have send some goods from our main storage location and want to do the GR in our GR storagelocation, but when I try to make a GR in MIGO there is two lines one for GR into main storage and one for GR into GR storage location
    Is this normal or did I need to change anything, the problem is that I got a error if I try to GR into main storage.
    Jakob

  • Steps For Updating the IDOC Status using ALEAUD

    Hi all,
    My Scenario  is : R/3(IDOC)--> Legacy System(File).After the IDOC is received successfully on the Receiver System.I should Update the Status of IDOC on the Sender System.
    Can anyone help me out :
    What all the Steps & Configurations involved for Sending an Acknowledgement & Updating the IDOC status  from the Legacy System.
    Thanks in Advance,
    Dattatreya.

    Hi,
      You may need to set up another flow (a reverse one), where the Legacy sends a msg to XI with the Idoc number of the initial idoc you sent (onward flow).
      now, you can map the idoc number in E1ADHDR/E1STATE/DOCNUM and other statuses as required (in various tags) and also other information as per your environment. Pls see the below links
    Re: Acknowledgements ever switch to Status 39
    Re: Asyncronous acknowledge from file adapter
    Re: R3<->XI<->Auto-ID:How to check result of Idocs sending out from R3 in aii ?
    Regards
    Vishnu

  • Updating a PM notification for a user status

    Hey Guys,
    Can I get a FM or BAPI for updating a PM notification. I tried BAPI_SERVNOT_CHANGEUSRSTAT but that's used for updating the service notification.
    Thanks

    Hi Sheldon Rogers ,
         We used the FM "ALM_ME_ORDER_USERSTATUS_CHANGE" for changing the user status of the notifications in PM. Try this and let me know if you have issues still.
    Thanks,
    Greetson

  • LSMW Custom program for updating picked quantity in outbound delivery

    I have been tasked with creating an LSMW that will update the picked quantity in an outbound delivery.  I originally thought of using a recording on transaction vl02n, but I need the LSMW to work with variable amount of item lines. 
    Through some research I figured out that FM WS_DELIVERY_UPDATE_2 can update the picked quantity.  I have successfully created a custom program that calls this FM. 
    I have created what I believe to be the correct entries in the SXDA0, SXDA1, SXDA2, and SXDA3 tables to make my custom program work with LSMW.  I am able to find my program in the "Maintain Object Attributes."  I am also able to "Maintain Structure Relations Step" (screen shot attached)  I am currently using VBKOK and VBPOK for the header and line item structures respectively. 
    My difficulty is converting the data.  I have tried everything from having no conversion rules to mapping many fields and I always receive the following error (screen shot also provided).
    Error analysis
    The statement
         "Move src TO dst"
    requires that the operands "dst" and "src" are convertible.
    Since this statement is in a Unicode program, the special conversion
    rules for Unicode programs apply.
    In this case, these rules were violated.
    Program /SAPDMC/SAP_LSMW_CONV_FORMS
    Include  /SAPDMC/SAP_LSMW_CONV_FORMS
    Row 1,080
    Module type (FORM)
    Module Name TRANSFER_RECORD
    Since I have run the conversion with no conversion rules I am very confused as to why I am still receiving this error.  Any insight would be greatly appreciated.

    For anyone I have uncovered some interesting things about my issue.  I started going through the conversion code piece by piece trying to figure out what data element the system was choking on. 
    After digging though the program and using the debugger I found out that the issue was in FORM transfer_record. 
    ASSIGN (g_record) TO <l_record>.
         CASE g_objecttype.
           WHEN '01' OR '02'.
             gt_buffer-record = g_record.
             gt_buffer-data = <l_record>.
             APPEND gt_buffer.
    If this LSMW was working
    g_record = 'VBKOK'
    <l_record> = 'VBKOK'
    But what is actually happening
    g_record = 'VBKOK'
    <l_record> = "Structure of some sort
    I do not know why this is happening since the field symbol is being assigned right before this piece of code.  Any suggestions are greatly appreciated.

  • Why does my iPad 4 keep update requested status for ios8?

    Why does my iPad 4 keep update requested status for ios8?

    The Apple servers are slammed right now with iOS 7 downloads AND activation requests.
    Be patient and try again later.

  • Essbase Analytics for HFM- Data Update Agent Status

    Hi,
    In Essbase Analytics for HFM, Data Update Agent status is showing 'Not Active', so as 'Analytic Link Data' status.
    The Start/Stop option for the same is disabled. Other connectivity statuses in Bridge are all 'Available'.
    What needs to be done to make Data Update status 'Active'.

    Hi HP,
    The Essbase Analytics Link and HFM needs to be registered with the same Shared Services. Hope you are doing the same.
    Thanks & Regards
    Sandy

Maybe you are looking for