Analysis View Budget Entry (table 366)

Faulcon
Member Posts: 19
What exactly is the point of this table? The Analysis View Entry table is straightforward and useful, it compresses entries from the G/L Entry table based on the compression you select on the Analysis View, the budget entry table just... duplicates the G/L Budget Entry table. This is in Navision 2009 R2, we'd made a couple of changes to the Update Analysis View codeunit and I was wondering if that might have had an effect but even when I put the original object back in from the demo database I see the same thing. G/L Entry, compressed to a single entry for a year (based on the compression I selected), Budget Entry not compressed at all.
So unless this is just completely broken and I should be looking for a fix or patch or update I can't understand why the table even exists (and even if there is a reason I still think it's broken), I may as well use the G/L Budget Entry table directly for reporting.
So unless this is just completely broken and I should be looking for a fix or patch or update I can't understand why the table even exists (and even if there is a reason I still think it's broken), I may as well use the G/L Budget Entry table directly for reporting.
0
Comments
-
I'll take this to mean nobody has an explanation. Well with a bit of assistance I've worked out the problem is that it puts the budget entry number against every line meaning they're all distinct and can't be compressed unlike the UpdateAnalysisViewEntry function that takes this into account.
Copying the code from that function to the UpdateAnalysisViewBudgetEntry appears to have fixed the issue.
FromIF GLBudgetEntry.Date < AnalysisView."Starting Date" THEN TempAnalysisViewBudgetEntry."Posting Date" := AnalysisView."Starting Date" - 1 ELSE BEGIN TempAnalysisViewBudgetEntry."Posting Date" := CalculatePeriodStart(GLBudgetEntry.Date,AnalysisView."Date Compression"); IF TempAnalysisViewBudgetEntry."Posting Date" < AnalysisView."Starting Date" THEN TempAnalysisViewBudgetEntry."Posting Date" := AnalysisView."Starting Date"; END; TempAnalysisViewBudgetEntry."Dimension 1 Value Code" := DimValue1; TempAnalysisViewBudgetEntry."Dimension 2 Value Code" := DimValue2; TempAnalysisViewBudgetEntry."Dimension 3 Value Code" := DimValue3; TempAnalysisViewBudgetEntry."Dimension 4 Value Code" := DimValue4; TempAnalysisViewBudgetEntry."Entry No." := GLBudgetEntry."Entry No.";
ToIF GLBudgetEntry.Date < AnalysisView."Starting Date" THEN BEGIN TempAnalysisViewBudgetEntry."Posting Date" := AnalysisView."Starting Date" - 1; EntryNo := 0; END ELSE BEGIN TempAnalysisViewBudgetEntry."Posting Date" := CalculatePeriodStart(GLBudgetEntry.Date,AnalysisView."Date Compression"); IF TempAnalysisViewBudgetEntry."Posting Date" < AnalysisView."Starting Date" THEN TempAnalysisViewBudgetEntry."Posting Date" := AnalysisView."Starting Date"; IF AnalysisView."Date Compression" = AnalysisView."Date Compression"::None THEN EntryNo := GLBudgetEntry."Entry No." ELSE EntryNo := 0; END; TempAnalysisViewBudgetEntry."Dimension 1 Value Code" := DimValue1; TempAnalysisViewBudgetEntry."Dimension 2 Value Code" := DimValue2; TempAnalysisViewBudgetEntry."Dimension 3 Value Code" := DimValue3; TempAnalysisViewBudgetEntry."Dimension 4 Value Code" := DimValue4; TempAnalysisViewBudgetEntry."Entry No." := EntryNo;
Don't know if this will be of assistance to anyone else but I've been told the same problem is present in the standard 2015 objects so I wouldn't be surprised if other people have encountered it.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions