---
title: "Codeunit 5943 Lock-OpenServContract, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/5943-lock-openservcontract/points/
object: https://jonas-paprotka.de/ref/codeunit/5943-lock-openservcontract/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/5943-lock-openservcontract/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 5943 Lock-OpenServContract, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/5943-lock-openservcontract/points/

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

## LockServContract

[Line 28](https://jonas-paprotka.de/ref/codeunit/5943-lock-openservcontract/source/#L28).

- [35](https://jonas-paprotka.de/ref/codeunit/5943-lock-openservcontract/source/#L35) raises `OnBeforeLockServContract`
- [42](https://jonas-paprotka.de/ref/codeunit/5943-lock-openservcontract/source/#L42) raises `OnLockServContractOnBeforeCheckAmounts`, IsHandled
- [51](https://jonas-paprotka.de/ref/codeunit/5943-lock-openservcontract/source/#L51) raises `OnLockServContractOnBeforeCheckZeroAnnualAmount`, IsHandled
- [53](https://jonas-paprotka.de/ref/codeunit/5943-lock-openservcontract/source/#L53) calls [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `IsInvoicePeriodInTimeSegment`
- [57](https://jonas-paprotka.de/ref/codeunit/5943-lock-openservcontract/source/#L57) calls `CheckServiceItemBlockedForServiceContractAndItemServiceBlocked`
- [61](https://jonas-paprotka.de/ref/codeunit/5943-lock-openservcontract/source/#L61) raises `OnLockServContractOnAfterLockTable`, IsHandled
- [70](https://jonas-paprotka.de/ref/codeunit/5943-lock-openservcontract/source/#L70) raises `OnErrorIfServContractLinesHaveZeroAmount`
- [78](https://jonas-paprotka.de/ref/codeunit/5943-lock-openservcontract/source/#L78) calls `SignServContract`
- [83](https://jonas-paprotka.de/ref/codeunit/5943-lock-openservcontract/source/#L83) writes [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) Modify
- [85](https://jonas-paprotka.de/ref/codeunit/5943-lock-openservcontract/source/#L85) raises `OnAfterLockServContract`

## OpenServContract

[Line 88](https://jonas-paprotka.de/ref/codeunit/5943-lock-openservcontract/source/#L88).

- [96](https://jonas-paprotka.de/ref/codeunit/5943-lock-openservcontract/source/#L96) writes [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) Modify
- [98](https://jonas-paprotka.de/ref/codeunit/5943-lock-openservcontract/source/#L98) raises `OnAfterOpenServContract`

## SignServContract

[Line 101](https://jonas-paprotka.de/ref/codeunit/5943-lock-openservcontract/source/#L101), local.

- [109](https://jonas-paprotka.de/ref/codeunit/5943-lock-openservcontract/source/#L109) raises `OnBeforeSignServContract`, IsHandled
- [114](https://jonas-paprotka.de/ref/codeunit/5943-lock-openservcontract/source/#L114) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponseOrDefault`
- [117](https://jonas-paprotka.de/ref/codeunit/5943-lock-openservcontract/source/#L117) calls [Codeunit 5944 SignServContractDoc](https://jonas-paprotka.de/ref/codeunit/5944-signservcontractdoc/) `AddendumToContract`

## CheckServiceItemBlockedForServiceContractAndItemServiceBlocked

[Line 121](https://jonas-paprotka.de/ref/codeunit/5943-lock-openservcontract/source/#L121), local.

- [131](https://jonas-paprotka.de/ref/codeunit/5943-lock-openservcontract/source/#L131) calls [Codeunit 5940 ServContractManagement](https://jonas-paprotka.de/ref/codeunit/5940-servcontractmanagement/) `CheckServiceItemBlockedForServiceContract`
- [132](https://jonas-paprotka.de/ref/codeunit/5943-lock-openservcontract/source/#L132) calls [Codeunit 5940 ServContractManagement](https://jonas-paprotka.de/ref/codeunit/5940-servcontractmanagement/) `CheckItemServiceBlocked`

## Source

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

JOP-AL, 2026-11-20.
