Top 10 Dynamics GP Tables
Top 10 Dynamics GP Tables Every Consultant Should Know by Heart
If you live in Dynamics GP long enough, you realize success often comes down to knowing where the data lives. Below are the ten tables I reach for constantly—what they store, how to join them, and a bite-size query you can use right away. All samples are read-only and use the Fabrikam database code TWO
; swap it for your company DB.
Quick Reference (what & why)
-
SY00500 — Batches
Tracks batches across modules; crucial when something’s “stuck” or unposted. -
GL20000 — General Ledger Open
Un-year-closed GL detail (current year). Your best friend for recon. -
GL30000 — General Ledger History
Prior years’ GL detail. Same shape as GL20000, different period. -
PM20000 — Payables Open
Vendor transactions not yet fully applied/closed. -
PM30200 — Payables History
Closed/fully applied vendor transactions. -
RM20101 — Receivables Open
Customer transactions in open status. -
RM30101 — Receivables History
Closed/fully applied customer transactions. -
SOP10100 — SOP Work
Sales document headers in work/open (quotes, orders, invoices before transfer/post). -
SOP30200 — SOP History
Posted/voided SOP document headers. -
IV00101 — Item Master
Core item metadata used across SOP/POP/IV.
1) SY00500 (Batches)
Why it matters: Fastest way to find who “owns” a batch and which series it sits in.
Key columns: BACHNUMB
, BCHSOURC
, SERIES
, USERID
, BACHDATE
, BCHSTTUS
(0=available).
Pro tip: Use SERIES
to triage (100=Financial, 200=Sales, 300=Purchasing, 400=Inventory).
2) GL20000 (GL Open)
Why it matters: Current-year GL detail for reconciliations and drill-backs.
Key columns: JRNENTRY
, TRXDATE
, ACTNUMST
, DEBITAMT
, CRDTAMT
, ORTRXNUM
, ORTRXSRC
.
Join tip: ORTRXNUM
and ORTRXSRC
help trace back to subledgers (PM/RM/SOP).
3) GL30000 (GL History)
Why it matters: Everything after year-end close lives here.
Shape: Mirrors GL20000; swap table name in queries.
4) PM20000 (Payables Open)
Why it matters: Vendor transactions waiting to be paid or fully applied.
Key columns: VENDORID
, VCHRNMBR
, DOCNUMBR
, DOCDATE
, CURTRXAM
, DOCAMNT
, PONUMBER
.
Join tip: Link to GL via ORTRXNUM
/VCHRNMBR
when tracing postings.
5) PM30200 (Payables History)
Why it matters: Where payments/applies end up after close.
6) RM20101 (Receivables Open)
Why it matters: Outstanding AR by customer; perfect for credit control.
Key columns: CUSTNMBR
, DOCNUMBR
, DOCDATE
, CURTRXAM
, DOCAMNT
.
7) RM30101 (Receivables History)
Why it matters: Posted/closed AR for historical sales and collections analysis.
(Common RM types: 1=Sales/Invoice, 3=Debit Memo, 4=Credit Memo, 5=Return, 6=Payment.)
8) SOP10100 (SOP Work Headers)
Why it matters: Where active SOP documents live (quotes/orders/invoices before post).
Key columns: SOPTYPE
, SOPNUMBE
, CUSTNMBR
, DOCDATE
, SUBTOTAL
, USER2ENT
.
Join tip: Pair with SOP10200
(line items) using SOPTYPE
+ SOPNUMBE
.
9) SOP30200 (SOP History Headers)
Why it matters: Auditable record of posted/voided SOP docs.
10) IV00101 (Item Master)
Why it matters: The backbone of inventory across SOP/POP/IV.
Key columns: ITEMNMBR
, ITEMDESC
, ITMSHNAM
, ITMGEDSC
, UOMSCHDL
, ITMCLSCD
.
Join tip: For quantities & costs, look to IV00102
(UOM detail), IV10200
(IV trx work),
IV30300
/IV30200
(IV history), and site/item quantities in IV00112
.
Common Joins Cheat Sheet
-
PM → GL (open):
PM20000.VCHRNMBR = GL20000.ORTRXNUM
and inspectGL20000.ORTRXSRC
(often “PMTRX”, “PMFIN”). -
RM → GL (open):
RM20101.DOCNUMBR = GL20000.ORTRXNUM
(or useDOCNUMBR
/ORTRXSRC
like “RMTRX”). -
SOP Header ↔ Lines (work/history):
(SOPTYPE, SOPNUMBE)
inSOP10100
/SOP10200
andSOP30200
/SOP30300
. -
Customer/Vendor masters:
RM00101.CUSTNMBR
↔RM*
,PM00200.VENDORID
↔PM*
. -
Items:
IV00101.ITEMNMBR
↔SOP10200.ITEMNMBR
/POP10110.ITEMNMBR
/IV*
.
Safety & Performance Tips
-
Use a read-only SQL login for reporting.
-
Never run
UPDATE/DELETE
in production; if you must, use a test company first. -
Add (NOLOCK) only if you truly understand dirty-read implications.
-
Index-friendly filters: date ranges on
TRXDATE/DOCDATE
, equality on keys, andTOP (N)
for investigations. -
Capture
ORTRXSRC
&ORTRXNUM
in reports—they’re gold for audit trails.
Wrap-Up
Memorizing these ten tables—and a handful of joins—covers 80% of day-to-day questions from finance, AR/AP, and operations. Keep this post bookmarked, and consider building a shared SQL snippets library so your team solves repeat questions in seconds.
Comments
Post a Comment