QM related to MIRO

please help me ....
in the Make to order industry.
Let us assume i have Pur order No for 10 qty.
then i done MIGO for all the Item and Qty. 10.
(for this material QM is activated and Qm procu also activated and QM control key 0007 is assigned to the material master.)
after Doing the MIGO the stock is laying in th Quality.
Mean while Our FI personnel done MIRO for the same.
but after conpletion of the result recording i come to know that there is a fuilt in the material
so i am planning to post the material back to the Vendor.
(Return Delivery) through UD Stock posting Screen.
But the system not allowing to do so.
Because MIRO is already done..
Please suggest me How to block the FI personnel not to do MIRO untill Quality clearence .
thanx in advace.
Thanks & Regard's
Pathi,

Hi,
One possible way to block MIRO before UD posting is done is thru an enhancement
LMR1M001
Here you need to post following code to block MIRO in include:ZXM08U16
this code will cause an error message before UD and will allow MIRO for only qty posted to Unrestricted stock
*&  Include           ZXM08U16
Declaration of variables
  DATA: w_prueflos TYPE qamb-prueflos,
        w_lmenge TYPE qals-lmenge01.
Declaration of Internal Tables
  DATA: itab LIKE qals OCCURS 0 WITH HEADER LINE.
  LOOP AT e_tdrseg WHERE selkz EQ 'X'.
  Checking whether the document require Inspection
    CLEAR: w_prueflos.
    SELECT SINGLE prueflos
      INTO w_prueflos
      FROM qamb
     WHERE mblnr = e_tdrseg-lfbnr
       AND zeile = e_tdrseg-lfpos.
    IF sy-subrc EQ 0.
      CLEAR: itab[], itab.
      SELECT SINGLE * INTO CORRESPONDING FIELDS OF itab
       FROM qals
      WHERE prueflos = w_prueflos
        AND stat35 = 'X'.
      IF sy-subrc EQ 0.
        READ TABLE itab INDEX 1.
        CLEAR: w_lmenge.
  Sum of quantity (Excludes Block stock)
        w_lmenge = itab-lmenge01.
        IF e_tdrseg-menge GT w_lmenge.
          MESSAGE ID 'ZMM' TYPE 'E' NUMBER '004' WITH w_lmenge e_tdrseg-lfbnr.
        ENDIF.
      ELSE.
        MESSAGE ID 'ZMM' TYPE 'E' NUMBER '005' WITH  e_tdrseg-lfbnr.
      ENDIF.
    ENDIF.
  ENDLOOP.
Hope this helps
Regards
Dheeraj...

Similar Messages

  • Workflow Related to MIRO

    Hi Guys,
    Do we have any standard Worflow given by SAP relating to MIRO.
    Regards,
    Madhu.

    Hi
    Please check below the standard worklow
    WS 20000397
    WS 20001003
    WS 20001004
    Thanks
    Arghadip

  • Problem in related to MIRO-CM

    Hi Guru,
    We have an issue in MIRO-CM - The background we processed an invoice for goods 50 cs according to invoice and PO (the quantity of invoice is equal to PO), then these goods are need to be returned, also done in system. Now we have received the related invoice for return to do MIRO-CM but message tell that No suitable item found for PO 55000783, when we click check button to continue another message "PO item 55000783 00620 does not allow invoice receipt. How can we proceed to do the CM?
    Thanks,
    Memars

    THE  ABOVE  SCENARIO  IS  THIRD  PARTY   PROCESS  ,
    IN  THIS  PROCESS   GR  IS   A  STATISTICAL GR  ONLY,
    IN  THIS   PO   IN  INVOICE TAB  WE CAN   SEE   THAT   GR-BASED INVOICE  NOT  CHECKED,
    THIS  IS BECAUSE  OF   THE   ITEM CATEGORY USED  IN  THE   SALES  ORDER  (TAS),
    AND  IN  THE  PO   ACCOUNT  ASSINGNMENT  CATEGORY =  1(THIRD  PARTY),
    FOR  THIS  ACCOUNT  ASSINGNMENT CATEGORY = 1,THERE IS NO  GR  ALLOWED  ONLY   INVOICE  ALLOWED,
    YOU  CHECK  IN  TCODE = OME9,ACCOUNT  ASSINGNMENT  CATECORY =1,
    REGARDS

  • Standard report related to MIRO

    Hi,
    I need a standard report which could extract MIRO data:
    - Invoice vendor
    - Invoice data
    - Condition (KSCHL)
    - Invoice value
    I know that these data are stored in the RBKP and RSEG tables, but must I generate a custom report or a query to have these informations? I hope no!
    Is there in the system a standard report which could give them to us?
    Please, let me know
    Thanks
    Lara

    Hi
    You canmake use of the two reports : MIR5 -list of invoice douments
                                                            MIR6- invoice overview  
    Most of the fileds you can get in the first report.
    Else you can develop query based on the table join RBKP and RSEG tables
    SQVI.
    or you can also query based on Logical database BRM and then make the selction  scrreen and the output as desired
    Regards
    sunny

  • How to restrict the Qty & Val in MIRO for Customs

    Hi Xperts
    I have a reqmnt.
    I have found in case of Import procurement process , we are not using GR based IV Indicator in the PO.Also we need to perform MIRO for Customs prior to GR.
    1. Hence users need to manually enter the qty/val for all the duties during MIRO(Custom). I have also chkd that users can enter more than the PO-Qty & more then PO-Condition Value as well during that.
    2. Also user can do MIRO(for Custom) multiple times as they wish, though MIRO(Custom) has already been completed for that item.
    Ho to restrict the above in AP?Plz suggest.
    Rgds
    Soumick

    You requirement can be achieved by enhancement in MIRO.
    Check these exits related to MIRO
    Enhancement/ Business Add-in            Description
    Enhancement
    LMR1M001                                  User exits in Logistics Invoice Verification
    LMR1M002                                  Account grouping for GR/IR account maintenance
    LMR1M003                                  Number assignment in Logistics Invoice Verification
    LMR1M004                                  Logistics Invoice Verification: item text for follow-on docs
    LMR1M005                                  Logistics Inv. Verification: Release Parked Doc. for Posting
    LMR1M006                                  Logistics Invoice Verification: Process XML Invoice
    MRMH0001                                 Logistics Invoice Verification: ERS procedure
    MRMH0002                                 Logistics Invoice Verification: EDI inbound
    MRMH0003                                 Logistics Invoice Verification: Revaluation/RAP
    MRMN0001                                 Message output and creation: Logistics Invoice Verification
    Business Add-in
    INVOICE_UPDATE                    Business Add-In: Logistics Invoice Verification
    refer below link
    Code To Find BAdi - ABAP Development - SCN Wiki

  • User exit/BADi to change the header text in MIRO transaction

    Hi all,
    I am searching user exit or badi to change the header text in MIRO transaction.
    My requirement is, before post the invoice I need to populate the vendor name in Header text field(MIRO -> Details tab -> header text field ). I have tried all the user exits and BADi's related to MIRO. Doesn't work. If anybody knows please share.
    Thanks,
    Pranav

    Try BADI INVOICE_UPDATE.
    If you are in system version is ECC 6.0, you can find out a Enhancement SPOT (ES_SAPLMRMC) under Function module MRM_FINAL_CHECK, which can be used to perform this requirement
    Hope this helps.
    Thanks,
    Balaji
    Edited by: Balaji Ganapathiraman on Mar 14, 2008 4:43 PM

  • User exit/BADi to populate the header text in MIRO transaction

    Hi all,
    I am searching user exit or badi to populate the header text in MIRO transaction.
    My requirement is, before post the invoice I need to populate the some text in Header text field (MIRO -> Details tab -> header text field). I need to populate this field in the MM document as well as FI document (Accounting Document). I have tried all the user exits and BADi's related to MIRO/MRRL. Doesn't work. If anybody knows please share.
    Thanks,
    Santosh
    Edited by: Santosh Ghonasgi on May 13, 2010 4:48 PM

    Hello santosh,
    I am not sure whether a suitable exit / BADI exists to update the header text in MIRO directly.
    there is one related forum:
    User exit/BADi to change the header text in MIRO transaction
    Hope, it may helpful for you to proceed with some other parallel solution.
    Regards,
    Selva K.
    Edited by: Selvakumar Krishnan on May 13, 2010 5:29 PM

  • Miro to be booked @ purchase order amount.

    Dear All,
    I had a query related to MIRO-when we book MIRO on a purchase order , we can only book as per the quantity in GR.Is there a way that i can control the amount while booking the MIRO i.e tolerance +- 15000/- or smaller amount.right now i can manually change the value and book excess amount or can i control that any point the MIRO value should not exceed the purchase order value.
    Need your help on this.
    Thanks,
    Priya

    Hi,
    Maintain tolerance limits as ZERO in OMR6 t.code for the tolerance key PP ( for Price variance) & DQ  ( Exceed amount: quantity variance)
    Also you can  set message as ERROR in OMRM t.code for messages M8 -081 {Quantities invoiced greater than goods receipt & maintain GR-based IV in the PO item level}  & M8 -087 {( Invoice quantity greater than PO quantity) is for material without GR only}
    NOTE:
    If message setting not work, you can set ERROR message for M8 -081 & M8 -087  in OBMSG t.code.
    Regards,
    Biju K

  • Quality rejected material is showing in MIRO

    Dears,
    My requirement is that , while doing MIRO of QM activated material after UD i need to do MIRO of Ok quantity not rejected quantity. For Ex. 100 qty r there , out of which 90  r ok and 10 r rejected.
    for that i used a User exit to give error message , then the user changes the quantity manually means the ok quantity (90) .but while doing the miro 2nd time for the same PO the rejected quantity  (10 qty) is showing , which the user don't want.
    so is there any solution for it.  reply soon.
    regards
    Banaja

    hi,
    please refer this link
    Re: QM related to MIRO
    How Payment can be blocked if Usage Decision(Quality) not done
    No MIRO for material in quality
    thanks

  • Will MIRO exits generally fire in MR8M also?

    In this thread here:
    MIRO equivalent of MIGO exit_saplmbmb_001 (or MB_DOCUMENT_BADI)
    Krishna Reddygari was kind enough to provide a list of exits and BAdIs related to MIRO.
    My question now is:
    is it usualy the case that if an exit fires in MIRO, it will also fire in MR8M?
    The reason I'm asking is as follows.
    Regardless of whether the customer uses MIRO or MR8M, I have to update two custom fields in EKPO line items.
    So I'm hoping that the exit or BAdI that I choose for MIRO will also fire in MR8M.

    No prob with the points.
    If you end up using it, have in mind two things which are not so visible in the documentation:
    Note that you must not send any system messages in the methods. One exception to this is the method CHANGE_AT_SAVE. In this method, you can issue a system messages if the exception ERROR_WITH_MESSAGE is triggered simultaneously.
    Note: only for non-exit commands: you can check the command type in the SAPLMR1M GUI statuses - DELE for preliminar document deletion is one example - or else you get a dump
    The statement Commit Work must not be performed, since this leads to data inconsistencies in the database.
    Good luck.
    Regards

  • Divide the Vendor Account  BSEG-KOART= 'K' into 90% and 10% in MIRO.

    I want to divide the Vendor Account  BSEG-KOART= 'K' into 90% and 10% in MIRO.
    I entered PO and selected the  tax , the balance amount is adjusted,
    when i click on the simulation button I want to   divide the Vendor Account  BSEG-KOART= 'K' into 90% and 10% .
    The  90%  will be shown in Vendor account and 10% should be show in GL account, is there any exit  or BADI to perform this calculation?
    This operation should be done before posting .

    Hi,
    I guess your question is more related to MIRO than to real estate business. Please address your question in forum
    ERP - Logistics Material Management (MM).
    Regards, Franz

  • MIRO and VAT

    Hello,
    I have a question related to MIRO invoice
    We have a puchase order with a single line item.
    but when we received the invoice from the vendor,
    The vendor splits the invoice into 2 line because there are 2 components
    with 2 different VAT code one part has to be booked with VAT @ 5.5% (raw material) and the other other has to be booked with VAT @ 19.6% (packaging)
    Is there a way (no customizing) when I book the invoice to split in a proper way the two amounts with the good VAT code ?
    Thanks

    hi Audrey,
    I would suggest to change the PO, to have two items (with proper VAT codes). If it is not possible to change it, than you can create a new one.
    ec

  • Quality inspection Check in MIRO

    Hi all,
    Which User Exit /Badi can be used in order to Restrict the MIRO posting while material still lying in
    in Qualtiy Stock.
    Regards
    Gibi Philip

    Check this Links
    Re: QM related to MIRO
    How Payment can be blocked if Usage Decision(Quality) not done

  • Make error message for MIRO

    Dear All
    I have a PO, and then the PO is created GR (MIGO-GR; 101). so that stock into the Quality inspect of Stock type.
    I want any error messages when I do invoicing process (MIRO), because the quality process still not finished
    Would you please help me
    thanks
    imron

    Hi,
    Check this Links
    Re: QM related to MIRO
    and
    How Payment can be blocked if Usage Decision(Quality) not done

  • Problem in F.13 GR/IR clearing

    Hi,
    I have two documents, one related to MIGO and one related to MIRO. The same amount of GR/IR clearing account is credited and debited in MIGO and MIRO respectively. But when I am clearing these both documents, it's not getting clear. We have  criteria for automatic clearing is Reference Key3, Amount in local currency and Clearing document. At the time of F.13, system is showing me the message "Consolidated companies 1000 and ' ' are different".
    I have configured "AB" document type for clearing. Inter company transaction is not ticked in AB document type. Screen shot of F.13 is attached herewith.

    Hi Sanil,
    I have checked the entries. Actually these entries are related to rejection. It means, at the time of MIGO, GR/IR account was debited and at the time of MIRO entry it was credited. And I need to clear these debit and credit entries.
    As per your suggestion, I have checked the vendor master. At the time of MIGO, there was trading partner but before the MIRO, trading partner was removed form vendor master.These entries are related to 2009.
    Pl help how can I clear these entries.
    Regards,
    Ankit Agarwal

Maybe you are looking for

  • Controlling video and timelines from main stage. Can it be done?

    The set up: I have 3 Symbols on the main Stage. Each Symbol has a video and 4 text sections, with the text appearing below the video. When the video reaches a certain point, the text changes (for instance, when the video is talking about Widget 1, Te

  • Default sample size?

    Hi all, what is the default sampling percentage or size for gathering statistics? and where is this parameters stored? (how to display this value?) thanks andrew Kain

  • Raise without a handler error

    Running Adobe Acrobat 8.12 Professional. Whenever I attempt to use the text edit tools or the redact tools, I receive an error message stating that "There was a RAISE without a handler. The application will now exit." The only posts I've seen on this

  • Error after update to 7.4.3

    iTunes Setup Assistant Warning! iTunes was not properly installed. If you wish to import or burn CDs, you need to reinstall iTunes. Little help?

  • Can I view programs on my computer stored on my Yo...

    Hi, Can I view programs on my computer that I have have stored on my Youview box? Thanks in advance for any help or advice you can give me.