Victoria provides a SQL view for SOP sales by customer by month.
SQL view for SOP sales by customer by month | 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.