---
title: "Codeunit 6452 Serv. Availability Mgt., extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/points/
object: https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/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 6452 Serv. Availability Mgt., extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/points/

25 procedures and triggers with a step in src/Layers/W1/BaseApp/Service/Document/ServAvailabilityMgt.Codeunit.al, in source order, read from the text, not from a run.

## OnSetSourceRecord

[Line 25](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L25), local.

- [34](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L34) calls `SetServiceHeader`

## SetServiceHeader

[Line 39](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L39).

- [46](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L46) writes [Table 99000880 Order Promising Line](https://jonas-paprotka.de/ref/table/99000880-order-promising-line/) DeleteAll
- [51](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L51) raises `OnSetServiceHeaderOnAfterFilterServiceLine`
- [55](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L55) raises `OnSetServiceHeaderOnBeforeProcessServiceLine`, IsHandled
- [57](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L57) calls [Table 99000880 Order Promising Line](https://jonas-paprotka.de/ref/table/99000880-order-promising-line/) `GetLastEntryNo`
- [58](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L58) calls [Codeunit 6452 Serv. Availability Mgt.](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/) `TransferToOrderPromisingLine`
- [60](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L60) calls [Codeunit 99000889 AvailabilityManagement](https://jonas-paprotka.de/ref/codeunit/99000889-availabilitymanagement/) `InsertPromisingLine`

## OnCalcCapableToPromiseLine

[Line 67](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L67), local.

- [83](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L83) calls [Codeunit 99000886 Capable to Promise](https://jonas-paprotka.de/ref/codeunit/99000886-capable-to-promise/) `RemoveReqLines`
- [87](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L87) calls [Codeunit 99000886 Capable to Promise](https://jonas-paprotka.de/ref/codeunit/99000886-capable-to-promise/) `CalcCapableToPromiseDate`
- [95](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L95) validates [Table 99000880 Order Promising Line](https://jonas-paprotka.de/ref/table/99000880-order-promising-line/) `Earliest Shipment Date`
- [97](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L97) validates [Table 99000880 Order Promising Line](https://jonas-paprotka.de/ref/table/99000880-order-promising-line/) `Earliest Shipment Date`

## OnUpdateSourceLine

[Line 115](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L115), local.

- [131](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L131) validates [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) `Needed by Date`
- [133](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L133) calls [Codeunit 99000842 Service Line-Reserve](https://jonas-paprotka.de/ref/codeunit/99000842-service-line-reserve/) `ReservQuantity`
- [138](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L138) calls [Codeunit 99000845 Reservation Management](https://jonas-paprotka.de/ref/codeunit/99000845-reservation-management/) `SetReservSource`
- [139](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L139) calls [Codeunit 99000845 Reservation Management](https://jonas-paprotka.de/ref/codeunit/99000845-reservation-management/) `AutoReserve`
- [143](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L143) writes [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) Modify

## OnCreateReservationsOnBindToTracking

[Line 165](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L165), local.

- [176](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L176) calls [Table 336 Tracking Specification](https://jonas-paprotka.de/ref/table/336-tracking-specification/) `InitTrackingSpecification`
- [180](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L180) calls [Codeunit 99000842 Service Line-Reserve](https://jonas-paprotka.de/ref/codeunit/99000842-service-line-reserve/) `BindToTracking`

## OnCancelReservations

[Line 191](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L191), local.

- [205](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L205) writes [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) Modify
- [206](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L206) calls [Codeunit 99000831 Reservation Engine Mgt.](https://jonas-paprotka.de/ref/codeunit/99000831-reservation-engine-mgt/) `InitFilterAndSortingFor`
- [207](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L207) calls [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) `SetReservationFilters`
- [210](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L210) calls [Codeunit 99000831 Reservation Engine Mgt.](https://jonas-paprotka.de/ref/codeunit/99000831-reservation-engine-mgt/) `CancelReservation`
- [213](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L213) writes [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) Modify

## OnGetDemandDates

[Line 248](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L248), local.

- [252](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L252) calls [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) `FilterLinesWithItemToPlan`
- [259](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L259) calls [Codeunit 5830 Calc. Availability Overview](https://jonas-paprotka.de/ref/codeunit/5830-calc-availability-overview/) `InsertAvailabilityEntry`

## OnGetDemandEntries

[Line 271](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L271), local.

- [276](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L276) calls [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) `FindLinesWithItemToPlan`
- [280](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L280) calls [Codeunit 5830 Calc. Availability Overview](https://jonas-paprotka.de/ref/codeunit/5830-calc-availability-overview/) `InsertAvailabilityEntry`

## OnCheckItemInRange

[Line 290](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L290), local.

- [295](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L295) calls [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) `LinesWithItemToPlanExist`

## OnDemandExist

[Line 304](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L304), local.

- [308](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L308) calls [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) `LinesWithItemToPlanExist`

## TransferToOrderPromisingLine

[Line 313](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L313).

- [323](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L323) validates [Table 99000880 Order Promising Line](https://jonas-paprotka.de/ref/table/99000880-order-promising-line/) `Requested Delivery Date`
- [331](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L331) raises `OnAfterTransferToOrderPromisingLine`

## OnOpenPageOnSetSource

[Line 375](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L375), local.

- [381](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L381) calls [Codeunit 99000889 AvailabilityManagement](https://jonas-paprotka.de/ref/codeunit/99000889-availabilitymanagement/) `SetSourceRecord`

## OnAfterGetDocumentEntries

[Line 390](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L390), local.

- [392](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L392) calls `TryGetServOrderDemandEntries`

## TryGetServOrderDemandEntries

[Line 395](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L395), local.

- [403](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L403) calls [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) `FindLinesWithItemToPlan`
- [405](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L405) calls `TransferFromServiceNeed`
- [406](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L406) calls [Codeunit 5530 Calc. Item Availability](https://jonas-paprotka.de/ref/codeunit/5530-calc-item-availability/) `InsertEntry`

## OnAfterShowDocument

[Line 426](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L426), local.

- [436](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L436) runs [Page 5975 Posted Service Shipment](https://jonas-paprotka.de/ref/page/5975-posted-service-shipment/)
- [442](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L442) runs [Page 5978 Posted Service Invoice](https://jonas-paprotka.de/ref/page/5978-posted-service-invoice/)
- [448](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L448) runs [Page 5972 Posted Service Credit Memo](https://jonas-paprotka.de/ref/page/5972-posted-service-credit-memo/)

## OnLookupAvailableInventory

[Line 457](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L457), local.

- [459](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L459) calls `LookupReservationEntryForQtyOnServiceOrder`

## LookupReservationEntryForQtyOnServiceOrder

[Line 462](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L462), local.

- [466](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L466) calls [Table 520 Availability Info. Buffer](https://jonas-paprotka.de/ref/table/520-availability-info-buffer/) `AddEntriesForLookUp`
- [470](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L470) calls [Table 520 Availability Info. Buffer](https://jonas-paprotka.de/ref/table/520-availability-info-buffer/) `GetOptionFilter`

## ShowItemAvailabilityFromServLine

[Line 481](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L481).

- [496](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L496) calls [Codeunit 353 Item Availability Forms Mgt](https://jonas-paprotka.de/ref/codeunit/353-item-availability-forms-mgt/) `FilterItem`
- [498](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L498) raises `OnBeforeShowItemAvailFromServLine`
- [501](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L501) calls [Codeunit 353 Item Availability Forms Mgt](https://jonas-paprotka.de/ref/codeunit/353-item-availability-forms-mgt/) `ShowItemAvailabilityByPeriod`
- [501](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L501) calls `GetFieldCaption`
- [503](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L503) calls [Codeunit 353 Item Availability Forms Mgt](https://jonas-paprotka.de/ref/codeunit/353-item-availability-forms-mgt/) `ShowItemAvailabilityByVariant`
- [503](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L503) calls `GetFieldCaption`
- [504](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L504) validates [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) `Variant Code`
- [506](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L506) calls [Codeunit 353 Item Availability Forms Mgt](https://jonas-paprotka.de/ref/codeunit/353-item-availability-forms-mgt/) `ShowItemAvailabilityByLocation`
- [506](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L506) calls `GetFieldCaption`
- [507](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L507) validates [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) `Location Code`
- [509](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L509) calls [Codeunit 353 Item Availability Forms Mgt](https://jonas-paprotka.de/ref/codeunit/353-item-availability-forms-mgt/) `ShowItemAvailabilityByEvent`
- [509](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L509) calls `GetFieldCaption`
- [511](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L511) calls [Codeunit 353 Item Availability Forms Mgt](https://jonas-paprotka.de/ref/codeunit/353-item-availability-forms-mgt/) `ShowItemAvailabilityByBOMLevel`
- [511](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L511) calls `GetFieldCaption`
- [513](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L513) calls [Codeunit 353 Item Availability Forms Mgt](https://jonas-paprotka.de/ref/codeunit/353-item-availability-forms-mgt/) `ShowItemAvailabilityByUOM`
- [513](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L513) calls `GetFieldCaption`
- [515](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L515) validates [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) `Unit of Measure Code`

## ShowServiceLines

[Line 529](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L529).

- [533](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L533) calls [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) `FindLinesWithItemToPlan`

## OnTransferToPeriodDetailsElseCase

[Line 546](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L546), local.

- [549](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L549) calls `TransferServiceLine`

## OnAfterMakeEntries

[Line 574](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L574), local.

- [580](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L580) calls [Table 99000832 Item Availability Line](https://jonas-paprotka.de/ref/table/99000832-item-availability-line/) `InsertEntry`

## OnAfterLookupEntries

[Line 587](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L587), local.

- [594](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L594) calls [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) `FindLinesWithItemToPlan`

## TransferFromServiceNeed

[Line 602](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L602).

- [619](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L619) calls [Codeunit 99000842 Service Line-Reserve](https://jonas-paprotka.de/ref/codeunit/99000842-service-line-reserve/) `ReservQuantity`
- [625](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L625) raises `OnAfterTransferFromServiceNeed`

## OnAfterCalculateAvailability

[Line 636](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L636), local.

- [638](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L638) calls `UpdateServOrderAvail`

## UpdateServOrderAvail

[Line 641](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L641), local.

- [647](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L647) raises `OnBeforeUpdateServOrderAvail`, IsHandled
- [651](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L651) calls [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) `FindLinesWithItemToPlan`
- [654](https://jonas-paprotka.de/ref/codeunit/6452-serv-availability-mgt/source/#L654) calls [Codeunit 5790 Available to Promise](https://jonas-paprotka.de/ref/codeunit/5790-available-to-promise/) `UpdateGrossRequirement`

## Source

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

JOP-AL, 2026-11-20.
