Blocking the invoice verification

Hi Friends!
My client wants to block the invoice verification (MIRO) if the material is under quality stock. Till the usage decision is not done invoice verification should not be allowed against that PO.
Pl. Help
Regards
Naveen

Hi,
If you want GR to be blocked unless QA clears the material i.e. MIRO should be done only when Inspection lot qty is posted to Unrestricted use stock, then i am afraid it can be done only with an user exit
only prerequisite being creation of inspection lot for GR
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

  • Set Up Material Block for Invoice Verification

    Hi,
    Please share your experience for customization setting under General settings for material management "Set Up Material Block for Invoice Verification".
    When should we use " Material is bloked at first read" and "Material is blocked when invoice is posted".
    Does it improve MIRO transaction performance if we chnage the setting from " Material is bloked at first read" to "Material is blocked when invoice is posted"?
    Thanks & Regards,
    AG

    Hi,
    Set Up Material Block for Invoice Verification
    Use: -
       In this step, you specify at what point materials are blocked in Invoice Verification:
       o   During the allocation phase, all materials present in the invoice are blocked.
       o   During simulation or posting, materials whose stocks are to be changed are blocked and are read again.
       o   Materials whose stocks are to be changed, are blocked and are read again when you post.
       When you post directly to a material, the given material is blocked immediately in all settings.
    Standard settings: -
    In the standard system, materials are blocked during the allocation phase.
    It is suggested to block materials during allocation phase itself, so that user has not to enter all the details and then get block error at the time of Simulation or Posting. Also it improves the performance since all these transactions need not to be carried out and system informs initially that materials are blocked.
    Also refer SAPNote 210828 - Material blocks in logistics invoice verification

  • Blocking logistic invoice verification at company code level

    Dear all,
    May I know what is the system setup (SPRO) for this:
    Blocking logistic invoice verification at company code level ?
    Thanks
    tuffy

    Hi There
    I think it can be solved in 2 ways,,
    1. Number range, if you have not defined for the particular company code for this year,,
    2. Authorization for the Comp Code level (Check with your basis team ,, it will be the easieast way to block it for CC level and when ever you want they can just remove the block, (insterad of doing the changes in config, if basis can control the authorization it will be the best way)
    Hope it helps,,
    Thanks
    Senthil

  • DO GR reversal blocks the invoice again

    Hi Gurus ,
    Suppose PO is a 3 way match , GRIV is not checked.
    1.PO is created with qty 100 (price 1 EUR each) ,
    2. Invoice is one for 100 qty , but it will be qty blocked as GR has not been done
    3. GR is done for 100 qty - > this will unblock the invoice posted in step 2
    4. Now suppose GR is reversed after some days , will the invoice become blocked again ? If not , why ? this would mean that invoices can still get paid without GR posted for them .Is there any way we can block the invoice again if GR is reversed ?

    Hi ,
    Please follow below link:
    IR should not post if GR reversal (MBST) exists
    it might help you.
    Regards
    Nisha

  • Reversal of the Invoice Verification Document

    Dear Freinds,
    The users are trying to do the reversal of the Invoice Verification Document, but the system gives the error message 'No Reversal possible, Reverse Value must be reset'. When we look at the diagnosis, it suggests that the qty is same but the value is not the same as Invoice. The PO history for this item in the PO does not show any credit note passed which would result in the difference in the value.. What else could we check to resolve the issue.
    Thanks!
    Regards,

    Hi Jeya,
    Thanks for the help, we haven't used in BADI or User Exit, how else can we find this out and resolve the issue?
    Regards,

  • Blocking the invoice

    hi all,
    i want to block the invoices for payment ,which are not cleared by quality inspection.
    in spro is there any settings available for the same.
    Kindly guide me.
    Regards,
    velu

    Hi
    InQuality managemnt for the Control keys we can make the settings
    SPRO-> IMG-> Quality Management-> QM in Logistics-> QM in Procurement-> Define Control Keys
    In the Control key flag the Block Invoic checkbox.
    Thanks & Regards
    Kishore

  • GR/Delivery Date required in the Invoice Verification screenlayout

    Dear Forum,
    We notice that when the users perform the Invoice Verification thru MIRO, in the screenlayout corresponding to 'All Information' the system populates the date under the 'Delivery Date' column, however, this date corresponds to the Delivery Date mentioned in the PO Header and does not reflect the actual GR Date. The users want this to be replaced by the actual Delivery Date when the goods were received and GR was posted. Is there a way to replace this or else modify the layout so that the actual Delivery Date is populated. The reason is that the users want the baseline date to be replaced by the actual GR date and do want to go for another step involving the scrutinizing of the PO History.
    Thanks for the help!
    Regards

    Hi Venkat,
    Thanks for the help, is there a way to change the layout of the MIRO screen such that we can view the  actual GR or the Delivery Date while doing MIRO.
    Regards

  • How to block the invoice ,if the GR qty is in QA stock

    HI all,
    how to block the invoice,if the GR stock is in QA tock?
    But i have maintianed quality control key wiht the parameter like ivoice block and maintained in the respective material master data, even though invoice is not blocking?
    plese tell me is there any seetings required.
    thanx in advance.
    Regards
    Srinivas

    Hi,
    It is not the total invoice which is equal to zero but only one post.
    As I explained it at first the problem is the following one:
    In the rules of copy we use the field " Pricing type " with the value " C = Copy manual pricing elements and redetermine the others ".
    he order is complete and the price of the post is not equal to zero.
    +During the invoicing the system makes a new search for the prices in the tables of conditions.
    If the condition does not exist in the date of invoice the post takes the zero value.
    I look for a solution to block the creation of the invoice if a post only is equal to zero after the updating of the prices.
    Thanks
    Frédéric

  • PO BLOCK FOR INVOICE VERIFICATION

    Hi,
      we have created asset po with A/C assignment category as 'A' and completed GR also.
       we want to block this po for invoice verification. Hence, i went to item detail-->invoice--
    >activated' FINAL INVOICE'.
      still system is accepting for invoice verification.
    plz suggest how to block this po for invoice verification.

    hi
    go to me22n select all items and click on lock button just below it ur items will be locked for further processing
    and when u want to do the miro just unlock them
    regards
    kunal
    award if helpful

  • Invoice Verification - Invoice Block

    Hi,
    I want to block the MIRO document if Inspection Lot for a GR (material) is not cleared or the inspection lot is posted with blocked stock or still the material is in QI (Mov Type - 350)
    In material master QM view, I activated QM proc active and  selected QM control Key "007"(Del. release, invoice block).
    But If I do a MIRO for a GR for which the inspection lot is still open i.e no usage decision is posted , then system is not blocking the MIRO document.
    Can some one help me whether is there any other setting  to be done to block the invoice if inspection lot is still open/lot is rejected(Mt 350)
    Thx
    Deva

    Dear Deva Rishi,
    If a material is defined as being relevant for quality management, goods receipts for this material are posted to stock in quality inspection. Invoices for the material are blocked until the inspection has been successfully completed.
    If more than one goods receipt is posted for an order item, an inspection is carried out for every goods receipt. In Invoice Verification, the system reacts differently <b>depending on whether goods-receipt-based Invoice Verification is active</b>:
    <b>Goods-receipt-based Invoice Verification is defined</b> <b>in the purchase order</b>.
    The invoice is blocked if the inspection has not been completed for the goods receipt.
    <b>Goods-receipt-based Invoice Verification is not defined</b><b> in the purchase order</b>.
    The invoice is blocked if any goods receipts are still in quality inspection. If an invoice is posted before the goods are received, it cannot be blocked for quality inspection.
    With regards,
    B.Ravindranath

  • What are the imp. settings to configure in invoice verification in SPRO

    dear all gurus,
    i want to know the what are the important setting must be configure in the invoice verification setting in SPRO customization.
    pls. send the detailed steps, if the screen shots available it would be highly appreciated.
    i need the urgent help on that.
    thnx in advnce to all.
    rgrds,
    rajesh

    Hi,
    The details Conf. for Invoice Verification are following:
    1. Define Document Type for Invoice
    SPRO-> Financial Accounting (New) -> Account Receivable and account Payable -> Business Transactions-> Incoming Invoices and Credit Memos-> Make and Check Document Settings
    -> Define Document Types
    or
    T.Code:OBA7
    2. Define Number Ranges for Invoice
    SPRO-> Material Management -> Logistic Invoice Verification -> Invoice Verification-> Number Assignment for Accounting Documents-> Number Range for Document Type in FI
    or
    T. Code: OMR4
    3. Set Check for Duplicate Invoice
    Navigation Path: IMG-> Real Estate -> Tools -> Change Message Control
    or
    T. Code: OBA5
    4. Set Tolerance Limit for Invoice
    SPRO -> Material Management -> Logistic Invoice Verification -> Invoice Verification-> Invoice Block-> Set Tolerance Limit
    5. Activate Direct Posting to G/L Account and Material Account
    SPRO -> Material Management-> Logistic Invoice Verification ->  Incoming Invoice ->  Activate Direct Posting to G/L Account and Material Account
    6.Activate Company Code for Materials Management
    SPRO -> Logistic General ->Material Master-> Basic Setting ->  Maintain Company Code for Materials Management
    7.Default Value of Invoice Verification
    T. Code: SM30
    8.Assign tax Code for Non Taxable Transaction
    SPRO -> Financial Accounting (new) -> Financial Accounting Global Setting (New) -> Tax on Sales and Purchase ->  Posting-> Assign Tax Code for Non Taxable Transaction
    or
    T. Code:  OBCL
    Regards,
    Biju K

  • Block Invoice verification as per quality result

    Hello,
    I made GRN , lot gets generated. not cleared by quality.
    still I can do the invoice verification.
    Can I restrict this ? so i can not pass invoice before quality results and only ok quantity has to appear for invoice verification.
    If such facility is available kindly advice.
    Regards,
    santosh joshi

    Dear Santhosh Joshi,
    Check in IMG (Transaction SPRO) under :
    Materials Management -> Logistics Invoice Verification -> Invoice Block
    You can implement a proper BAdi/Enhancement if you cannot configure your scenario:
    BAdi:
    BAdI MRM_RELEASE_CHECK for additional checks before invoices are released, in other words, you can restrict the list of invoices to be released by defining your own criteria.                       
    The following SAP enhancements are available for maintaining the customer exits in Invoice Verification:                        
    MM08R001        ERS (conventional Invoice Verification)            
    MM08R002        Tolerance checks                                   
    MRMH0001        ERS (Logistics Invoice Verification)               
    MRMH0002        EDI invoice receipt (Logistics Invoice Verification)
    MRMH0003        Revaluation (Logistics Invoice Verification)       
    When processing an invoice, the R/3 System checks each item for variances between the invoice and the purchase order or goods receipt. The different types of variances are defined in tolerance keys.                                                                               
    The system uses the following tolerance keys to check for variances: 
    AN: Amount for item without order reference                        
    If you activate the item amount check, the system checks every line item in an invoice with no order reference against the absolute upper limit defnied.
    AP: Amount for item with order reference                           
    If you activate the item amount check, the system checks specific line items in an invoice with order reference against the absolute upper limit defined. Which invoice items are checked depends on how you configure the item amount check.
    BD: Form small differences automatically                           
    The system checks the balance of the invoice against the absolute upper limit defined. If the upper limit is not exceeded, the system automatically creates a posting line called Expense/Income from Small Differences, making the balance zero and allowing the system to post the document.
    BR: Percentage OPUn variance (IR before GR)                        
    The system calculates the percentage variance between the following ratios: quantity invoiced in order price quantity units : quantity invoiced in order units and quantity ordered in order price quantity units : quantity ordered in order units. The system compares the variance with the upper and lower percentage tolerance limits.     
    BW: Percentage OPUn variance (GR before IR)                        
    The system calculates the percentage variance between the following ratios: quantity invoiced in order price quantity units: quantity invoiced in order units and goods receipt quantity in order price quantity units : goods receipt quantity in order units. The system compares the variance with the upper and lower percentage limits defnied.   
    DQ: Exceed amount: quantity variance                               
    If a goods receipt has been defined for an order item and a goods receipt has already been posted, the system multiplies the net order price by (quantity invoiced - (total quantity delivered - total quantity invoiced)).
    If no goods receipt has been defined, the system multiplies the net order price by (quantity invoiced - (quantity ordered - total quantity invoiced)).
    The system compares the outcome with the absolute upper and lower limits defined.                                                    
    This allows relatively high quantity variances for invoice items for small amounts, but only small quantity variances for invoice items for larger amoutns.
    You can also configure percentage limits for the quantity variance check. In this case, the system calculates the percentage variance from the expected quantity, irrespective of the order price, and compares the outcome with the percentage limits configured.        
    The system also carries out a quantity variance check for planned delivery costs.
    DW: Quantity variance when GR quantity = zero                      
    If a goods receipt is defined for an order item but none has as yet been posted, the system multiplies the net order price by (quantity invoiced + total quantity invoiced so far).                        
    The system then compares the outcome with the absolute upper tolerance limit defined.                                           
    If you have not maintained tolerance key DW for your company code, the system blocks an invoice for which no goods receipt has been posted yet. If you want to prevent this block, then set the tolerance limits for your company code for tolerance key DW to Do not check. 
    KW: Variance from condition value                                  
    The system calculates the amount by which each delivery costs item varies from the product of quantity invoiced * planned delivery costs/ planned quantity. It compares the variance with the upper and lower limits defined (absolute limits and percentage limits).      
    LA: Amount of blanket purchase order                               
    The system calculates the sum of the value invoiced so far for the order item and the value of the current invoice and compares it with the value limit of the purchase order. It then compares the difference with the upper percentage and absolute tolerances defined.                                                                               
    LD: Blanket purchase order time limit exceeded                     
    The system determines the number of days by which the invoice is outside the planned time interval. If the posting date of the invoice is before the validity period, the system calculates the number of days between the posting date and the start of the validity period. If the posting date of the invoice is after the validity period, the system calculates the number of days between the posting date and the end of the validity period. The system compares the number of days with the with the absolute upper limit defined.                                                                               
    PP: Price variance                                                 
    The system determines by how much each invoice item varies from the product of quantity invoiced * order price. It then compares the variance with the upper and lower limits defined (absolute limits and percentage limits).
    When posting a subsequent debit/credit, the system first checks if a price check has been defined for subsequent debits/credits. If so, the system calculates the difference between (value of subsequent debit/credit + value invoiced so far) / quantity invoiced so far * quantity to be debited/credited and the product of the quantity to be debited/credited * order price and compares this with the upper 
    and lower tolerance limits (absolute limits and percentage limits).
    ST: Date variance (value x days)                                   
    The system calculates for each item the product of amount * (scheduled delivery date - date invoice entered) and compares this product with the absolute upper limit defined. This allows relatively high schedule variances for invoice items for small amounts, but only small schedule variances for invoice items for large amounts.                                                                               
    VP: Moving average price variance                                  
    When a stock posting line is created as a result of an invoice item, the system calculates the new moving average price that results from the posting. It compares the percentage variance of the new moving average price to the old price using the percentage tolerance limits defined.                                                           
    Hope this will resolve your issue.
    Regards,
    Naveen.

  • Invoice Verification MIRO

    Dear All,
    This is about invoice verification block after MIRO posting-
    In PO we have set it as 2 way match, once the PO is equal to Invoice verification then the system should not put any payment block. But if it doesnt match the value of PO to IV then the system should put invoice verifcation block (R) in the accounting document.
    Here, whatever we post that is whether the PO value is matching or not the invoice verification block (R) is appearing in the accounting document. Does any one gone through similar issue....
    I want to know how this can happen?
    Checked validations but nothing that sort appears.....is there a way to find out how this happens....
    Thanks to all in advance.

    Hello
    I do not know of any BAPI. But you can set an automatic block up through your payment terms.
    Check the following customizing path for this:
    Financial Accounting
    ->Accounts Receivable and Accounts Payable
       ->Business Transactions
         ->Incoming Invoices/Credit Memos
           ->Maintain Terms of Payment
    Select the details for the payment term and check for the indicator there to set the default block key.
    Hope this helps
    Ray

  • Logistics Invoice Verification: how to set up Tolerance Key

    Hi Experts,
    I would like to set up tolerance key :
    Could you please tell me wich Tolerance Key (and the steps) I need to set up in order to block invoices amounts which are above 10 % of the total amount of the PO and max 50£ (absolute value).
    All Invoice above these limits should be block for payment.
    Many thanks in adavnce for your help,
    Cesar

    Hello Cesar,
    You can block the invoice for payment.
    You have to set up the tolerance limits at company code level.
    Path: IMG -> Material Management -> Logistic Invoice Verification -> Invoice Block ->  Set Tolerance Limits ->
    Here you need to maitain the respected " Tolerance Key"  and Lower limits and Upper limits %.
    This will solve your issue.
    BR
    Suneel Kumar

  • Automatic Blocking of invoice

    It is learnt that during AP invoice verification if there is a discrepancy with qty or price beyond the allowed tolerance limit, SAP systematically blocks the invoice.
    Please tell me with what document viz. PO or GR, system checks the qty/value of the invoice document to determine this discrepancy.

    An invoice can be blocked for payment due to one of the following reasons:
    - Variance in an Invoice Item
    - Amount of an Invoice Item
    - Stochastic Block
    - Manual Block
    Please refer to the document to understand the concepts, you might find this useful!
    http://help.sap.com/erp2005_ehp_04/helpdata/en/a8/b99f58452b11d189430000e829fbbd/frameset.htm
    Thanks,
    Reetesh

Maybe you are looking for