Hi Howell -
Why are you trying to automate this function? Have you thought about creating an integration to bring those transactions in from a spreadsheet?
The PM (Payables) tables you'll want to query for duplicates are:
- PM00400 (PM Key Master File)
- PM20000 (PM Transaction OPEN file)
- PM30200 (PM Paid Transaction History file)