---
id: object/table/50
type: object
title: Table 50 "Accounting Period"
summary: Table 50 "Accounting Period" in Base Application (Microsoft.Foundation.Period). 7 fields, 7 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC24-25, BC29.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "29"
  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: dd8782d995b19ae626a2d29c3b0bea2ca60ff60596cab6ed806912b5e68c2d98
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Foundation/Period/AccountingPeriod.Table.al
    title: src/Layers/W1/BaseApp/Foundation/Period/AccountingPeriod.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/finance-accounting-periods-and-fiscal-years
    - https://learn.microsoft.com/dynamics365/business-central/finance-accounting
    - https://learn.microsoft.com/dynamics365/business-central/year-close-account-periods
    - https://learn.microsoft.com/dynamics365/business-central/year-close-years-periods
    - https://learn.microsoft.com/dynamics365/business-central/year-how-post-year-end-close-entry
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_accountingperiod_get
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_accountingperiod
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/finance
    - topic/business-central/business-functionality/finance/closing-years-and-periods
    - topic/business-central/business-functionality/set-up-business-central/set-up-finance
  localizations:
    - localization/fr
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 50
name: Accounting Period
namespace: Microsoft.Foundation.Period
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "25"
  - "29"
source_major: "29"
obsolete: null
countries:
  - fr
ms_search_form_ids: []
counts:
  fields: 7
  procedures: 8
  events: 1
  subscribers: 0
relations:
  out: 1
  referenced_by: 1
  pages: 3
  extended_by: 1
  event_subscribers: 4
  calls: 1
  called_by: 0
  implements: 0
---

# Table 50 "Accounting Period"

> Table 50 "Accounting Period" in Base Application (Microsoft.Foundation.Period). 7 fields, 7 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC24-25, BC29.

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

Learn documents this table through its pages: [Page 100 "Accounting Periods"](../page/100.md) (5 Learn pages), [Page 30086 "APIV2 - Accounting Periods"](../page/30086.md) (2).

## Properties

| Property | Value |
|---|---|
| Caption | Accounting Period |
| DataClassification | CustomerContent |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Starting Date | Date | Specifies the date that the accounting period will begin. | NotBlank |
| 2 | Name | Text[10] | Specifies the name of the accounting period. |  |
| 3 | New Fiscal Year | Boolean | Specifies whether to use the accounting period to start a fiscal year. |  |
| 4 | Closed | Boolean | Specifies if the accounting period belongs to a closed fiscal year. | not editable |
| 5 | Date Locked | Boolean | Specifies if you can change the starting date for the accounting period. | not editable |
| 5804 | Average Cost Calc. Type | Enum "Average Cost Calculation Type" | Specifies how the average cost for items in the accounting period was calculated. | enum [Enum 5804 "Average Cost Calculation Type"](../enum/5804.md); not editable |
| 5805 | Average Cost Period | Enum "Average Cost Period Type" | Specifies the period type that was used in the accounting period to calculate the average cost. | enum [Enum 5806 "Average Cost Period Type"](../enum/5806.md); not editable |

## Keys

- Key1: Starting Date (clustered)
- Key2: New Fiscal Year, Date Locked
- Key3: Closed

## Events published

- `OnBeforeMakeRecurringTexts(PostingDate: Date; var DocumentNo: Code[20]; var Description: Text[100]; var IsHandled: Boolean)` (integration)

## Trigger event subscribers

- OnAfterDeleteEvent: [Codeunit 5810 "Change Average Cost Setting"](../codeunit/5810.md) UpdateAvgCostOnAfterDeleteAccountingPeriod
- OnAfterInsertEvent: [Codeunit 5810 "Change Average Cost Setting"](../codeunit/5810.md) UpdateAvgCostOnAfterInsertAccountingPeriod
- OnAfterModifyEvent: [Codeunit 5810 "Change Average Cost Setting"](../codeunit/5810.md) UpdateAvgCostOnAfterModifyAccountingPeriod
- OnAfterRenameEvent: [Codeunit 5810 "Change Average Cost Setting"](../codeunit/5810.md) UpdateAvgCostOnAfterRenameAccountingPeriod

## Procedures

- `UpdateAvgItems()`
- `GetFiscalYearEndDate(ReferenceDate: Date): Date`
- `GetFiscalYearEndDate(var AccountingPeriod: Record "Accounting Period"; ReferenceDate: Date): Date`
- `GetFiscalYearStartDate(ReferenceDate: Date): Date`
- `GetFiscalYearStartDate(var AccountingPeriod: Record "Accounting Period"; ReferenceDate: Date): Date`
- `CorrespondingAccountingPeriodExists(var AccountingPeriod: Record "Accounting Period"; AccSchedDate: Date): Boolean`
- `MakeRecurringTexts(PostingDate: Date; var DocumentNo: Code[20]; var Description: Text[100])`

## Triggers

OnDelete, OnInsert, OnRename

## Relations

- lookup page [Page 100 "Accounting Periods"](../page/100.md)

## Referenced by

1 fields in 1 objects relate to this table (TableRelation or CalcFormula).

- [Table 5260 "G/L Account Mapping Header"](../table/5260.md): Accounting Period

## Pages and codeunits on this table

- [Page 100 "Accounting Periods"](../page/100.md) (source table)
- [Page 30086 "APIV2 - Accounting Periods"](../page/30086.md) (source table)
- [Page 30300 "API Finance - Acc Periods"](../page/30300.md) (source table)
- [Codeunit 6 "Fiscal Year-Close"](../codeunit/6.md) (codeunit runs on it)

## Extended by

- [Table extension 36950 "Accounting Period"](../tableextension/36950.md)

## 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 5810 "Change Average Cost Setting"](../codeunit/5810.md) (1 call: `UpdateAvgItems → UpdateAvgCostFromAccPeriodChg`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24-25, BC29

## Countries that replace it

[FR](../../localizations/fr.md)

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: "table", object_name: "Accounting Period")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
