codeunitFinanceofficial - Microsoftderived - from the source, no model text

Codeunit 410 "Update Analysis View"

Base Application · Microsoft.Finance.Analysis

Across versions

  1. BC23present
  2. BC241 events added, 1 events removed
  3. BC251 procedures added, 1 events added
  4. BC26-30unchanged

Neighbourhood 45 connected objects and pages

Table 363 "Analysis View" (relates to)Analysis ViewCodeunit 6239 "Sust. Acc. Analysis View Mgt." (event subscribers, 3 links)Sust. Acc. Analysis View Mgt.Codeunit 2621 "Stat. Acc. Analysis View Mgt." (event subscribers, 2 links)Stat. Acc. Analysis View Mgt.Codeunit 1371 "Sales Batch Post Mgt." (event subscribers)Sales Batch Post Mgt.Codeunit 1372 "Purchase Batch Post Mgt." (event subscribers)Purchase Batch Post Mgt.Codeunit 2621 "Stat. Acc. Analysis View Mgt." (calls, 3 links)Stat. Acc. Analysis View Mgt.Table 363 "Analysis View" (calls, 3 links)Analysis ViewCodeunit 413 "AnalysisViewEntryToGLEntries" (calls, 2 links)AnalysisViewEntryToGLEntriesCodeunit 6239 "Sust. Acc. Analysis View Mgt." (calls, 2 links)Sust. Acc. Analysis View Mgt.Page 120 "G/L Budget Entries" (calls, 2 links)G/L Budget EntriesCodeunit 1013 "Job Jnl.-Post Batch" (calls)Codeunit 13 "Gen. Jnl.-Post Batch" (calls)Gen. Jnl.-Post BatchCodeunit 1371 "Sales Batch Post Mgt." (calls)Codeunit 1372 "Purchase Batch Post Mgt." (calls)Purchase Batch Post Mgt.Codeunit 1690 "Bank Deposit-Post" (calls)Bank Deposit-PostCodeunit 17 "Gen. Jnl.-Post Reverse" (calls)Gen. Jnl.-Post ReverseCodeunit 213 "Res. Jnl.-Post Batch" (calls)Codeunit 224 "EmplEntry-Apply Posted Entries" (calls)Codeunit 226 "CustEntry-Apply Posted Entries" (calls)Codeunit 227 "VendEntry-Apply Posted Entries" (calls)Codeunit 23 "Item Jnl.-Post Batch" (calls)Codeunit 2584 "Dim Corr Analysis View" (calls)Codeunit 367 "CheckManagement" (calls)Codeunit 370 "Bank Acc. Reconciliation Post" (calls)Codeunit 406 "Update Analysis View Backgr." (calls)Codeunit 5633 "FA Jnl.-Post Batch" (calls)Codeunit 5653 "Insurance Jnl.-Post Batch" (calls)Codeunit 5704 "TransferOrder-Post Shipment" (calls)Codeunit 5705 "TransferOrder-Post Receipt" (calls)Codeunit 5822 "Cost Adjustment Bucket Runner" (calls)Codeunit 5823 "Cost Adjustment Item Runner" (calls)Codeunit 5850 "Invt. Doc.-Post Receipt" (calls)Codeunit 5851 "Invt. Doc.-Post Shipment" (calls)Codeunit 5856 "TransferOrder-Post Transfer" (calls)Codeunit 5980 "Service-Post" (calls)Codeunit 6235 "AnalysisViewEntryToSustEntries" (calls)Codeunit 699 "Exch. Rate Adjmt. Process" (calls)Codeunit 80 "Sales-Post" (calls)Codeunit 844 "Cash Flow Wksh.-Register Batch" (calls)Codeunit 90 "Purch.-Post" (calls)

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

Base Application · Microsoft.Finance.Analysis · BC23-30 · source at ea08af5e · facts from BC29

Properties

Property Value
TableNo Analysis View
Permissions TableData “G/L Entry” = r, TableData “G/L Budget Entry” = r, TableData “Analysis View” = rm, TableData “Analysis View Filter” = r, TableData “Analysis View Entry” = rimd, TableData “Analysis View Budget Entry” = rimd

Events published

  • OnAfterInitLastEntryNo(var LastGLEntryNo: Integer) (integration): Integration event raised after initializing last entry number for analysis view updates. Allows modification of the starting entry number for update processing.
  • OnAfterUpdateAll(Which: Option "Ledger Entries","Budget Entries",Both; DirectlyFromPosting: Boolean) (integration): Integration event raised after completing analysis view update operations. Enables post-update processing and cleanup activities.
  • OnBeforeUpdateAll(Which: Option "Ledger Entries","Budget Entries",Both; DirectlyFromPosting: Boolean; var AnalysisView: Record "Analysis View"; var InBatchPosting: Boolean) + BC25 − BC25 (integration): Integration event raised before starting analysis view update operations. Allows preprocessing and modification of update parameters.
  • OnBeforeUpdateOne(var NewAnalysisView: Record "Analysis View"; Which: Option "Ledger Entries","Budget Entries",Both; ShowWindow: Boolean; var IsHandled: Boolean) (integration): Integration event raised before updating a single analysis view. Allows custom handling and preprocessing for individual analysis view updates.
  • OnBeforeUpdateEntriesForGLAccount(var TempAnalysisViewEntry: Record "Analysis View Entry" temporary; AnalysisView: Record "Analysis View"; LastGLEntryNo: Integer; var NoOfEntries: Integer; var IsHandled: Boolean; ShowProgressWindow: Boolean) + BC24 − BC24 (integration): Integration event raised before updating entries for G/L account analysis views. Allows custom entry processing and modification of update parameters.
  • OnFlushAnalysisViewEntryOnBeforeAnalysisViewEntryInsert(var AnalysisViewEntry: Record "Analysis View Entry"; TempAnalysisViewEntry: Record "Analysis View Entry" temporary) (integration): Integration event raised before inserting analysis view entries during flush operations. Allows modification of analysis view entries before they are permanently stored.
  • OnUpdateOneOnBeforeUpdateAnalysisView(var AnalysisView: Record "Analysis View"; var TempAnalysisViewEntry: Record "Analysis View Entry" temporary; var Updated: Boolean; ShowProgressWindow: Boolean) (integration): Integration event raised before updating analysis view during single view update operations. Allows custom processing and modification of analysis view update parameters.
  • OnUpdateOneOnBeforeNewAnalysisViewIncludeBudgetsCheck(var NewAnalysisView: Record "Analysis View"; var AnalysisView: Record "Analysis View"; Which: Option "Ledger Entries","Budget Entries",Both) (integration): Integration event raised before checking if new analysis view includes budgets during update process. Enables custom validation logic for budget inclusion in analysis view updates.
  • OnUpdateOneOnBeforeUpdateEntries(var AnalysisView: Record "Analysis View"; Which: Option "Ledger Entries","Budget Entries",Both; LastGLEntryNo: Integer) (integration): Integration event raised before starting analysis view entry updates. Enables custom logic before analysis view entries are processed and updated.
  • OnUpdateBudgetEntriesOnAfterGLBudgetEntrySetFilters(var GLBudgetEntry: Record "G/L Budget Entry"; var AnalysisView: Record "Analysis View") (integration): Integration event raised after setting filters on G/L Budget Entry during budget update process. Enables additional filtering logic for budget entries being processed.
  • OnUpdateEntriesForGLAccountDetailedOnAfterGLEntrySetFilters(var GLEntry: Record "G/L Entry"; var AnalysisView: Record "Analysis View") (integration): Integration event raised after setting filters on G/L Entry during detailed G/L account update. Enables additional filtering logic for detailed G/L entry processing.
  • OnUpdateEntriesForGLAccountOnAfterAnalysisViewGLQrySetFilters(var AnalysisViewSourceQry: Query "Analysis View Source"; var AnalysisView: Record "Analysis View") (integration): Integration event raised after setting filters on Analysis View Source query during G/L account update. Enables custom query filtering for analysis view source data processing.
  • OnUpdateAnalysisViewBudgetEntryOnAfterTempAnalysisViewBudgetEntryAssignment(var TempAnalysisViewBudgetEntry: Record "Analysis View Budget Entry"; var AnalysisView: Record "Analysis View"; var GLBudgetEntry: Record "G/L Budget Entry"; DimValue1: Code[20]; DimValue2: code[20]; DimValue3: Code[20]; DimValue4: Code[20]) (integration): Integration event raised after assigning values to temporary Analysis View Budget Entry during update. Enables modification of budget entry data before final processing.
  • OnAfterCalculatePeriodStart(var AnalysisView: Record "Analysis View"; DateCompression: Integer; var AccountingPeriod: Record "Accounting Period"; var PostingDate: Date; var PrevCalculatedPostingDate: Date; PrevPostingDate: Date) (integration): Integration event raised after calculating period start date for analysis view updates. Enables custom period calculation logic for different date compression methods.
  • OnBeforeUpdateOneUpdateEntries(var NewAnalysisView: Record "Analysis View"; Which: Option "Ledger Entries","Budget Entries",Both; var LastReportedEntryNo: Integer; var TableID: Integer; var Supproted: Boolean) (integration): Integration event raised before updating entries during single analysis view update process. Enables pre-update validation and custom entry processing logic.
  • OnGetEntriesForUpdate(var AnalysisView: Record "Analysis View"; var UpdAnalysisViewEntryBuffer: Record "Upd Analysis View Entry Buffer") (integration): Integration event for retrieving entries to update in analysis view processing. Enables custom entry retrieval logic and filtering for analysis view updates.
  • OnUpdateAllOnAfterFilterAnalysisView2(var AnalysisView: Record "Analysis View"; DirectlyFromPosting: Boolean; LastBudgetEntryNo: Integer) (integration): Integration event raised after filtering Analysis View records during update all process. Enables additional processing logic after analysis view filtering is complete.
  • OnUpdateAnalysisViewEntryOnAfterTempAnalysisViewEntryAssignment(var TempAnalysisViewEntry: Record "Analysis View Entry" temporary; var AnalysisView: Record "Analysis View"; var GLEntry: Record "G/L Entry"; var UpdAnalysisViewEntryBuffer: Record "Upd Analysis View Entry Buffer") (integration): Integration event raised after assigning values to temporary Analysis View Entry during update. Enables modification of analysis view entry data before final processing.

Procedures

  • UpdateAll(Which: Option "Ledger Entries","Budget Entries",Both; DirectlyFromPosting: Boolean) + BC25: Updates all analysis views that require updating based on specified entry types.
  • UpdateAll(var AnalysisView2: Record "Analysis View"; Which: Option "Ledger Entries","Budget Entries",Both; DirectlyFromPosting: Boolean) + BC25 (internal)
  • Update(var NewAnalysisView: Record "Analysis View"; Which: Option "Ledger Entries","Budget Entries",Both; ShowWindow: Boolean): Updates a single analysis view with data from the specified entry types.
  • UpdateAnalysisViewEntry(AccNo: Code[20]; BusUnitCode: Code[20]; CashFlowForecastNo: Code[20]; DimValue1: Code[20]; DimValue2: Code[20]; DimValue3: Code[20]; DimValue4: Code[20]; PostingDate: Date; Amount: Decimal; DebitAmount: Decimal; CreditAmount: Decimal; AmountACY: Decimal; DebitAmountACY: Decimal; CreditAmountACY: Decimal; EntryNo: Integer): Updates analysis view entry with individual transaction data from G/L or Cash Flow entries. Stages transaction data in buffer for aggregation into final analysis view entries.
  • UpdateAnalysisViewEntry(UpdAnalysisViewEntryBuffer: Record "Upd Analysis View Entry Buffer"): Updates analysis view entry using buffer record with date compression and aggregation logic. Processes buffer data with period start calculation and dimension aggregation rules.
  • CalculatePeriodStart(PostingDate: Date; DateCompression: Integer): Date: Calculates the period start date based on the posting date and date compression setting. Adjusts the date to align with analysis view period boundaries.
  • FlushAnalysisViewEntry(): Flushes accumulated analysis view entries from temporary storage to the database. Processes temporary analysis view entries and inserts them as permanent records.
  • FlushAnalysisViewBudgetEntry(): Flushes accumulated analysis view budget entries from temporary storage to the database. Processes temporary budget entries and inserts them as permanent records.
  • GetDimVal(DimCode: Code[20]; DimSetID: Integer): Code[20]: Retrieves dimension value code for a specific dimension from a dimension set. Uses temporary caching to optimize repeated dimension value lookups during analysis view updates.
  • UpdateWindowCounter(EntryNo: Integer): Updates progress window counter during analysis view update operations. Tracks processing progress and updates user interface with percentage completion.
  • UpdateWindowHeader(TableID: Integer; EntryNo: Integer): Updates progress window header information during analysis view update operations. Displays current table being processed and entry numbers for user feedback.
  • SetLastBudgetEntryNo(NewLastBudgetEntryNo: Integer): Sets the last budget entry number processed for analysis view updates. Updates the analysis view record with the latest processed budget entry number to track update progress.
  • DimSetIDInFilter(DimSetID: Integer; var AnalysisView: Record "Analysis View"): Boolean: Determines whether a dimension set ID matches the analysis view’s dimension filters. Validates that all dimension values in the set comply with analysis view filtering criteria.

Plus 10 local procedures.

Triggers

OnRun

Relations

Called by

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.

Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Update Analysis View"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources