Christina Phillips explains Relating GL Data to Project Accounting and offers some SQL to help.
Dynamics GP Land: Relating GL Data to Project Accounting
General Ledger & FinancialsSales, 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.