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

# Codeunit 764 "Aged Acc. Payable"

> Codeunit 764 "Aged Acc. Payable" in Base Application (Microsoft.Finance.ReceivablesPayables). 7 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC24.

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

## Events published

- `OnCalculateAgedAccPayableOnAfterFilterVendLedgEntry(var VendorLedgerEntry: Record "Vendor Ledger Entry")` (integration): Integration event raised after filtering vendor ledger entries during aged accounts payable calculation. Enables custom filtering logic and additional entry selection criteria.

## Procedures

- `UpdateData(var BusChartBuf: Record "Business Chart Buffer"; var TempEntryNoAmountBuf: Record "Entry No. Amount Buffer" temporary)`: Updates business chart data with aged accounts payable information. Calculates vendor aging amounts by period and populates chart buffer for visualization.
- `UpdateDataPerVendor(var BusChartBuf: Record "Business Chart Buffer"; VendorNo: Code[20]; var TempEntryNoAmountBuf: Record "Entry No. Amount Buffer" temporary)`
- `DrillDown(var BusChartBuf: Record "Business Chart Buffer"; VendorNo: Code[20]; var TempEntryNoAmountBuf: Record "Entry No. Amount Buffer" temporary)`: Provides drill-down functionality for aged accounts payable chart data. Opens vendor ledger entries filtered by vendor and aging period for detailed analysis.
- `DrillDownByGroup(var BusChartBuf: Record "Business Chart Buffer"; var TempEntryNoAmountBuf: Record "Entry No. Amount Buffer" temporary)`: Provides drill-down functionality for aged accounts payable by vendor group. Opens aggregated vendor ledger entries for the selected aging period.
- `Description(PerVendor: Boolean): Text`: Returns description text for aged accounts payable charts. Provides different descriptions for per-vendor and summary aging analysis.
- `UpdateStatusText(BusChartBuf: Record "Business Chart Buffer"): Text`: Updates status text for the business chart display. Provides current status information for chart visualization.
- `SaveSettings(BusChartBuf: Record "Business Chart Buffer")`: Saves user settings for aged accounts payable chart configuration. Persists period length and other chart preferences for future sessions.

Plus 10 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 763 "Aged Acc. Receivable"](../codeunit/763.md) (8 calls: `AmountText → AmountText`, `DateFilterByAge → DateFilterByAge`, `FormatColumnName → FormatColumnName`, …)
- [Page 29 "Vendor Ledger Entries"](../page/29.md) (1 call: `DrillDownVendLedgEntries → (object)`)

## Called by

- [Codeunit 1315 "Chart Management"](../codeunit/1315.md) (4 calls: `ChartDescription → Description`, `DataPointClicked → DrillDownByGroup`, `UpdateChart → SaveSettings`, …)
- [Codeunit 9059 "Acc. Payable Performance"](../codeunit/9059.md) (4 calls: `ChartDescription → Description`, `DataPointClicked → DrillDownByGroup`, `UpdateChart → SaveSettings`, …)
- [Page 769 "Aged Acc. Payable Chart"](../page/769.md) (2 calls: `UpdateChart → UpdateDataPerVendor`, `UpdateStatusText → UpdateStatusText`)
- [Codeunit 6306 "PBI Aged Acc. Calc"](../codeunit/6306.md) (1 call: `SetPeriodAndUpdateChart → UpdateData`)

## Across versions

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

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