web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

AA Budget Tree Account Balance SQL View

(0) ShareShare
ReportReport
Posted on by 25

I use the query below to get budget Amount from Tables, AAG00900. AAG00901, AAG00902, AAG00400, AAG00401, AAG00903, and AAG00904.

But I can't join this to get AA Transaction amount in GL.

If I Look at AAG00905, it is not populated with any budgets?

How is that done or what am I doing wrong?

SELECT rtrim(BudgetData.aaTrxDimCode) [Project], 

SUM(BudgetData.Balance) [Project Budget], 

      rtrim(BudgetData.YEAR1) [Year]

FROM

(

    SELECT 1 AS REPTYPE, 

           AAG00903.aaBudgetID, 

           AAG00903.aaBudget, 

           AAG00903.aaBudgetDescr, 

           ISNULL(AAG00903.YEAR1, '2020') [YEAR1],

           AAG00900.aaBudgetTreeID, 

           AAG00900.aaBudgetTree, 

           AAG00900.aaBudgetTreeDescr, 

           AAG00901.aaTrxDimID, 

           AAG00400.aaTrxDim, 

           AAG00400.aaTrxDimDescr, 

           AAG00901.aaOrder, 

           AAG00902.aaTrxDimCodeID, 

           ISNULL(AAG00401.aaTrxDimCode,'No Project') [aaTrxDimCode], 

           AAG00401.aaTrxDimCodeDescr, 

           AAG00902.aaCodeSequence, 

           AAG00902.aaLvlCodeString, 

           ISNULL(AAG00904.aaFiscalPeriod, 0) AS aaFiscalPeriod, 

           ISNULL(AAG00904.aaActualPriliminary, 0) AS aaActualPriliminary, 

           ISNULL(AAG00904.Balance, 0) AS Balance 

          

    FROM AAG00900

         INNER JOIN AAG00901 ON AAG00900.aaBudgetTreeID = AAG00901.aaBudgetTreeID

         INNER JOIN AAG00902 ON AAG00901.aaBudgetTreeID = AAG00902.aaBudgetTreeID

         INNER JOIN AAG00400 ON AAG00901.aaTrxDimID = AAG00400.aaTrxDimID

         INNER JOIN AAG00401 ON AAG00902.aaTrxDimCodeID = AAG00401.aaTrxDimCodeID

                                AND AAG00400.aaTrxDimID = AAG00401.aaTrxDimID

         INNER JOIN AAG00903 ON AAG00902.aaBudgetTreeID = AAG00903.aaBudgetTreeID

         FULL OUTER JOIN AAG00904 ON AAG00903.aaBudgetID = AAG00904.aaBudgetID

                                     AND AAG00902.aaCodeSequence = AAG00904.aaCodeSequence

    

) AS BudgetData

Categories:
I have the same question (0)
  • Suggested answer
    agaber Profile Picture
    Microsoft Employee on at

    Hello-

    Thank you for posting your question on the Forums.  The AAG00905 table "aaBudgetTreeAccountBalance" stores the value for node-account combination per period.  What version of GP are you attempting this on?  Do you have the budget accounts linked to the accounting class that are linked to the nodes that you are pulling data from?  I would definitely open a new support case for this issue so an engineer can review your setup.

    Thank you,

    Adam G.

  • jgdynamicsBI Profile Picture
    25 on at

    I am running GP 2013 R2. 

  • jgdynamicsBI Profile Picture
    25 on at

    I am running GP 2013 R2, I don't think I have budget accounts linked to the accounting class. Is that the step I am missing. Can I reuse this dimension accounts next year when I create a new budget?

  • Suggested answer
    agaber Profile Picture
    Microsoft Employee on at

    Yes, the accounts would have to be linked to an accounting class.    

    You should be able to use the same accounts for each fiscal year budget going forward as needed.  Since you are an older version of GP, I would strongly encourage you to upgrade this year.  There has been quite a few known issues resolved with AA since that version.

    Thank you,

    Adam G.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 681

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 448 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 218 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans