Skip to main content

Notifications

Announcements

No record found.

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:
  • Suggested answer
    agaber Profile Picture
    agaber on at
    RE: AA Budget Tree Account Balance SQL View

    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.

  • jgdynamicsBI Profile Picture
    jgdynamicsBI 25 on at
    RE: AA Budget Tree Account Balance SQL View

    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?

  • jgdynamicsBI Profile Picture
    jgdynamicsBI 25 on at
    RE: AA Budget Tree Account Balance SQL View

    I am running GP 2013 R2. 

  • Suggested answer
    agaber Profile Picture
    agaber on at
    RE: AA Budget Tree Account Balance SQL View

    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.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,861 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,540 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans