Below is a view that will return a list of the distribution and breakdown accounts for all active variable allocation accounts in your Dynamics GP. Nothing fancy, but sometimes it is easier to have a report of these rather than have to look at them on the screen, specially since you have to click on each distribution account one at a time to see what breakdown account they are using.
Related code and table information:
- General Ledger tables
- Fixed Allocation Accounts
- GP Reports (there is a section for General Ledger reports under Dynamics GP SQL Scripts)
create view view_Variable_Allocation_Accounts as -- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ -- view_Variable_Allocation_Accounts -- Created on Aug. 23, 2012 by Victoria Yudin - Flexible Solutions, Inc. -- For updates please see http://victoriayudin.com/gp-reports/ -- Shows only active variable allocation accounts -- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ select an.ACTNUMST Variable_Allocation_Account, a.ACTDESCR Variable_Allocation_Account_Name, d.ACTNUMST Distribution_Account, dn.ACTDESCR Distribution_Account_Name, b.ACTNUMST Breakdown_Account, bn.ACTDESCR Breakdown_Account_Name from GL00100 a --account master inner join GL00105 an --account number on a.ACTINDX = an.ACTINDX inner join GL00104 v --variable allocation account setup on a.ACTINDX = v.ACTINDX inner join GL00105 d --distribution acct number on v.DSTINDX = d.ACTINDX inner join GL00100 dn --distribution account name on v.DSTINDX = dn.ACTINDX inner join GL00105 b --breakdown account number on v.BDNINDX = b.ACTINDX inner join GL00100 bn --breakdown account name on v.BDNINDX = bn.ACTINDX where a.ACCTTYPE = 3 and a.ACTIVE = 1 go grant select on view_Variable_Allocation_Accounts to DYNGRP
Disclaimer: I tested this on limited data, if you find an issue or have a suggestion for improvement, please let me know and I will post the update here for everyone.


August 23, 2012 


Trackbacks/Pingbacks
[...] Variable Allocation Accounts [...]
[...] Variable Allocation Accounts [...]
[...] Variable Allocation Accounts [...]
[...] Variable Allocation Accounts [...]
[...] Comments 0 Victoria Yuding gives us a SQL view for Variable Allocation Accounts in Dynamics GP [...]
[...] from: SQL view for Variable Allocation Accounts in Dynamics GP VN:F [1.9.20_1166]Please wait while your rating is cast…Rating: 0.0/10 (0 votes cast)VN:F [...]
[...] Continue reading on Source Blog [...]