Skip to Content
avatar image
Former Member

Duplicate Invoices while saving document through MIR7


I have to Post the invoice document through MIR7. This can be done through MIRO as well but the end user is using MIR7 for this purpose by parking and then posting the document.

Problem here is that once user has posted the invoice document, he is able to post the same document again by just changing the reference document number field in MIR7, which leads duplicate invoices.

Here we need to control this by manually putting some conditions. I tried to find the exit and BADI but was able to get only one useful thing that is BADI "INVOICE_UPDATE".

I am not sure about this BADI but in case if this BADI can be used then I want to know how?

Also if not then what are the possible solutions to resolve the issue.

I am open for any further inputs.



Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Jul 27, 2011 at 08:55 PM


    just searching in the forums you could find something like this:




    Materials Management -> Logistics Invoice Verification -> Incoming Invoice -> Set Check Duplication Invoices

    OSS Notes:

    ( Note 305201 - Description: Check for duplicate invoices )

    (Note 305277 - Check for double credit memos):


    XK02 (tick the check double invoice field)

    OMRM and make message M8 108 or M8 462 as Error.


    it´s not that bad to use the search button (there´s plenty of information available).

    Best regards.

    Edited by: Pablo Casamayor on Jul 27, 2011 11:21 PM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 11, 2011 at 04:54 AM


    Problem still persists.

    Value for S_RBKP_NEW-XRECH works fine but S_RBKP_NEW-RBSTAT is always 5 i.e. posted.

    I have taken a PO which is posted for Invoice but credit memo is not done. It is working fine for Invoice but as credit memo is not yet done RBSTAT should not be equal to 5, but it is still 5.

    Please help.

    Add comment
    10|10000 characters needed characters exceeded