🗂 Understanding Dynamics GP Table Structures
Company Data: Each company has its own database (e.g.,
TWO
,Fabrikam
, or your company code).-
Common Table Prefixes:
-
GL
→ General Ledger -
PM
→ Payables Management -
RM
→ Receivables Management -
SOP
→ Sales Order Processing -
POP
→ Purchase Order Processing
-
-
Series Breakdown:
-
10000
→ Financial -
20000
→ Sales -
30000
→ Purchasing -
40000
→ Inventory
-
Knowing the right prefix saves hours when searching for tables in SQL.
🛠️ Useful Queries You Can Use Today
Here are some read-only queries (safe for reporting, won’t update data). Replace TWO
with your company database.
1. Find Unposted Batches
👉 Great for identifying stuck batches across modules.
2. Reconcile Payables Transactions to GL
👉 Helps validate whether posted payables are hitting the correct GL accounts.
3. Outstanding SOP Orders
👉 Quickly shows all open Sales Orders and their amounts.
4. Vendor Balance Summary
👉 Simple, fast way to see who you owe money to.
5. Customers Over Credit Limit
👉 A real-world credit control report that GP doesn’t provide out-of-the-box.
⚠️ Best Practices
-
Always query with
SELECT
only — avoidUPDATE
orDELETE
in production. -
Use a read-only SQL account for reporting connections.
-
Document your queries — future admins will thank you.
-
Test in a test company first if you’re writing more complex joins.
🎯 Final Thoughts
Dynamics GP’s SQL backend can feel intimidating, but once you learn the table naming patterns and safe shortcuts, you unlock a world of faster reconciliation, custom reporting, and smarter audits.
Instead of struggling with manual exports or missing SmartLists, you can build direct, reliable reports that make finance and operations teams look like heroes.
Comments
Post a Comment