Duplicate invoices

Presently, Invoices in the SAP system are getting posted using XMS upload program.
Problem:
System is not giving error message or not stopping the XMS upload program from posting two invoices with same reference number and text description (even though date of posting is different)?
Please suggest some ways as to how to avoid these duplicate invoices posting.
Note: If this has to be resolved using substitution rule then please explain the exact procedure to be followed for that.

I assume that the duplicate invoice check you are talking is for Vendor invoices in AP and LIV.
I am not sure what you mean by XMS upload but here is how duplicate invoice check works in standard system.
Standard Duplicate invoice check on vendor master enables the system to block duplicate (Same invoice reference, company code, invoice date, amount and vendor). If either of these differ the system allows the invoice to get processed.
So as per requirement of our client we developed a new validation rule that checks a invoice document while posting for any duplicates accross all company codes and for vendor invoices.
Prereq:If inv doc type is KR or RE
Validation: In user exit
Write code for checking same reference in BKPF-XBLNR=XBLNR and BKPF-Doc Date=Doc Date.
If there exists same XBLNR check for
BSEG-Posting Key=31, BSEG-LIFNR=LIFNR;  and issue the message for duplicate check.
Note: This will still post duplicate invoices if the document date is changed. If you want to block the invoices accross all document dates remove the code of BKPF-Doc Date check.
But understand the implication. You are telling the system to check for duplicate invoices accross all posting dates. Hence if you are looking 1 yr or 2yrs down the lane the system will slow down alot for invoice posting given that it has to check invoices accross all dates. If you have a seperate doc type for XMS upload you can control the validation by doc type.
Hope it resolves your issue.
Thanks,
Sivaram

Similar Messages

  • Custom Table for Verifying Duplicate Invoice against Legacy Invoice Data

    Hi All,
    We are trying to upload legacy invoice data in a custom table. Then we want to use SAP duplicate invoice check functionality to look for the potential duplicate invoice from this custom table as well apart from the standard SAP tables.
    If you know of some user exit or any function module which I can use to link this custom table with the standard SAP duplicate invoice check functionality then it would be of great help.
    Regards,
    Sanjay

    Hi Jurgan!
    Thanks for the reply,
    We are using ECC6,
    Support pack : SAPKH60013
    Settings for Duplicate Invoice Check In Vendor Master is correct
    Customization setting OMRDC transaction, tick mark for invoice reference no. only
    If all the cited characteristics match, the system displays a
    customizable message. M8462 (if logistics invoice documents are found) or M8108 (if accounting documents are found).
    I have ensured that message M8108 (if accounting documents are found) is maintained as an error message in OMRM.
    Still system is allowing duplicate invoices for the reference nos. 00082 and 00072.
    For other reference Nos. which are previously used for other documents, system issues error message successfully.
    I dont want to delete archived accounting doc. and if I maintaind BKPF entris of this archived doc manually it will create probelm in FI.
    is this happen due to life span of secondory index of archived accounting doc. is completed ?.
    Please Help
    Many Thanks
    Vikas

  • Duplicate invoice. Query help needed

    Hi All,
    We need to build a query which addresses the following condition
    Some of the invoices were created against the wrong vendors and that money needs to be recovered. Some of them are already recovered while some are not
    * list out all the duplicate invoices between a particular date range(invoice date) with same invoice num ,same invoice amount and same invoice date.
    * If there are any debit invoice created(invoice number postfixed with CR or ADJ),those particualr invoices should not be included.
    The table below shows two type of invoice, the one with bold(invoice num=193666) has debit invoice created and all the three records related to it should not be a part of output data
    while the record(invoice num=00017321) should be a part of output data.
    INVOICE_NUM     INVOICE_AMOUNT     VENDOR_NUMBER     INVOICE_DATE     ORG_ID
    00017321     233.35     A321     1-Dec-11     95
    00017321     233.35     K452     1-Dec-11     95
    *193666     101.67     EM9B     18-May-12     91*
    *193666     101.67     1B02     18-May-12     91*
    *193666CR     -101.67     1B02     18-May-12     91*
    Below is the query which i wrote to identify the duplicate invoice
    select distinct
    a1.invoice_amount,
    a1.invoice_num,
    (select segment1 from apps.po_vendors where vendor_id=a1.vendor_id) vendor_name,
    a1.invoice_date,
    A1.ORG_ID
    from apps.ap_invoices_all a1,
    apps.ap_invoices_all a2
    where 1=1
    and a1.org_id in (91,95)
    and a1.org_id in (91,95)
    and a1.invoice_date between (to_DATE('01-SEP-2011','DD-MON-YYYY')) AND (to_DATE('01-JUN-2012','DD-MON-YYYY'))
    and a2.invoice_date between (to_DATE('01-SEP-2011','DD-MON-YYYY')) AND (to_DATE('01-JUN-2012','DD-MON-YYYY'))
    and a2.invoice_num=a1.invoice_num
    and a1.invoice_amount=a2.invoice_amount
    and a1.invoice_id<>a2.invoice_id
    and a1.invoice_amount<>0
    order by a1.invoice_amount,a1.invoice_num
    Can anybody share their thoughts on how to modify the query above which checks if there are any debit invoice created and not include in the final output.
    Thanks in advance

    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • How can i get an duplicate invoice from my MacBook which I bought in an independent Apple retail store

    how can i get a duplicate invoice from my MacBook which I bought in an independent Apple retail store in poland

    Call the store & ask the sales staff to send you one if you are no longer in Poland.  If you are still there, what is stopping you from visiting the store? 

  • Hard error for non PO duplicate invoice

    Hi,
    In FB60 for a non PO invoice, how can we restrict the duplicate invoice through reference number for different date and amounts. How can I create a hard error when the user posts a duplicate invoice for different amount and date. Right now the hard error is appearing for the reference num, same date and same amount.
    I wanted to create a z function module and tag it to 1110 fucntion module in FIBF Tcode. But can anybody advice if any standard SAP process is available.
    Thanks,
    Vardhan.

    No standard feature.
    You can use the mentioned BTE in FIBF or a validation in GGB0/ OB28
    Regards,
    Gaurav

  • A/P Invoice Entry - Duplicate Invoice Error vs. Warning Message Control

    In configuration, the duplicate invoice message has been defined as an error instead of a warning.  This affects all invoice entry dialog transactions.  Is there a method  or approach to change only transaction F-63 Park Document so the message is a warning intead of an error?   Thxs.

    Hi
    we have to activate certain setting in MM.
    Step - 1
    SPRO - MM - Logistic Invoice Verification - Incoming Invoice - Set Check for Duplicate Invoices - Activate Check box for reference field.
    Step - 2
    In Vendor Master XK02/FK02 goto Payment Transaction & click on check box - Check double Inv
    Step - 3
    There is also a Std Report for checking the invoices for which same reference feild was given
    S_ALR_87012340
    Hope its useful, give if found useful
    Regards,
    ram

  • Duplicate Invoices in AP

    Hello Gurus,
    Any help on the following question would be most appreciated. Points available.
    How does SAP prevent an AP clerk from entering a duplicate invoice? Is there a specific setting that needs to be turned on in AP that prevents clerks from entering duplicate invoices? Does this have to do with 3 way matching?
    Thanks in advance!

    Hi
    There are built in safe guards in MM like GR based IV (in the case of 3 way matching). This means invoice cannot be posted without receiving the goods first. So there is no question of posting an invoice more than once or more than goods received quantity. The cheks that are listed above are more relevant to FI based AP posting in which case it will not be 3 way matching.

  • Duplicate invoice check on MIRO/Logistics invoice verification.

    Hi SAP Gurus,
       I am stuck with a small issue here. I am trying to post an invoice through FB60 with same vendor, same comp code, same GL and same reference and I am aware there are two settings to do the duplicate invoice check one is through vendor master (payment transaction screen) and the other is OMRDC transaction where we check certain fields to validate invoices based upon same values. now when I take a vendor without that vendor master config for duplicate invoice check and checking all the fields in OMRDC transaction the system doesn't validate or throw any error while posting FB60 with all the same values. so is there any other configuration available apart from these two configuration settings?
      My requirement is the configuration already exists which checks duplicate invoice based upon same invoice date  for all the vendors of a company code and I need to change the configuration setting back where it ignores checking invoice date. it doesn't show any kind of error in my test whether I make change in OMRDC transaction or not.
    Regards,
    Bob

    Hi,
    Try check link below:-
    http://help.sap.com/saphelp_afs30b/helpdata/en/ce/4f3e39ea3aee02e10000000a114084/content.htm
    Regards,
    Fauzi

  • Duplicate invoice

    Hi ,
    i have an issue where an invoice is getting posted to times
    first invoice was in 2005 for say $100, ref 1234, vendor xyz, PO 123456
    second invoice was in 2007 same $100, ref 1234, vendor xyz, PO 123456
    I have a check the vendor master for the duplicate invoice and also in the MM side.
    Only thing i feel this is happening is b'cos the first invoice is archived. Please share your thoughts
    Thanks

    in FI following fields must be identical for error duplicate invoice msg to occur:
         Company code                    (BUKRS)
         Vendor number                   (LIFNR)
         Currency                        (WAERS)
         Reference number                (XBLNR)
         Amount in document currency     (WRBTR)
         Document date                   (BLDAT)
    Where as Transaction OMRDC, is an MM customsing transaction this will not apply to FI
    Regards
    Siva

  • FB60 Including or excluding a characteristic in duplicate invoice check

    When entering vendor invoice in FB60, system checks entry of company code, vendor, document date and reference number for duplicate invoice. If duplicate invoice is detected, message F5117 will be issued.
    We would like to change the duplicate invoice check by excluding document date for vendor invoice entered in FB60. Such change does not affect customer invoice entered in FB70. That is, document date will continue to be part of duplication check for customer invoice FB70.
    I understand such change (of adding or deleting characteristic in the message parameters) requires ABAP expertise.  I could not find message F5 117 in the source code of program SAPMF05A (FB60).  Would appreciate any help as to where the change be made.
    Regards,

    Hi,
    I has written in the program  SAPFF001
    it is used in the program 2 times in sub routines
    FORM doppelte_belege_pruefen_s
    FORM doppelte_belege_pruefen.
    Regards
    Krishna

  • Including or excluding a characteristic in duplicate invoice check

    When entering vendor invoice in FB60, system checks entry of company code, vendor, document date and reference number for duplicate invoice.  If duplicate invoice is detected, message F5117 will be issued.
    We would like to change the duplicate invoice check by excluding document date for vendor invoice entered in FB60.  Such change does not affect customer invoice entered in FB70.  That is, document date will continue to be part of duplication check for customer invoice. 
    OBA5 and OBMSG allow change of message status for W, E, etc.  We can create customized message (e.g. Z117) in SE91 and assign it to application area.  But what about changing the message parameters to include or exclude certain characteristic?  Does such change have to be done in program SAPMF05A (FB60) and that requires ABAP expertise?  If we change the message parameters directly in the program, then we can assign separate messages for vendor and customer documents? 
    We set u201Cduplicate invoiceu201D indicator in vendor master.  I have reviewed Note 305201.
    Appreciate any insight or feedback. Thanks in advance.

    Problem solved.
    Use Business Transaction Event 1110
    Activate SAMPLE_PROCESS-_00001110

  • Duplicate Invoice Check for Transaction MIR7

    Hi Experts,
    My client requirment is .
    Currenty system checks the BUKRS,LIFNR,WAERS,XBLNR,WRBTR,BLDAT for duplicate invoice this is a standard SAP functionality for T.code MIR7.
    Logic needs to be changed
    Duplicate Check in SAP for Vendor invoices to only check Vendor number (LIFNR) and Reference number (XBLNR).
    I have found a function module which is used to through the error message CUSTOM_MESSAGE is the FM under  MRM_FI_DOCUMENT_CHECK. advise what can be done for this.
    Thanks,
    vikas

    Hi Nabheet,
    BSIP is the table which is used for the Vendor Duplicate invoice check.I can do the validation based on xblnr and lifnr for my requirement but i am not sure where i have to do the validations. Please suggest.
    Thanks,
    Vikas

  • Duplicate invoice check in FV60/65

    Hi
    I am trying to set up a custom error message for duplicate invoice based on Vendor number (LIFNR) and Reference number (XBLNR) alone. The system presently considers a bigger set of fields to check for duplicate invoices which are
    Company code
    Vendor number
    Currency
    Reference number
    Amount in Document currency and
    Document date
    I need to override this setting and have duplicate invoice check based on vendor and reference no. combination.
    I have seen some threads which talk about BTEs where an FI interface - SAMPLE_PROCESS_00001110 can be customized by copying the sample function module and make customizations in the BTE.
    Can somebody throw more light on how to approach this.
    Any kind of approach solution would be appreciated
    Thanks
    Nag

    There are two steps to be followed for the duplicate invoice check in FV60/65:
    Step 1:
    I guess you know how to access the sample function module. Go to tcode BERP and select the business process 01110.
    Click on the button ‘Sample function module’ and you would be taken to SE37 and the sample function SAMPLE_PROCESS_00001110 would be displayed. Make a copy of this function module in to ZSAMPLE_PROCESS_00001110 or something like that.
    Write your custom code required for the duplicate invoice check as per your requirements.
    Step 2:
    This involves configuration where the custom function module created in the earlier step should be made active in the BTE process.
    Go to tcode FIBF and create a product through the menu path: SETTINGS -> PRODUCTS -> ….of a customer
    First create a product by clicking on ‘NEW ENTRIES’ button and save the product.
    Next, you have to attach the Z function created in the first step to this product. For this, follow the menu path SETTINGS -> PROCESS MODULES -> ….of a customer.
    Attach your z function to the product as shown in the first line and you are all set.
    Test the tcodes FV60/65 and see if they hit your custom code in the z function to verify the results.
    Hope this helps.
    Note: Here is the custom code that I have written in the function module for my purpose.
      SELECT COUNT(*) FROM bkpf
                      JOIN vbsegk
                      ON    bkpfbelnr = vbsegkbelnr
                      WHERE bkpf~xblnr   = i_xblnr
                        AND bkpf~blart   = i_blart
                        AND vbsegk~lifnr = i_lifnr.
      IF sy-subrc = 0.
        MESSAGE e000(za) WITH 'Document already exists for given Vendor:' i_lifnr '& invoice ref:' i_xblnr.
      ENDIF.
    Thanks
    Nag
    P.S: Please reward points if solution is useful...thanks

  • Special GL - F-65 Check duplicate invoice

    Dear All,
    I have a requirement, we use F-65 and apply BTE Process "00001110" DOCUMENT POSTING: Check on invoice duplication
    to check against duplicate invoice for Reference + Currency + Vendor Code. That is OK.
    But now, user would like to check special GL posting too. But it seems cannot check it. Trace the program, it will not
    call Process 00001110.
    Can anyone help on this ?
    Thanks.

    Unfortunately, standard SAP only allows a fixed duplicate invoice check in F-43/FB60.  Unlike LIV, you cannot configure which fields get checked.
    Use BTE 00001110 (process module) and build a function that reads the MM LIV duplicate invoice configuration (table t169p).  The BTE will be called appropriately for F-43/FB60.  I developed and implemented this a while ago and it works great.
    I hope this is useful.

  • In FB60, duplicate invoice check does not work if invoice date is different

    In FB60, duplicate invoice check does not work if invoice date is different
    This issue is in FB60 and not MIRO.
    Duplicate invoice check is activated in vendor master.
    I posted an invoice for a vendor with amount $ 100, Reference 1234 Invoice date Nov 01, 2011
    I tried posting for same vendor (and also Co Code) with amount $ 100, Reference 1234 Invoice date Nov 01, 2011. System does not allow. This is fine.
    Now I change only date, from Nov 01 to Nov 02, and system allow posting.
    Why I don't get the error message when date is different ? It should not be treated as a different invoice since invoice reference, amount, Vendor and Co Codes are same.
    SAP documentation says that it checks document date during duplicate invoice check even for FI invoices, then why does it allows in this case.
    Is this a bug ?
    I already tried changing settings in SPRO under LIV, this does not impact FB60 invoice booking.
    Thanks
    Sandeep

    Hi,
    Use BTE - 1110 - (Check on Invoice Duplication) for FB60. Take the help of your ABAPer to make a coding in Function module mentioned in BTE.
    Need to make a copy of the FM and then you can do relevant coding.
    refer the link.
    [http://www.thesapconsultant.com/2006/10/sap-business-transaction-events.html]
    Regards,
    Shridhar

  • Duplicate Invoice check

    Hi,
    We have made the settings for duplicate Invoice check. In one scenario, when we use same reference number for different vendor also, system is throwing duplicate invoice check. Could anyone of you clarify why system is throwing error for same reference even  it is a different vendor also.
    Regards
    Uma

    Hi Kumar,
    Standard SAP always checks duplicate invoice check at FI document level BSEG-XBLNR, not at Vendor level. If this situation occurs we always input XXXXa inorder to avoid this type of situation. Hope this helps.
    Thanks
    Raghuram

Maybe you are looking for