---
id: object/codeunit/7150
type: object
title: Codeunit 7150 "Update Item Analysis View"
summary: Codeunit 7150 "Update Item Analysis View" in Base Application (Microsoft.Inventory.Analysis). 6 public procedures, 10 events. Present since at least BC23, still in BC30, changed in BC25.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "25"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: ff9f03b8ad4b6f6982aab7faf4e358b9b286f2f8df7125a8d4884d4f60b97c73
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Inventory/Analysis/UpdateItemAnalysisView.Codeunit.al
    title: src/Layers/W1/BaseApp/Inventory/Analysis/UpdateItemAnalysisView.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 7150
name: Update Item Analysis View
namespace: Microsoft.Inventory.Analysis
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "25"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 30
  events: 10
  subscribers: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 2
  calls: 0
  called_by: 22
  implements: 0
---

# Codeunit 7150 "Update Item Analysis View"

> Codeunit 7150 "Update Item Analysis View" in Base Application (Microsoft.Inventory.Analysis). 6 public procedures, 10 events. Present since at least BC23, still in BC30, changed in BC25.

Base Application · Microsoft.Inventory.Analysis · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Inventory/Analysis/UpdateItemAnalysisView.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| TableNo | Item Analysis View |
| Permissions | TableData "Item Analysis View" = rm, TableData "Item Analysis View Filter" = r, TableData "Item Analysis View Entry" = rimd, TableData "Item Analysis View Budg. Entry" = rimd |

## Events published

- `OnAfterUpdateAll(Which: Option "Ledger Entries","Budget Entries",Both; DirectlyFromPosting: Boolean)` (integration)
- `OnAfterInitializeTempItemAnalysisViewEntry(var TempItemAnalysisViewEntry: Record "Item Analysis View Entry" temporary; ItemAnalysisView: Record "Item Analysis View"; var ItemAnalysisViewSource: Query "Item Analysis View Source"; var ValueEntry: Record "Value Entry"; var IsHandled: Boolean)` (integration)
- `OnUpdateAnalysisViewEntryOnBeforeInsertTempItemAnalysisViewEntry(var TempItemAnalysisViewEntry: Record "Item Analysis View Entry" temporary; var ItemAnalysisViewSource: Query "Item Analysis View Source"; var ValueEntry: Record "Value Entry"; var ItemAnalysisView: Record "Item Analysis View")` (integration)
- `OnUpdateAnalysisViewEntryOnBeforeModifyTempItemAnalysisViewEntry(var TempItemAnalysisViewEntry: Record "Item Analysis View Entry" temporary; var ItemAnalysisViewSource: Query "Item Analysis View Source"; var ValueEntry: Record "Value Entry"; var ItemAnalysisView: Record "Item Analysis View")` (integration)
- `OnBeforeUpdateAll(var IsHandled: Boolean)` (integration)
  - subscribers: [Codeunit 1371 "Sales Batch Post Mgt."](../codeunit/1371.md) OnBeforeUpdateItemAnalysisView, [Codeunit 1372 "Purchase Batch Post Mgt."](../codeunit/1372.md) OnBeforeUpdateItemAnalysisView
- `OnFlushAnalysisViewEntryOnBeforeModifyItemAnalysisViewEntry(var ItemAnalysisViewEntry: Record "Item Analysis View Entry"; var TempItemAnalysisViewEntry: Record "Item Analysis View Entry" temporary)` (integration)
- `OnUpdateEntriesOnAfterSetFilters(var ItemAnalysisView: Record "Item Analysis View")` (integration)
- `OnUpdateAnalysisViewBudgetEntryOnAfterInitTempItemAnalysisViewBudgEntry(var ItemAnalysisViewBudgEntry: Record "Item Analysis View Budg. Entry"; var ItemBudgetEntry: Record "Item Budget Entry"; var ItemAnalysisView: Record "Item Analysis View")` (integration)
- `OnBeforeUpdateOne(var NewItemAnalysisView: Record "Item Analysis View"; var ItemAnalysisView: Record "Item Analysis View"; Which: Option "Ledger Entries","Budget Entries",Both; var ShowWindow: Boolean; var LastValueEntryEntryNo: Integer; var LastItemBudgetEntryNo: Integer; var IsHandled: Boolean)` (integration)
- `OnBeforeFlushAnalysisViewBudgetEntry(var TempItemAnalysisViewBudgEntry: Record "Item Analysis View Budg. Entry" temporary; ShowProgressWindow: Boolean; var IsHandled: Boolean)` (integration)

## Procedures

- `InitLastEntryNo()`
- `UpdateAll(Which: Option "Ledger Entries","Budget Entries",Both; DirectlyFromPosting: Boolean)`
- `UpdateAll(var ItemAnalysisView2: Record "Item Analysis View"; Which: Option "Ledger Entries","Budget Entries",Both; DirectlyFromPosting: Boolean)`
- `Update(var NewItemAnalysisView: Record "Item Analysis View"; Which: Option "Ledger Entries","Budget Entries",Both; ShowWindow: Boolean)`
- `SetLastBudgetEntryNo(NewLastBudgetEntryNo: Integer)`
- `DimSetIDInFilter(DimSetID: Integer; var ItemAnalysisView: Record "Item Analysis View"): Boolean`

Plus 14 local procedures.

## Triggers

OnRun

## Relations

- runs on [Table 7152 "Item Analysis View"](../table/7152.md)

## 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.

- [Table 7152 "Item Analysis View"](../table/7152.md) (2 calls: `CheckViewsAreUpdated → Update`, `SetUpdateOnPosting → (object)`)
- [Codeunit 1013 "Job Jnl.-Post Batch"](../codeunit/1013.md) (1 call: `Code → UpdateAll`)
- [Codeunit 1371 "Sales Batch Post Mgt."](../codeunit/1371.md) (1 call: `OnRun → UpdateAll`)
- [Codeunit 1372 "Purchase Batch Post Mgt."](../codeunit/1372.md) (1 call: `OnRun → UpdateAll`)
- [Codeunit 23 "Item Jnl.-Post Batch"](../codeunit/23.md) (1 call: `Code → UpdateAll`)
- [Codeunit 405 "Update Item Analysis View Bck."](../codeunit/405.md) (1 call: `OnRun → UpdateAll`)
- [Codeunit 5704 "TransferOrder-Post Shipment"](../codeunit/5704.md) (1 call: `RunWithCheck → UpdateAll`)
- [Codeunit 5705 "TransferOrder-Post Receipt"](../codeunit/5705.md) (1 call: `RunWithCheck → UpdateAll`)
- [Codeunit 5815 "Undo Sales Shipment Line"](../codeunit/5815.md) (1 call: `OnRun → UpdateAll`)
- [Codeunit 5822 "Cost Adjustment Bucket Runner"](../codeunit/5822.md) (1 call: `OnRun → UpdateAll`)
- [Codeunit 5823 "Cost Adjustment Item Runner"](../codeunit/5823.md) (1 call: `OnRun → UpdateAll`)
- [Codeunit 5850 "Invt. Doc.-Post Receipt"](../codeunit/5850.md) (1 call: `OnRun → UpdateAll`)
- [Codeunit 5851 "Invt. Doc.-Post Shipment"](../codeunit/5851.md) (1 call: `OnRun → UpdateAll`)
- [Codeunit 5856 "TransferOrder-Post Transfer"](../codeunit/5856.md) (1 call: `RunWithCheck → UpdateAll`)
- [Codeunit 5980 "Service-Post"](../codeunit/5980.md) (1 call: `PostWithLines → UpdateAll`)
- [Codeunit 7130 "Item Budget Management"](../codeunit/7130.md) (1 call: `DeleteBudget → SetLastBudgetEntryNo`)
- [Codeunit 7151 "ItemAViewEntryToValueEntries"](../codeunit/7151.md) (1 call: `GetValueEntries → DimSetIDInFilter`)
- [Codeunit 80 "Sales-Post"](../codeunit/80.md) (1 call: `RunWithCheck → UpdateAll`)
- [Codeunit 90 "Purch.-Post"](../codeunit/90.md) (1 call: `CommitAndUpdateAnalysisVeiw → UpdateAll`)
- [Codeunit 9030 "Undo Transfer Shipment"](../codeunit/9030.md) (1 call: `OnRun → UpdateAll`)
- [Page 7133 "Item Budget Entries"](../page/7133.md) (1 call: `OnClosePage → SetLastBudgetEntryNo`)
- [Report 795 "Adjust Cost - Item Entries"](../report/795.md) (1 call: `RunCostAdjustment → UpdateAll`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC25

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## 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 Item Analysis View")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
