Hi Experts,
This query might belong to ABAP/PI/ Functional. However I will start with ABAP.
Scenario
We have a scenario where invoices are created in 3rd party application and passed on the SAP ECC through SAP PI (3rd party system --> SAP PI --> SAP ECC). These invoices are posted in SAP ECC. Invoices are entered in 3rd party system either manually or through xls upload. Every time 3rd party system calls SAP PI and which in turn calls SAP ECC ABAP program to post the invoice. During xls upload, we are getting the same invoice from 3rd party system twice (e.g. if 50 invoices, then we get 100 calls to PI).
Problem
Excel upload of invoices in 3rd party system
Problem is we are unable to catch when the invoice is duplicate in SAP ECC end. Hence one invoice is getting posted twice in SAP ECC. Standard BAPI is called to post the invoice.
Reason for this is that the invoices come in so fast that the standard BAPI is unable to save the first record before which even the second duplicate invoice starts getting posted. Hence we don't get the error message from BAPI.
However when there is a manual entry of invoice in 3rd party system, we don't face issue of duplicate invoice since the earlier record gets time to be saved/posted in SAP ECC so if next manual entry is duplicated, the BAPI throws the error.
Question
How can we catch the duplicate invoice issue on the SAP ECC side? We do not have any privilege to catch it on the 3rd party system. Can we do it in PI side?
