Victoria offers up a SQL view for Payables invoices originating from POP in Dynamics GP
SQL view for Payables invoices originating from POP in Dynamics GP | Victoria Yudin
SQL & DataPayables & ReceivablesSales, Purchasing & Inventory
Archived post from 2013. Dynamics GP and the links it points to have changed since; check current documentation before relying on version-specific steps.