Solution : https://service.sap.com/sap/support/notes/394316 (SAP Service marketplace login required)
Summary :
In logistics invoice verification, SAP lacks an automated duplicate check for EDI-generated invoices. To address this, configure user exit EXIT_SAPLMRMH_015 via enhancement MRMH0002. Implement duplicate check logic in ZXM08U26 using ‘MRM_DUPLICATE_INVOICE_CHECK’. Set parameters like company code and invoice number as function input. Moreover, adjust transaction OMRM to generate necessary error messages, ensuring error handling aligns with duplicate detection logic. For successful application, modify T100S in SM31 to permit message number 462. This setup prevents the posting of duplicate invoices by marking such IDocs with status 51.
Key words :
duplicate invoice call function 'mrm_duplicate_invoice_check' exporting i_bukrs = e_rbkpv-bukrs i_lifnr = e_rbkpv-lifnr i_waers = e_rbkpv-waers i_xblnr = e_rbkpv-xblnr i_bldat = e_rbkpv-bldat i_rmwwr = e_rbkpv-rmwwr i_xrech = e_rbkpv-xrech i_belnr = exceptions invoice_already_exists = 1, message id sy-msgid type sy-msgty number sy-msgno, application area msgno allowed standard switch offm8 462 iwe, sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4, terms mrm_duplicate_invoice_check, relevant function, duplicate invoice, configure user exit exit_saplmrmh_015, logistics invoice verification, duplicate invoices
Related Notes :
395718 | MIRO: Performance problems double invoice check |
391685 | MIRA: No check for duplicate invoice |
389359 | MIRO: Performance problems check double invoice |
364309 | MIRO: No check on double invoices |