---
title: "Codeunit 99000774 Calculate Routing Line, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/points/
object: https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 99000774 Calculate Routing Line, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/points/

37 procedures and triggers with a step in src/Layers/W1/BaseApp/Manufacturing/Routing/CalculateRoutingLine.Codeunit.al, in source order, read from the text, not from a run.

## CreateCapNeed

[Line 93](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L93), local.

- [95](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L95) calls `InitProdOrderCapNeed`
- [121](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L121) calls [Table 5410 Prod. Order Capacity Need](https://jonas-paprotka.de/ref/table/5410-prod-order-capacity-need/) `UpdateDatetime`
- [123](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L123) raises `OnBeforeProdOrderCapNeedInsert`
- [124](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L124) writes [Table 5410 Prod. Order Capacity Need](https://jonas-paprotka.de/ref/table/5410-prod-order-capacity-need/) Insert
- [128](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L128) raises `OnAfterCreateCapNeeded`

## InitProdOrderCapNeed

[Line 133](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L133), local.

- [139](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L139) raises `OnBeforeInitProdOrderCapNeed`
- [156](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L156) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [162](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L162) raises `OnInitProdOrderCapNeedOnBeforeUpdateAllocatedTimeAndExpectedCapacityNeed`
- [164](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L164) calls `CalcActuallyPostedCapacityTime`
- [165](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L165) calls `CalcDistributedCapacityNeedForOperation`
- [173](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L173) raises `OnAfterInitProdOrderCapNeed`

## CreateLoadBack

[Line 176](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L176), local.

- [188](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L188) raises `OnBeforeCreateLoadBack`, IsHandled
- [198](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L198) calls `CreateCalendarEntry`
- [200](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L200) calls `GetCurrentWorkCenterTimeFactorAndRounding`
- [210](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L210) calls `CalcLoadBackAvailQtyBase`
- [219](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L219) raises `OnCreateLoadBackOnAfterCalcRelevantEfficiency`
- [222](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L222) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `CalcTimeSubtract`
- [226](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L226) raises `OnCreateLoadBackOnBeforeCheckWrite`
- [229](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L229) calls `CreateCapNeed`
- [252](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L252) calls `ReturnNextCalendarEntry`
- [257](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L257) raises `OnCreateLoadBackOnBeforeEndStopLoop`

## CalcLoadBackAvailQtyBase

[Line 263](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L263), local.

- [268](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L268) raises `OnBeforeCalcLoadBackAvailQtyBase`, IsHandled
- [273](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L273) calls `CalcAvailQtyBase`

## CreateLoadForward

[Line 277](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L277), local.

- [289](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L289) raises `OnBeforeCreateLoadForward`, IsHandled
- [299](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L299) calls `CreateCalendarEntry`
- [306](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L306) calls `GetCurrentWorkCenterTimeFactorAndRounding`
- [308](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L308) calls `GetCurrentWorkCenterTimeFactorAndRounding`
- [318](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L318) calls `CalcLoadForwardAvailQtyBase`
- [329](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L329) raises `OnCreateLoadForwardOnBeforeCalcEndingTime`, IsHandled
- [335](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L335) raises `OnCreateLoadForwardOnBeforeCheckWrite`
- [338](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L338) calls `CreateCapNeed`
- [365](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L365) raises `OnCreateLoadForwardOnAfterScheduleProdOrderRoutingLineManually`
- [372](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L372) calls `ReturnNextCalendarEntry`
- [377](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L377) raises `OnCreateLoadForwardOnBeforeEndStopLoop`

## CalcLoadForwardAvailQtyBase

[Line 383](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L383), local.

- [388](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L388) raises `OnBeforeCalcLoadForwardAvailQtyBase`, IsHandled
- [393](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L393) calls `CalcAvailQtyBase`

## AvailableCapacity

[Line 397](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L397), local.

- [404](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L404) calls [Table 99000757 Calendar Entry](https://jonas-paprotka.de/ref/table/99000757-calendar-entry/) `SetCapacityFilters`
- [416](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L416) calls `CalcDuration`
- [418](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L418) calls `CalcDuration`
- [420](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L420) calls `CalcDuration`

## LoadCapBack

[Line 431](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L431), local.

- [433](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L433) raises `OnBeforeLoadCapBack`
- [438](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L438) calls [Table 99000757 Calendar Entry](https://jonas-paprotka.de/ref/table/99000757-calendar-entry/) `SetCapacityFilters`
- [441](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L441) raises `OnLoadCapBackOnAfterSetCalendarEntryFilters`
- [443](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L443) calls `CreateLoadBack`
- [445](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L445) raises `OnLoadCapBackOnAfterCreateLoadBack`
- [450](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L450) calls `TestForError`

## LoadCapForward

[Line 453](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L453).

- [460](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L460) raises `OnBeforeLoadCapForward`, IsHandled
- [467](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L467) calls [Table 99000757 Calendar Entry](https://jonas-paprotka.de/ref/table/99000757-calendar-entry/) `SetCapacityFilters`
- [475](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L475) raises `OnLoadCapForwardOnScheduleManuallyOnBeforeCheckDateTimes`
- [482](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L482) calls `AvailableCapacity`
- [484](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L484) calls `TestForError`
- [491](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L491) raises `OnLoadCapForwardOnBeforeCreateLoadForward`
- [492](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L492) calls `CreateLoadForward`
- [493](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L493) raises `OnLoadCapForwardOnAfterCreateLoadForward`
- [498](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L498) calls `TestForError`

## CalcMove

[Line 501](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L501), local.

- [506](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L506) raises `OnBeforeCalcMove`, IsHandled
- [513](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L513) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [514](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L514) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [517](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L517) calls `LoadCapBack`

## CalcWaitBack

[Line 520](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L520), local.

- [525](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L525) raises `OnBeforeCalcWaitBack`, IsHandled
- [532](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L532) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [533](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L533) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [536](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L536) calls `LoadCapBack`

## GetSendAheadStartingTime

[Line 539](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L539), local.

- [595](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L595) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [596](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L596) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [600](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L600) calls [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) `RunTimePer`
- [601](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L601) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [602](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L602) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [607](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L607) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [608](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L608) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [613](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L613) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [614](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L614) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [622](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L622) calls `LoadCapBack`
- [624](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L624) calls `LoadCapBack`
- [626](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L626) calls `LoadCapBack`
- [628](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L628) calls `LoadCapBack`
- [638](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L638) calls [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) `RunTimePer`
- [639](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L639) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [640](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L640) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [645](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L645) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [646](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L646) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [651](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L651) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [652](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L652) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [656](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L656) calls `LoadCapForward`
- [658](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L658) calls `LoadCapForward`
- [660](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L660) calls `LoadCapForward`
- [662](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L662) calls [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) `UpdateDatetime`
- [666](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L666) calls `FilterCalendarEntryBeforeOrOnDateTime`

## CalcRoutingLineBack

[Line 678](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L678).

- [695](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L695) raises `OnBeforeCalcRoutingLineBack`, IsHandled
- [719](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L719) raises `OnCalcRoutingLineBackOnAfterCalcShouldCalcNextOperation`
- [726](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L726) calls `SetRoutingLineFilters`
- [731](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L731) calls `GetSendAheadStartingTime`
- [734](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L734) calls `SetMinDateTime`
- [741](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L741) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [742](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L742) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [747](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L747) writes [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) Insert
- [752](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L752) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [753](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L753) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [757](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L757) writes [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) DeleteAll
- [760](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L760) writes [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) Insert
- [764](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L764) writes [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) DeleteAll
- [767](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L767) writes [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) Insert
- [781](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L781) calls `GetSendAheadStartingTime`
- [793](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L793) raises `OnCalcRoutingLineBackOnBeforeGetQueueTime`
- [798](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L798) calls [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) `UpdateDatetime`
- [799](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L799) writes [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) Modify
- [810](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L810) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [811](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L811) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [814](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L814) calls `LoadCapBack`
- [818](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L818) calls `SetLotSizesToMax`
- [821](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L821) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `GetMaxDate`
- [836](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L836) calls `CalcMove`
- [838](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L838) calls `CalcWaitBack`
- [845](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L845) calls [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) `RunTimePer`
- [846](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L846) raises `OnCalculateRoutingLineBackOnAfterCalcRemainNeedQtyForLotSize`
- [850](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L850) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [851](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L851) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [854](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L854) calls `GetConstrainedSetup`
- [858](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L858) calls `FinitelyLoadCapBack`
- [860](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L860) calls `LoadCapBack`
- [864](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L864) calls `FindSendAheadStartingTime`
- [871](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L871) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [872](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L872) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [874](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L874) raises `OnCalcRoutingLineBackOnAfterCalcRemainNeedQty`
- [876](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L876) calls `GetConstrainedSetup`
- [880](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L880) calls `FinitelyLoadCapBack`
- [882](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L882) calls `LoadCapBack`
- [887](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L887) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `GetMaxDate`
- [892](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L892) calls [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) `UpdateDatetime`
- [893](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L893) writes [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) Modify
- [895](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L895) raises `OnAfterCalcRoutingLineBack`

## GetConstrainedSetup

[Line 898](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L898), local.

- [903](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L903) raises `OnBeforeGetConstrainedSetup`, IsHandled

## GetSendAheadEndingTime

[Line 911](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L911), local.

- [966](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L966) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [967](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L967) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [971](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L971) calls [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) `RunTimePer`
- [972](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L972) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [973](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L973) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [978](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L978) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [979](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L979) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [984](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L984) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [985](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L985) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [987](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L987) raises `OnGetSendAheadEndingTimeOnAfterCalcTimes`
- [994](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L994) calls `LoadCapForward`
- [996](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L996) calls `LoadCapForward`
- [998](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L998) calls `LoadCapForward`
- [1000](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1000) calls `LoadCapForward`
- [1010](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1010) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1011](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1011) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1015](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1015) calls [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) `RunTimePer`
- [1016](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1016) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1017](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1017) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1019](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1019) raises `OnGetSendAheadEndingTimeOnAfterCalcSetupAndRunTime`
- [1022](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1022) calls `LoadCapForward`
- [1024](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1024) calls `LoadCapForward`
- [1027](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1027) calls [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) `UpdateDatetime`
- [1032](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1032) calls `LoadCapBack`
- [1034](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1034) calls `LoadCapBack`

## CalcRoutingLineForward

[Line 1044](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1044).

- [1058](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1058) raises `OnBeforeCalcRoutingLineForward`, IsHandled
- [1079](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1079) writes [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) DeleteAll
- [1081](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1081) calls `SetRoutingLineFilters`
- [1086](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1086) calls `GetSendAheadEndingTime`
- [1089](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1089) writes [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) Insert
- [1091](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1091) calls `SetMaxDateTime`
- [1100](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1100) calls [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) `RunTimePer`
- [1104](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1104) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1105](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1105) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1124](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1124) calls [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) `UpdateDatetime`
- [1125](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1125) writes [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) Modify
- [1128](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1128) calls `SetLotSizesToMax`
- [1133](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1133) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1134](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1134) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1137](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1137) raises `OnCalcRoutingLineForwardOnBeforeLoadCapForward`
- [1138](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1138) calls `LoadCapForward`
- [1142](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1142) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1143](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1143) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1145](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1145) raises `OnCalcRoutingLineForwardOnAfterCalcRemainNeedQty`
- [1148](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1148) calls `GetConstrainedSetup`
- [1152](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1152) calls `FinitelyLoadCapForward`
- [1154](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1154) calls `LoadCapForward`
- [1159](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1159) calls `SetMaxDateTime`
- [1166](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1166) calls [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) `RunTimePer`
- [1167](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1167) raises `OnCalculateRoutingLineForwardOnAfterCalcRemainNeedQtyForLotSize`
- [1171](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1171) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1172](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1172) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1175](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1175) calls `GetConstrainedSetup`
- [1179](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1179) calls `FinitelyLoadCapForward`
- [1181](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1181) calls `LoadCapForward`
- [1185](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1185) calls `FindSendAheadEndingTime`
- [1190](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1190) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1191](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1191) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1194](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1194) raises `OnCalcRoutingLineForwardOnBeforeLoadCapForward2`
- [1195](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1195) calls `LoadCapForward`
- [1199](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1199) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1200](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1200) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1202](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1202) calls `LoadCapForward`
- [1209](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1209) calls [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) `UpdateDatetime`
- [1210](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1210) writes [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) Modify
- [1212](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1212) raises `OnAfterCalcRoutingLineForward`

## CalculateRoutingLineFixed

[Line 1215](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1215), local.

- [1227](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1227) raises `OnCalculateRoutingLineFixedOnBeforeCalcRoutingLineBack`
- [1228](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1228) calls `CalcRoutingLineBack`
- [1235](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1235) raises `OnCalculateRoutingLineFixedOnBeforeCalcRoutingLineForward`
- [1236](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1236) calls `CalcRoutingLineForward`
- [1242](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1242) calls [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) `UpdateDatetime`
- [1243](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1243) writes [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) Modify

## CalculateRoutingLine

[Line 1246](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1246).

- [1257](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1257) raises `OnBeforeCalculateRoutingLine`, IsHandled
- [1279](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1279) raises `OnCalculateRoutingLineOnBeforeProdOrderCapNeedReset`
- [1289](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1289) writes [Table 5410 Prod. Order Capacity Need](https://jonas-paprotka.de/ref/table/5410-prod-order-capacity-need/) DeleteAll
- [1314](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1314) raises `OnCalculateRoutingLineOnAfterProdOrderLineSetFilters`
- [1319](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1319) raises `OnCalculateRoutingLineOnBeforeCalcExpectedOperOutput`, IsHandled
- [1324](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1324) calls [Codeunit 99000758 Mfg. Cost Calculation Mgt.](https://jonas-paprotka.de/ref/codeunit/99000758-mfg-cost-calculation-mgt/) `CalcActOutputQtyBase`
- [1336](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1336) raises `OnCalculateRoutingLineOnAfterCalcMaxLotSize`
- [1349](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1349) raises `OnBeforeCalcExpectedCost`
- [1354](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1354) calls [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) `RunTimePer`
- [1355](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1355) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `QtyperTimeUnitofMeasure`
- [1357](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1357) calls [Codeunit 5402 Unit of Measure Management](https://jonas-paprotka.de/ref/codeunit/5402-unit-of-measure-management/) `QtyRndPrecision`
- [1359](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1359) raises `OnCalculateRoutingLineOnBeforeCalcCostInclSetup`
- [1361](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1361) calls `CalcCostInclSetup`
- [1362](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1362) raises `OnCalculateRoutingLineOnAfterCalcCostInclSetup`
- [1364](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1364) calls `CalcExpectedCost`
- [1367](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1367) raises `OnBeforeScheduleRoutingLine`, IsHandled
- [1370](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1370) calls `CalculateRoutingLineFixed`
- [1373](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1373) calls `CalcRoutingLineBack`
- [1375](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1375) calls `CalcRoutingLineForward`
- [1377](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1377) raises `OnAfterCalculateRoutingLine`

## SetLotSizesToMax

[Line 1382](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1382), local.

- [1387](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1387) raises `OnBeforeSetLotSizesToMax`, IsHandled

## FinitelyLoadCapBack

[Line 1395](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1395), local.

- [1418](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1418) calls [Table 5410 Prod. Order Capacity Need](https://jonas-paprotka.de/ref/table/5410-prod-order-capacity-need/) `SetCapacityFilters`
- [1420](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1420) calls [Table 99000757 Calendar Entry](https://jonas-paprotka.de/ref/table/99000757-calendar-entry/) `SetCapacityFilters`
- [1423](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1423) raises `OnFinitelyLoadCapBackOnAfterSetCalendarEntryFilters`
- [1438](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1438) calls `CalculateDailyLoad`
- [1444](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1444) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1445](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1445) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1448](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1448) raises `OnFinitelyLoadCapBackOnAfterCalcSetupTime`
- [1454](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1454) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1460](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1460) raises `OnFinitelyLoadCapBackOnAfterCalcShouldProcessLastProdOrderCapNeed`
- [1472](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1472) calls `Min`
- [1472](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1472) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `CalcTimeDelta`
- [1473](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1473) raises `OnFinitelyLoadCapBackOnAfterCalcAvailTimeFromLastProdOrderCapNeed`
- [1475](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1475) calls `UpdateTimesBack`
- [1476](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1476) calls `CreateCapNeed`
- [1494](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1494) calls `Min`
- [1494](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1494) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `CalcTimeDelta`
- [1495](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1495) raises `OnFinitelyLoadCapBackOnAfterCalcAvailTimeFromCalendarEntry`
- [1497](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1497) calls `UpdateTimesBack`
- [1498](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1498) calls `AdjustStartingTime`
- [1501](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1501) calls `CreateCapNeed`
- [1517](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1517) calls `TestForError`

## FinitelyLoadCapForward

[Line 1531](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1531), local.

- [1553](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1553) calls [Table 5410 Prod. Order Capacity Need](https://jonas-paprotka.de/ref/table/5410-prod-order-capacity-need/) `SetCapacityFilters`
- [1555](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1555) calls [Table 99000757 Calendar Entry](https://jonas-paprotka.de/ref/table/99000757-calendar-entry/) `SetCapacityFilters`
- [1572](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1572) calls `CalculateDailyLoad`
- [1575](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1575) calls [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) `RunTimePer`
- [1578](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1578) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1579](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1579) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1586](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1586) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1600](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1600) calls `Min`
- [1600](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1600) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `CalcTimeDelta`
- [1602](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1602) calls `UpdateTimesForward`
- [1603](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1603) calls `CreateCapNeed`
- [1621](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1621) calls `Min`
- [1621](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1621) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `CalcTimeDelta`
- [1623](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1623) calls `UpdateTimesForward`
- [1624](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1624) calls `AdjustEndingTime`
- [1626](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1626) calls `CreateCapNeed`
- [1642](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1642) calls `TestForError`

## AdjustEndingTime

[Line 1656](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1656), local.

- [1661](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1661) raises `OnBeforeAdjustEndingTime`, IsHandled

## AdjustStartingTime

[Line 1669](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1669), local.

- [1674](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1674) raises `OnBeforeAdjustStartingTime`, IsHandled

## CalculateDailyLoad

[Line 1682](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1682), local.

- [1689](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1689) calls `GetCurrentWorkCenterTimeFactorAndRounding`
- [1696](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1696) calls `CalcCapConResWorkCenterLoadBase`
- [1698](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1698) calls `CalcCapConResProdOrderNeedBase`
- [1699](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1699) calls `CalcAvailCapBaseAndDampTime`
- [1703](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1703) calls `CalcCapConResProdOrderNeedBase`
- [1704](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1704) calls `CalcAvailCapBaseAndDampTime`
- [1707](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1707) calls `CalcCapConResWorkCenterLoadBase`
- [1708](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1708) calls `CalcAvailCapBaseAndDampTime`
- [1715](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1715) calls `Max`
- [1716](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1716) calls `Min`

## UpdateTimesBack

[Line 1720](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1720), local.

- [1727](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1727) raises `OnBeforeUpdateTimesBack`, IsHandled
- [1732](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1732) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1734](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1734) calls `Min`
- [1737](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1737) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1739](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1739) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `CalcTimeSubtract`
- [1742](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1742) raises `OnUpdateTimesBackOnBeforeUpdateAvailCap`

## UpdateTimesForward

[Line 1747](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1747), local.

- [1754](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1754) raises `OnBeforeUpdateTimesForward`, IsHandled
- [1759](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1759) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1761](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1761) calls `Min`
- [1764](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1764) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1769](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1769) raises `OnUpdateTimesForwardOnBeforeUpdateAvailCap`

## CalcCostInclSetup

[Line 1809](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1809), local.

- [1813](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1813) raises `OnBeforeCalcCostInclSetup`
- [1822](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1822) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `QtyperTimeUnitofMeasure`
- [1824](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1824) calls [Codeunit 5402 Unit of Measure Management](https://jonas-paprotka.de/ref/codeunit/5402-unit-of-measure-management/) `QtyRndPrecision`
- [1826](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1826) raises `OnAfterCalcCostInclSetup`

## CalcDuration

[Line 1829](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1829), local.

- [1833](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1833) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`
- [1834](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1834) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`

## FindSendAheadEndingTime

[Line 1839](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1839), local.

- [1852](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1852) calls `GetSendAheadEndingTime`
- [1855](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1855) calls `GetSendAheadEndingTime`

## FindSendAheadStartingTime

[Line 1860](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1860), local.

- [1872](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1872) calls `GetSendAheadStartingTime`
- [1875](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1875) calls `GetSendAheadStartingTime`

## ReturnNextCalendarEntry

[Line 1880](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1880).

- [1884](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1884) raises `OnReturnNextCalendarEntryOnAfterSetCalendarEntryDateFilter`
- [1890](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1890) calls `TestForError`
- [1894](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1894) calls `CreateCalendarEntry`
- [1900](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1900) calls `TestForError`
- [1904](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1904) calls `CreateCalendarEntry`

## CreateCalendarEntry

[Line 1909](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1909), local.

- [1920](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1920) writes [Table 99000757 Calendar Entry](https://jonas-paprotka.de/ref/table/99000757-calendar-entry/) Insert

## GetCurrentWorkCenterTimeFactorAndRounding

[Line 1923](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1923), local.

- [1931](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1931) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `TimeFactor`

## CalcAvailCapBaseAndDampTime

[Line 1961](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1961).

- [1977](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1977) calls `Max`
- [1983](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1983) calls `Min`
- [1984](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1984) calls `Max`

## CalcAvailQtyBase

[Line 1987](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1987).

- [1996](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L1996) raises `OnBeforeCalcAvailQtyBase`, IsHandled
- [2030](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L2030) calls `CalcAvailQtyBaseForWaitTime`
- [2058](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L2058) calls `CalcAvailQtyBaseForWaitTime`

## FilterCalendarEntryBeforeOrOnDateTime

[Line 2149](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L2149), local.

- [2151](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L2151) calls [Table 99000757 Calendar Entry](https://jonas-paprotka.de/ref/table/99000757-calendar-entry/) `SetCapacityFilters`

## ReplanRoutingLine

[Line 2156](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L2156).

- [2190](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L2190) writes [Table 5410 Prod. Order Capacity Need](https://jonas-paprotka.de/ref/table/5410-prod-order-capacity-need/) DeleteAll
- [2216](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L2216) calls [Codeunit 99000758 Mfg. Cost Calculation Mgt.](https://jonas-paprotka.de/ref/codeunit/99000758-mfg-cost-calculation-mgt/) `CalcActOutputQtyBase`
- [2241](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L2241) calls [Table 5409 Prod. Order Routing Line](https://jonas-paprotka.de/ref/table/5409-prod-order-routing-line/) `RunTimePer`
- [2242](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L2242) calls [Codeunit 99000755 Shop Calendar Management](https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/) `QtyperTimeUnitofMeasure`
- [2244](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L2244) calls [Codeunit 5402 Unit of Measure Management](https://jonas-paprotka.de/ref/codeunit/5402-unit-of-measure-management/) `QtyRndPrecision`
- [2247](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L2247) calls `CalcCostInclSetup`
- [2249](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L2249) calls `CalcExpectedCost`
- [2252](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L2252) calls `CalculateRoutingLineFixed`
- [2255](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L2255) calls `CalcRoutingLineBack`
- [2257](https://jonas-paprotka.de/ref/codeunit/99000774-calculate-routing-line/source/#L2257) calls `CalcRoutingLineForward`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
