---
id: object/codeunit/360
type: object
title: Codeunit 360 "Accounting Period Mgt."
summary: Codeunit 360 "Accounting Period Mgt." in Base Application (Microsoft.Foundation.Period). 13 public procedures, 1 event subscribers. Present since at least BC23, still in BC30, changed in BC25, BC27.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "27"
  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: a126e07f52ac024a3cbb05973b07ba305a192057604308b8d8e4d07be1c39b66
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Foundation/Period/AccountingPeriodMgt.Codeunit.al
    title: src/Layers/W1/BaseApp/Foundation/Period/AccountingPeriodMgt.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: 360
name: Accounting Period Mgt.
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:
  - "25"
  - "27"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 19
  events: 0
  subscribers: 1
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 18
  implements: 0
---

# Codeunit 360 "Accounting Period Mgt."

> Codeunit 360 "Accounting Period Mgt." in Base Application (Microsoft.Foundation.Period). 13 public procedures, 1 event subscribers. Present since at least BC23, still in BC30, changed in BC25, BC27.

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

## Properties

| Property | Value |
|---|---|
| Permissions | tabledata "Accounting Period" = R |

## Event subscriptions

- OnResolveDateFilterToken subscribes to Codeunit "Filter Tokens" OnResolveDateFilterToken

## Procedures

- `GetPeriodStartingDate(): Date`
- `CheckPostingDateInFiscalYear(PostingDate: Date)`
- `FindFiscalYear(BalanceDate: Date): Date`
- `FindEndOfFiscalYear(BalanceDate: Date): Date`
- `AccPeriodStartEnd(Date: Date; var StartDate: Date; var EndDate: Date; var PeriodError: Boolean; Steps: Integer; Type: Enum "Period Type"; RangeFromType: Enum "Period Formula Range"; RangeToType: Enum "Period Formula Range"; RangeFromInt: Integer; RangeToInt: Integer)`
- `AccPeriodEndDate(StartDate: Date): Date`
- `AccPeriodStartOrEnd(AccountingPeriod: Record "Accounting Period"; CurrentPeriodNo: Integer; RangeType: Enum "Period Formula Range"; RangeInt: Integer; EndDate: Boolean; var Date: Date)`
- `InitStartYearAccountingPeriod(var AccountingPeriod: Record "Accounting Period"; PostingDate: Date)`
- `InitDefaultAccountingPeriod(var AccountingPeriod: Record "Accounting Period"; PostingDate: Date)`
- `GetDefaultPeriodEndingDate(PostingDate: Date): Date`
- `GetPositionDifferentCharacter(Character: Text[50]; Text: Text; var Position: Integer)`
- `GetPositionMatchingCharacter(Character: Text[50]; Text: Text; var Position: Integer)`
- `FindText(var PartOfText: Text; Text: Text; Position: Integer): Boolean`

Plus 5 local procedures.

## Triggers

OnRun

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

- [Codeunit 8 "AccSchedManagement"](../codeunit/8.md) (7 calls: `AccPeriodStartEnd → AccPeriodStartEnd`, `CalcCell → FindFiscalYear`, `CalcColumnDates → FindFiscalYear`, …)
- [Codeunit 7110 "Analysis Report Management"](../codeunit/7110.md) (4 calls: `AccPeriodStartEnd → AccPeriodStartEnd`, `CalcCell → FindFiscalYear`, `SetItemColumnFilters → FindEndOfFiscalYear`, …)
- [Codeunit 362 "PeriodPageManagement"](../codeunit/362.md) (3 calls: `CopyAccountingPeriod → GetDefaultPeriodEndingDate`, `FindDate → InitDefaultAccountingPeriod`, `NextDate → InitDefaultAccountingPeriod`)
- [Codeunit 11 "Gen. Jnl.-Check Line"](../codeunit/11.md) (1 call: `CheckDates → CheckPostingDateInFiscalYear`)
- [Codeunit 12 "Gen. Jnl.-Post Line"](../codeunit/12.md) (1 call: `StartPosting → GetPeriodStartingDate`)
- [Codeunit 1720 "Deferral Utilities"](../codeunit/1720.md) (1 call: `IsAccountingPeriodExist → InitDefaultAccountingPeriod`)
- [Codeunit 2622 "Stat. Acc. Fin Reporting Mgt"](../codeunit/2622.md) (1 call: `SetStatAccColumnFilters → FindEndOfFiscalYear`)
- [Codeunit 5618 "Table Depr. Calculation"](../codeunit/5618.md) (1 call: `CreateTableBuffer → InitDefaultAccountingPeriod`)
- [Codeunit 5631 "FA Jnl.-Check Line"](../codeunit/5631.md) (1 call: `CheckFADepAcrossFiscalYear → FindFiscalYear`)
- [Codeunit 6237 "Acc. Sch. Line Mgmt. Helper"](../codeunit/6237.md) (1 call: `SetSustAccColumnFilters → FindEndOfFiscalYear`)
- [Codeunit 9025 "Small Business Report Catalog"](../codeunit/9025.md) (1 call: `RunCustomerStatementReport → FindFiscalYear`)
- [Codeunit 921 "Period Formula Parser"](../codeunit/921.md) (1 call: `CalculatePeriodStartEnd → AccPeriodStartEnd`)
- [Report 25 "Account Schedule"](../report/25.md) (1 call: `InitAccSched → FindFiscalYear`)
- [Report 7112 "Analysis Report"](../report/7112.md) (1 call: `InitAnalysisLine → FindFiscalYear`)
- [Report 86 "Adjust Add. Reporting Currency"](../report/86.md) (1 call: `InsertGLEntry → GetPeriodStartingDate`)
- [Table 1704 "Posted Deferral Header"](../table/1704.md) (1 call: `CalculatePeriodFilter → AccPeriodStartEnd`)
- [Table 5802 "Value Entry"](../table/5802.md) (1 call: `GetAvgFromDate → InitDefaultAccountingPeriod`)
- [Table 5804 "Avg. Cost Adjmt. Entry Point"](../table/5804.md) (1 call: `GetFiscalYearAccPeriod → InitStartYearAccountingPeriod`)

## Across versions

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

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