Great Plains ERP System General Ledger Table Names - An Introduction. A Legacy Continues but they are not intuitive. Both Accountants and Programmers will find them confusing
Please note:
For IFRS the headings are Grey background
for US GAAP comments and comparisons, headings are Blue background and US GAAP will appear in the heading
If you change the 0xxxx tables you will not affect balances because they only contain informational and not transaction values
1XXXX tables can be changed but ensure that the transaction still balances
2XXXX, 3XXXX NEVER CHANGE
4XXXX setup information – change through screens
5XXX are only temp tables to be used during processing as work tables so hold no data
The Dex_Row_ID is used to ensure uniqueness (rather than the data)
It is of no use whatsoever for reporting and is NOT a key (cannot be used to join tables)
No Silver Bullet – except Cliff’s Silver Bullet – will tell you later
Demo’s open:
Dynamics GP with Table Import
DynamicAccounting.net
Excel Sheet
DDB
ERD (diagrams) from SDK
SQL Management Studio (Smartlist Builder Views)
You can choose tables to diagram but you might find you have you know what tables to include – which sorta makes it somewhat redundant
Because Smartlists contain only 1 table you might have to create a view an use the view as the basis for a Smartlist report
You can use an SQL query to research the DB to find the keys and which tables contain the required fields
Build a warchest of queries – the underlying tables tend to never change structure
Here is some code that I wrote back in the 90’s – it returns a useful list of tables and their columns:
SELECT sysobjects.name, syscolumns.name
FROM syscolumns
INNER JOIN sysobjects ON sysobjects.id = syscolumns.id
WHERE sysobjects.type = 'U'
AND sysobjects.name LIKE 'GL%'
ORDER BY sysobjects.name
Before you close the year there is no PeriodID = 0
Caveat: When you Post a JE to a closed year the Ret Inc is amended but only for 1 previous year.
Closed period bals are stored on Table GL10111
Caveat: The default Trial Balance report in GP uses this logic for generating a Trial Balnce
THEREFORE you have to close the previous period to get correct Profit/Loss totals