Jude
4Penny.net
Points: 7584

2/2/2021 11:04:54 AM

Generate a GL running sum for a specific year and account

* This article, and all our great SQL (Dynamics) documentation, Is available on the SQL (Dynamics) menu

We recently had a requirement to report on the running sum of a certain GL account (it was the cash account)

We needed the BBF entry, and then a running sum of all the periods after that. Problem is, you don't know where to look for the BBF. In January it might be in history or open. Also, the periods that we need to report from might also be in history or open. 

The code below handles all of that. It can easily be expanded to return more accounts, and restricted to fewer months. 

4Penny.net
Version: All
Section: Dynamics GP,SQL Scripts
Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables
3