---
id: object/codeunit/99000755
type: object
title: Codeunit 99000755 "Shop Calendar Management"
summary: Codeunit 99000755 "Shop Calendar Management" in Base Application (Microsoft.Manufacturing.Capacity). 7 public procedures, 6 events, 3 event subscribers. Present since at least BC23, still in BC30, changed in 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: f3e6df5278db5399c83d16c615584695cbacee7bb50909cec7e9ba5e0f1f3a6f
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Manufacturing/Capacity/ShopCalendarManagement.Codeunit.al
    title: src/Layers/W1/BaseApp/Manufacturing/Capacity/ShopCalendarManagement.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: 99000755
name: Shop Calendar Management
namespace: Microsoft.Manufacturing.Capacity
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "27"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 20
  events: 6
  subscribers: 3
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 2
  called_by: 17
  implements: 0
---

# Codeunit 99000755 "Shop Calendar Management"

> Codeunit 99000755 "Shop Calendar Management" in Base Application (Microsoft.Manufacturing.Capacity). 7 public procedures, 6 events, 3 event subscribers. Present since at least BC23, still in BC30, changed in BC27.

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

## Properties

| Property | Value |
|---|---|
| SingleInstance | true |

## Events published

- `OnAfterTimeFactor(var CapUnitOfMeasure: Record "Capacity Unit of Measure"; var Factor: Decimal)` (integration)
- `OnBeforeCalculateSchedule(var WorkCenter: Record "Work Center"; StartingDate: Date)` (integration)
- `OnCalculateScheduleOnBeforeProcessShopCalendar(var ShopCalendarWorkingDays: Record "Shop Calendar Working Days"; PeriodDate: Date; StartingDate: Date; EndingDate: Date; var IsHandled: Boolean)` (integration)
- `OnCalculateScheduleOnSetShopCalendarFilters(var ShopCalendarWorkingDays: Record "Shop Calendar Working Days"; PeriodDate: Date)` (integration)
- `OnAfterCalculateSchedule(CapacityType: Enum "Capacity Type"; No: Code[20]; WorkCenterNo: Code[20]; StartingDate: Date; EndingDate: Date)` (integration)
- `OnCalculateScheduleOnAfterProcessShopCalendar(CapacityType: Enum "Capacity Type"; No: Code[20]; WorkCenterNo: Code[20]; PeriodDate: Date)` (integration)

## Event subscriptions

- OnAfterModifyWorkCenter subscribes to Table "Work Center" OnAfterModifyEvent
- OnAfterModifyShopCalendarHoliday subscribes to Table "Shop Calendar Holiday" OnAfterModifyEvent
- OnAfterModifyCapacityUnitOfMeasure subscribes to Table "Capacity Unit of Measure" OnAfterModifyEvent

## Procedures

- `QtyperTimeUnitofMeasure(WorkCenterNo: Code[20]; UnitOfMeasureCode: Code[10]): Decimal`
- `TimeFactor(UnitOfMeasureCode: Code[10]): Decimal`
- `CalculateSchedule(CapacityType: Enum "Capacity Type"; No: Code[20]; WorkCenterNo: Code[20]; StartingDate: Date; EndingDate: Date)`
- `ClearInternals()`
- `CalcTimeDelta(EndingTime: Time; StartingTime: Time): Integer`
- `CalcTimeSubtract(Time: Time; Value: Integer): Time`
- `GetMaxDate(): Date`

Plus 4 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 7600 "Calendar Management"](../codeunit/7600.md) (2 calls: `CalcTimeDelta → CalcTimeDelta`, `CalcTimeSubtract → CalcTimeSubtract`)
- [Codeunit 99000759 "Calendar Absence Management"](../codeunit/99000759.md) (1 call: `CalculateSchedule → UpdateAbsence`)

## Called by

- [Codeunit 99000774 "Calculate Routing Line"](../codeunit/99000774.md) (21 calls: `CalcCostInclSetup → QtyperTimeUnitofMeasure`, `CalcDuration → TimeFactor`, `CalcMove → TimeFactor`, …)
- [Codeunit 99000810 "Calculate Planning Route Line"](../codeunit/99000810.md) (17 calls: `CalcMoveTimeBack → TimeFactor`, `CalcRoutingLineBack → GetMaxDate`, `CalcRoutingLineBack → TimeFactor`, …)
- [Codeunit 99000758 "Mfg. Cost Calculation Mgt."](../codeunit/99000758.md) (2 calls: `CalcProdOrderActTimeUsed → TimeFactor`, `CalculateCostTime → QtyperTimeUnitofMeasure`)
- [Table 99000757 "Calendar Entry"](../table/99000757.md) (2 calls: `CalculateCapacity → CalcTimeDelta`, `CalculateCapacity → TimeFactor`)
- [Codeunit 5407 "Prod. Order Status Management"](../codeunit/5407.md) (1 call: `SetTimeAndQuantityOmItemJnlLine → QtyperTimeUnitofMeasure`)
- [Codeunit 99000762 "Mfg. Item Journal Mgt."](../codeunit/99000762.md) (1 call: `OnValidateCapUnitOfMeasureCodeOnSetQtyPerCapUnitOfMeasure → QtyperTimeUnitofMeasure`)
- [Codeunit 99000773 "Calculate Prod. Order"](../codeunit/99000773.md) (1 call: `CalculateRoutingFromActual → GetMaxDate`)
- [Codeunit 99000808 "PlanningRoutingManagement"](../codeunit/99000808.md) (1 call: `CalculateRoutingFromActual → GetMaxDate`)
- [Page 5408 "Prod. Order Routing Lines"](../page/5408.md) (1 call: `ExpCapacityNeed → TimeFactor`)
- [Page 9295 "Work Ctr. Grp. Calendar Matrix"](../page/9295.md) (1 call: `CalculateCapacity → TimeFactor`)
- [Page 99000816 "Production Order Statistics"](../page/99000816.md) (1 call: `OnAfterGetRecord → TimeFactor`)
- [Page 99000817 "Prod. Order Routing"](../page/99000817.md) (1 call: `ExpCapacityNeed → TimeFactor`)
- [Page 99000892 "Work Center Group Load Lines"](../page/99000892.md) (1 call: `CalculateCapacity → TimeFactor`)
- [Report 99000780 "Capacity Task List"](../report/99000780.md) (1 call: `CalcExpectedCapacityNeed → TimeFactor`)
- [Report 99001045 "Calc. Machine Center Calendar"](../report/99001045.md) (1 call: `CalculateMachineCenterSchedule → CalculateSchedule`)
- [Table extension 6247 "Sust. Prod. Order Routing Line"](../tableextension/6247.md) (1 call: `GetUnitCostPerOperation → QtyperTimeUnitofMeasure`)
- [Table extension 99000820 "Mfg. BOM Buffer"](../tableextension/99000820.md) (1 call: `CalcQtyPerParentFromProdRouting → TimeFactor`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: 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: "Shop Calendar Management")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
