---
id: object/codeunit/762
type: object
title: Codeunit 762 "Acc. Sched. Chart Management"
summary: Codeunit 762 "Acc. Sched. Chart Management" in Base Application (Microsoft.Finance.FinancialReports). 9 public procedures, 3 events. Present since at least BC23, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: null
  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: 51b89a9b5cefaa2bc07b97044434d2b747ff375c8e2e324231683b9b6a663684
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Finance/FinancialReports/AccSchedChartManagement.Codeunit.al
    title: src/Layers/W1/BaseApp/Finance/FinancialReports/AccSchedChartManagement.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: 762
name: Acc. Sched. Chart Management
namespace: Microsoft.Finance.FinancialReports
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 20
  events: 3
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 4
  called_by: 4
  implements: 0
---

# Codeunit 762 "Acc. Sched. Chart Management"

> Codeunit 762 "Acc. Sched. Chart Management" in Base Application (Microsoft.Finance.FinancialReports). 9 public procedures, 3 events. Present since at least BC23, still in BC30.

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

## Events published

- `OnDrillDownOnGLAccountOnBeforeRunChartOfAccsAnalysisView(var GLAccount: Record "G/L Account"; var ColumnLayout: Record "Column Layout")` (integration): Integration event raised before running Chart of Accounts Analysis View from GL account drill-down. Enables custom handling of analysis view navigation and filtering.
- `OnDrillDownTotalingTypeElseCase(var AccScheduleLine: Record "Acc. Schedule Line"; var ColumnLayout: Record "Column Layout"; var BusChartBuf: Record "Business Chart Buffer")` (integration): Integration event raised for custom totaling type drill-down handling. Enables extensibility for custom account schedule line totaling types not covered by standard logic.
- `OnDrillDownOnGLAccountOnBeforeRunChartOfAccountsGL(var GLAccount: Record "G/L Account"; var ColumnLayout: Record "Column Layout")` (integration): Integration event raised before running Chart of Accounts GL page from GL account drill-down. Enables custom handling of GL account navigation and filtering.

## Procedures

- `GetSetupRecordset(var AccountSchedulesChartSetup: Record "Account Schedules Chart Setup"; ChartName: Text[60]; Move: Integer)`: Retrieves and positions the account schedules chart setup record based on chart name and navigation direction. Handles navigation through multiple chart setups and tracks last viewed setup.
- `DrillDown(var BusChartBuf: Record "Business Chart Buffer"; AccountSchedulesChartSetup: Record "Account Schedules Chart Setup")`: Performs drill-down operation from chart data point to underlying financial data and analysis. Opens appropriate pages based on account schedule line totaling type and column layout configuration.
- `UpdateData(var BusChartBuf: Record "Business Chart Buffer"; Period: Option " ",Next,Previous; AccountSchedulesChartSetup: Record "Account Schedules Chart Setup")`: Updates chart data with account schedule calculations for the specified period and chart setup. Populates business chart buffer with financial data based on account schedule and column layout definitions.
- `GetCorrectedDate(BusChartBuf: Record "Business Chart Buffer"; InputDate: Date; PeriodNo: Integer): Date`: Calculates corrected date based on period length and period number for chart axis positioning. Adjusts dates for period-based chart display and handles different period length types.
- `CheckDuplicateAccScheduleLineDescription(AccScheduleName: Code[10])`: Validates account schedule line descriptions for duplicates within the specified account schedule. Raises error if duplicate descriptions are found to prevent chart display ambiguity.
- `CheckDuplicateColumnLayoutColumnHeader(ColumnLayoutName: Code[10])`: Validates column layout headers for duplicates within the specified column layout definition. Raises error if duplicate column headers are found to prevent chart display ambiguity.
- `SelectAll(AccSchedChartSetupLine: Record "Acc. Sched. Chart Setup Line"; IsMeasure: Boolean)`: Selects all chart setup lines and applies default chart types for measures or dimensions. Enables all available data series in the chart with appropriate visualization settings.
- `DeselectAll(AccSchedChartSetupLine: Record "Acc. Sched. Chart Setup Line"; IsMeasure: Boolean)`: Deselects all chart setup lines and removes chart type assignments for measures or dimensions. Hides all data series from the chart display by clearing visualization settings.
- `GetAccSchedMgtRef(var RefAccSchedManagement: Codeunit AccSchedManagement)`: Provides reference to the internal account schedule management codeunit for external access. Enables external code to access account schedule calculation and management functionality.

Plus 8 local procedures.

## Triggers

OnRun

## Calls

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.

- [Codeunit 8 "AccSchedManagement"](../codeunit/8.md) (10 calls: `DrillDownOnCFAccount → GetDimTotalingFilter`, `DrillDownOnCFAccount → SetCFAccColumnFilter`, `DrillDownOnCFAccount → SetCFAccRowFilter`, …)
- [Page 1100 "Chart of Cost Types"](../page/1100.md) (1 call: `DrillDownOnCostType → (object)`)
- [Page 570 "Chart of Accounts (G/L)"](../page/570.md) (1 call: `DrillDownOnGLAccount → (object)`)
- [Page 851 "Chart of Cash Flow Accounts"](../page/851.md) (1 call: `DrillDownOnCFAccount → (object)`)

## Called by

- [Codeunit 1315 "Chart Management"](../codeunit/1315.md) (3 calls: `DataPointClicked → DrillDown`, `UpdateChart → GetSetupRecordset`, `UpdateChart → UpdateData`)
- [Codeunit 9059 "Acc. Payable Performance"](../codeunit/9059.md) (3 calls: `DataPointClicked → DrillDown`, `UpdateChart → GetSetupRecordset`, `UpdateChart → UpdateData`)
- [Page 762 "Finance Performance"](../page/762.md) (2 calls: `MoveAndUpdateChart → GetSetupRecordset`, `MoveAndUpdateChart → UpdateData`)
- [Codeunit 770 "Analysis Report Chart Mgt."](../codeunit/770.md) (1 call: `CalcAndInsertPeriodAxis → GetCorrectedDate`)

## Across versions

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

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: "Acc. Sched. Chart Management")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
