---
title: "Table 5965 Service Contract Header, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/table/5965-service-contract-header/points/
object: https://jonas-paprotka.de/ref/table/5965-service-contract-header/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/table/5965-service-contract-header/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/"
---

# Table 5965 Service Contract Header, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/table/5965-service-contract-header/points/

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

## Contract No..OnValidate

[Line 46](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L46), trigger.

- [50](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L50) calls [Codeunit 310 No. Series](https://jonas-paprotka.de/ref/codeunit/310-no-series/) `TestManual`
- [50](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L50) calls `GetServiceContractNos`

## Status.OnValidate

[Line 76](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L76), trigger.

- [79](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L79) calls `CheckChangeStatus`
- [80](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L80) calls `ChangeContractStatus`

## Customer No..OnValidate

[Line 98](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L98), trigger.

- [103](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L103) raises `OnBeforeValidateCustomerNo`, IsHandled
- [107](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L107) calls `ChangeCustomerNo`

## Salesperson Code.OnValidate

[Line 166](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L166), trigger.

- [168](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L168) calls `ValidateSalesPersonOnServiceContractHeader`
- [170](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L170) calls `CheckChangeStatus`
- [171](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L171) writes [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) Modify
- [173](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L173) calls `CreateDimFromDefaultDim`

## Bill-to Customer No..OnValidate

[Line 182](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L182), trigger.

- [189](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L189) raises `OnBeforeValidateBillToCustomerNo`, IsHandled
- [193](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L193) calls `CheckChangeStatus`
- [200](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L200) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponseOrDefault`
- [210](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L210) raises `OnValidateBillToCustomerNoOnBeforePrivacyBlockedCheck`, IsHandled
- [213](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L213) calls [Table 18 Customer](https://jonas-paprotka.de/ref/table/18-customer/) `CustPrivacyBlockedErrorMessage`
- [215](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L215) raises `OnValidateBillToCustomerNoOnBeforeBlockedCheck`, IsHandled
- [218](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L218) calls [Table 18 Customer](https://jonas-paprotka.de/ref/table/18-customer/) `CustBlockedErrorMessage`
- [232](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L232) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Payment Method Code`
- [235](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L235) calls `SetSalespersonCode`
- [238](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L238) raises `OnValidateBillToCustomerNoOnAfterCopyFieldsFromCust`
- [242](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L242) calls [Codeunit 6489 Serv. Check Credit Limit](https://jonas-paprotka.de/ref/codeunit/6489-serv-check-credit-limit/) `ServiceContractHeaderCheck`
- [249](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L249) calls `UpdateBillToCont`
- [253](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L253) calls `CreateDimFromDefaultDim`

## Ship-to Code.OnValidate

[Line 302](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L302), trigger.

- [307](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L307) raises `OnBeforeValidateShipToCode`, IsHandled
- [313](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L313) raises `OnValidateShipToCodeOnBeforeContractLinesExist`, IsHandled
- [315](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L315) calls `ContractLinesExist`
- [317](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L317) calls `UpdateServZone`

## Invoice Period.OnValidate

[Line 377](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L377), trigger.

- [382](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L382) raises `OnBeforeValidateInvoicePeriod`, IsHandled
- [386](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L386) calls `CalcInvPeriodDuration`
- [392](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L392) calls `CheckChangeStatus`
- [407](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L407) calls `IsInvoicePeriodInTimeSegment`
- [413](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L413) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Next Invoice Date`
- [415](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L415) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Next Invoice Date`
- [418](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L418) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Next Invoice Date`
- [420](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L420) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Next Invoice Date`
- [422](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L422) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Next Invoice Date`
- [424](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L424) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Last Invoice Date`

## Last Invoice Date.OnValidate

[Line 433](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L433), trigger.

- [438](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L438) raises `OnBeforeValidateLastInvoiceDate`, IsHandled
- [470](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L470) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Last Invoice Period End`
- [472](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L472) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Last Invoice Period End`
- [474](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L474) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Next Invoice Date`

## Next Invoice Date.OnValidate

[Line 483](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L483), trigger.

- [489](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L489) raises `OnBeforeValidateNextInvoiceDate`, IsHandled
- [513](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L513) raises `OnValidateNextInvoiceDateOnBeforeCheck`, IsHandled
- [517](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L517) calls `CalculateEndPeriodDate`
- [534](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L534) raises `OnValidateNextInvoiceDateOnBeforeCheck`, IsHandled
- [538](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L538) calls `CalculateEndPeriodDate`
- [558](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L558) raises `OnValidateNextInvoiceDateOnBeforeValidateNextInvoicePeriod`
- [559](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L559) calls `ValidateNextInvoicePeriod`

## Starting Date.OnValidate

[Line 567](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L567), trigger.

- [572](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L572) raises `OnBeforeValidateStartingDate`, IsHandled
- [576](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L576) calls `CheckChangeStatus`
- [583](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L583) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Next Invoice Date`
- [589](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L589) raises `OnValidateStartingDateOnAfterServContractLineSetFilters`
- [594](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L594) writes [Table 5964 Service Contract Line](https://jonas-paprotka.de/ref/table/5964-service-contract-line/) Modify
- [596](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L596) writes [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) Modify(true)
- [605](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L605) raises `OnValidateStartingDateOnAfterServContractLineSetFilters`
- [608](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L608) calls [Table 5964 Service Contract Line](https://jonas-paprotka.de/ref/table/5964-service-contract-line/) `SuspendStatusCheck`
- [611](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L611) writes [Table 5964 Service Contract Line](https://jonas-paprotka.de/ref/table/5964-service-contract-line/) Modify
- [613](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L613) writes [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) Modify(true)
- [617](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L617) calls `IsInvoicePeriodInTimeSegment`
- [620](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L620) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Next Invoice Date`
- [622](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L622) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Next Invoice Date`
- [624](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L624) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Last Invoice Date`
- [625](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L625) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Service Period`

## Expiration Date.OnValidate

[Line 634](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L634), trigger.

- [637](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L637) calls `CheckExpirationDate`
- [638](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L638) calls `ChangeExpirationDate`

## First Service Date.OnValidate

[Line 647](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L647), trigger.

- [664](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L664) calls `ContractLinesExist`

## Annual Amount.OnValidate

[Line 698](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L698), trigger.

- [700](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L700) calls `CheckChangeStatus`
- [702](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L702) calls `DistributeAmounts`
- [703](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L703) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Invoice Period`

## Prepaid.OnValidate

[Line 725](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L725), trigger.

- [731](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L731) raises `OnBeforeValidatePrepaid`, IsHandled
- [752](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L752) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Next Invoice Date`
- [754](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L754) calls `IsInvoicePeriodInTimeSegment`
- [756](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L756) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Next Invoice Date`
- [758](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L758) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Next Invoice Date`
- [760](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L760) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Last Invoice Date`

## Response Time (Hours).OnValidate

[Line 823](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L823), trigger.

- [827](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L827) calls `CheckChangeStatus`
- [835](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L835) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponseOrDefault`
- [838](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L838) writes [Table 5964 Service Contract Line](https://jonas-paprotka.de/ref/table/5964-service-contract-line/) ModifyAll

## Service Period.OnValidate

[Line 872](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L872), trigger.

- [882](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L882) calls `ContractLinesExist`
- [884](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L884) calls `ContractLinesExist`
- [894](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L894) writes [Table 5964 Service Contract Line](https://jonas-paprotka.de/ref/table/5964-service-contract-line/) Modify

## Allow Unbalanced Amounts.OnValidate

[Line 937](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L937), trigger.

- [939](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L939) calls `CheckChangeStatus`
- [942](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L942) calls `DistributeAmounts`

## Service Order Type.OnValidate

[Line 957](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L957), trigger.

- [959](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L959) calls `CreateDimFromDefaultDim`

## Shortcut Dimension 1 Code.OnValidate

[Line 970](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L970), trigger.

- [972](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L972) calls `CheckChangeStatus`
- [973](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L973) calls `ValidateShortcutDimCode`
- [974](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L974) writes [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) Modify

## Shortcut Dimension 2 Code.OnValidate

[Line 985](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L985), trigger.

- [987](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L987) calls `CheckChangeStatus`
- [988](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L988) calls `ValidateShortcutDimCode`
- [989](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L989) writes [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) Modify

## Template No..OnValidate

[Line 1006](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1006), trigger.

- [1008](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1008) calls `CreateDimFromDefaultDim`

## Price Update Period.OnValidate

[Line 1017](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1017), trigger.

- [1019](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1019) calls `CalcInvPeriodDuration`

## Currency Code.OnValidate

[Line 1051](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1051), trigger.

- [1056](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1056) raises `OnBeforeValidateCurrencyCode`, IsHandled

## Responsibility Center.OnValidate

[Line 1091](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1091), trigger.

- [1093](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1093) calls [Codeunit 5700 User Setup Management](https://jonas-paprotka.de/ref/codeunit/5700-user-setup-management/) `CheckRespCenter`
- [1096](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1096) calls [Codeunit 5700 User Setup Management](https://jonas-paprotka.de/ref/codeunit/5700-user-setup-management/) `GetSalesFilter`
- [1098](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1098) calls `CreateDimFromDefaultDim`

## E-Mail.OnValidate

[Line 1117](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1117), trigger.

- [1121](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1121) calls [Codeunit 9520 Mail Management](https://jonas-paprotka.de/ref/codeunit/9520-mail-management/) `ValidateEmailAddressField`

## Payment Method Code.OnValidate

[Line 1331](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1331), trigger.

- [1338](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1338) calls [Table 1230 SEPA Direct Debit Mandate](https://jonas-paprotka.de/ref/table/1230-sepa-direct-debit-mandate/) `GetDefaultMandate`

## Dimension Set ID.OnLookup

[Line 1360](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1360), trigger.

- [1362](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1362) calls `ShowDocDim`

## Dimension Set ID.OnValidate

[Line 1365](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1365), trigger.

- [1367](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1367) calls [Codeunit 408 DimensionManagement](https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/) `UpdateGlobalDimFromDimSetID`

## Contact No..OnLookup

[Line 1385](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1385), trigger.

- [1394](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1394) calls [Table 5054 Contact Business Relation](https://jonas-paprotka.de/ref/table/5054-contact-business-relation/) `FindByRelation`
- [1403](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1403) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Contact No.`

## Contact No..OnValidate

[Line 1407](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1407), trigger.

- [1416](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1416) raises `OnBeforeConfirmChangeContactNo`, IsHandled
- [1418](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1418) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponseOrDefault`
- [1426](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1426) calls [Table 5054 Contact Business Relation](https://jonas-paprotka.de/ref/table/5054-contact-business-relation/) `FindByRelation`
- [1431](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1431) calls `UpdateCust`

## Bill-to Contact No..OnLookup

[Line 1440](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1440), trigger.

- [1449](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1449) calls [Table 5054 Contact Business Relation](https://jonas-paprotka.de/ref/table/5054-contact-business-relation/) `FindByRelation`
- [1458](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1458) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Bill-to Contact No.`

## Bill-to Contact No..OnValidate

[Line 1462](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1462), trigger.

- [1471](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1471) raises `OnBeforeConfirmChangeBillToContactNo`, IsHandled
- [1473](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1473) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponseOrDefault`
- [1481](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1481) calls [Table 5054 Contact Business Relation](https://jonas-paprotka.de/ref/table/5054-contact-business-relation/) `FindByRelation`
- [1486](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1486) calls `UpdateBillToCust`

## OnDelete

[Line 1550](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1550), trigger.

- [1556](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1556) calls [Codeunit 5700 User Setup Management](https://jonas-paprotka.de/ref/codeunit/5700-user-setup-management/) `CheckRespCenter`
- [1559](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1559) calls [Codeunit 5700 User Setup Management](https://jonas-paprotka.de/ref/codeunit/5700-user-setup-management/) `GetSalesFilter`
- [1562](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1562) calls [Codeunit 6492 Serv. Move Entries](https://jonas-paprotka.de/ref/codeunit/6492-serv-move-entries/) `MoveServContractLedgerEntries`
- [1572](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1572) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponseOrDefault`
- [1580](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1580) writes [Table 5964 Service Contract Line](https://jonas-paprotka.de/ref/table/5964-service-contract-line/) DeleteAll
- [1585](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1585) writes [Table 5906 Service Comment Line](https://jonas-paprotka.de/ref/table/5906-service-comment-line/) DeleteAll
- [1595](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1595) writes [Table 5910 Service Hour](https://jonas-paprotka.de/ref/table/5910-service-hour/) DeleteAll
- [1603](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1603) writes [Table 5970 Filed Service Contract Header](https://jonas-paprotka.de/ref/table/5970-filed-service-contract-header/) DeleteAll(true)

## OnInsert

[Line 1607](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1607), trigger.

- [1615](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1615) calls `InitNoSeries`
- [1620](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1620) raises `OnBeforeApplyServiceContractQuoteTemplate`, IsHandled
- [1624](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1624) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponseOrDefault`
- [1627](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1627) runs [Codeunit 5942 ServContractQuote-Tmpl. Upd.](https://jonas-paprotka.de/ref/codeunit/5942-servcontractquote-tmpl-upd/)
- [1631](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1631) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Starting Date`

## OnModify

[Line 1634](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1634), trigger.

- [1636](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1636) calls `CheckChangeStatus`
- [1640](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1640) calls `UpdContractChangeLog`
- [1645](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1645) calls [Table 5969 Contract Gain/Loss Entry](https://jonas-paprotka.de/ref/table/5969-contract-gain-loss-entry/) `CreateEntry`
- [1653](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1653) calls [Table 5969 Contract Gain/Loss Entry](https://jonas-paprotka.de/ref/table/5969-contract-gain-loss-entry/) `CreateEntry`

## UpdContractChangeLog

[Line 1777](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1777).

- [1780](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1780) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1785](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1785) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1790](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1790) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1795](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1795) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1800](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1800) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1805](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1805) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1810](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1810) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1815](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1815) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1820](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1820) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1825](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1825) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1830](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1830) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1835](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1835) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1840](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1840) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1845](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1845) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1850](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1850) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1855](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1855) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1860](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1860) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1865](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1865) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1870](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1870) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1875](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1875) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1880](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1880) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1885](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1885) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1890](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1890) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1895](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1895) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1900](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1900) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1905](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1905) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1910](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1910) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1915](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1915) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1920](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1920) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1925](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1925) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1930](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1930) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1935](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1935) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1940](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1940) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1945](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1945) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1950](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1950) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1955](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1955) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1960](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1960) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1965](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1965) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1970](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1970) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1975](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1975) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1980](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1980) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1985](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1985) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1990](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1990) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [1995](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L1995) calls [Table 5967 Contract Change Log](https://jonas-paprotka.de/ref/table/5967-contract-change-log/) `LogContractChange`
- [2000](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2000) raises `OnAfterUpdContractChangeLog`

## AssistEdit

[Line 2003](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2003).

- [2007](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2007) calls [Codeunit 310 No. Series](https://jonas-paprotka.de/ref/codeunit/310-no-series/) `LookupRelatedNoSeries`
- [2007](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2007) calls `GetServiceContractNos`
- [2008](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2008) calls [Codeunit 310 No. Series](https://jonas-paprotka.de/ref/codeunit/310-no-series/) `GetNextNo`
- [2013](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2013) raises `OnAfterAssistEdit`

## InitNoSeries

[Line 2016](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2016), local.

- [2021](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2021) raises `OnBeforeInitNoSeries`, IsHandled
- [2027](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2027) calls `GetServiceContractNos`
- [2028](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2028) calls [Codeunit 310 No. Series](https://jonas-paprotka.de/ref/codeunit/310-no-series/) `AreRelated`
- [2030](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2030) calls [Codeunit 310 No. Series](https://jonas-paprotka.de/ref/codeunit/310-no-series/) `GetNextNo`

## GetServiceContractNos

[Line 2035](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2035), local.

- [2040](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2040) raises `OnBeforeGetServiceContractNos`, IsHandled

## ReturnNoOfPer

[Line 2049](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2049).

- [2066](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2066) raises `OnAfterReturnNoOfPer`

## CalculateEndPeriodDate

[Line 2069](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2069).

- [2079](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2079) raises `OnBeforeCalculateEndPeriodDate`, IsHandled
- [2098](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2098) raises `OnCalculateEndPeriodDateOnPrepaidCaseElse`
- [2116](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2116) raises `OnCalculateEndPeriodDateCaseElse`

## CheckExpirationDate

[Line 2121](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2121), local.

- [2126](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2126) raises `OnBeforeCheckExpirationDate`, IsHandled

## UpdateServZone

[Line 2140](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2140).

- [2152](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2152) raises `OnAfterUpdateZone`

## ContractLinesExist

[Line 2155](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2155), local.

- [2162](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2162) raises `OnAfterContractLinesExist`

## UpdateShiptoCode

[Line 2165](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2165).

- [2178](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2178) raises `OnAfterUpdateShiptoCode`

## ValidateNextInvoicePeriod

[Line 2187](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2187).

- [2194](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2194) raises `OnBeforeValidateNextInvoicePeriod`, IsHandled
- [2198](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2198) calls `NextInvoicePeriod`
- [2202](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2202) calls [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `InitRoundingPrecision`
- [2209](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2209) calls `CalculateEndPeriodDate`
- [2212](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2212) calls `CalculateEndPeriodDate`
- [2215](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2215) calls `CalculateEndPeriodDate`
- [2218](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2218) calls `SetAmountPerPeriod`

## SetAmountPerPeriod

[Line 2221](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2221), local.

- [2226](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2226) raises `OnBeforeSetAmountPerPeriod`, IsHandled
- [2232](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2232) calls `ReturnNoOfPer`
- [2235](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2235) calls [Codeunit 5940 ServContractManagement](https://jonas-paprotka.de/ref/codeunit/5940-servcontractmanagement/) `CalcContractAmount`

## ValidateShortcutDimCode

[Line 2238](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2238).

- [2240](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2240) raises `OnBeforeValidateShortcutDimCode`
- [2242](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2242) calls [Codeunit 408 DimensionManagement](https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/) `ValidateShortcutDimValues`
- [2244](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2244) raises `OnAfterValidateShortcutDimCode`

## CreateDim

[Line 2247](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2247).

- [2256](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2256) raises `OnBeforeCreateDim`, IsHandled
- [2264](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2264) calls [Codeunit 408 DimensionManagement](https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/) `GetRecDefaultDimID`
- [2268](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2268) raises `OnAfterCreateDim`

## UpdateCont

[Line 2276](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2276).

- [2284](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2284) calls [Codeunit 5900 ServOrderManagement](https://jonas-paprotka.de/ref/codeunit/5900-servordermanagement/) `FindContactInformation`
- [2294](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2294) calls [Table 5054 Contact Business Relation](https://jonas-paprotka.de/ref/table/5054-contact-business-relation/) `FindByRelation`
- [2297](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2297) raises `OnUpdateContOnAfterUpdateContFromCust`
- [2301](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2301) raises `OnAfterUpdateCont`

## UpdateBillToCont

[Line 2304](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2304), local.

- [2312](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2312) calls [Codeunit 5900 ServOrderManagement](https://jonas-paprotka.de/ref/codeunit/5900-servordermanagement/) `FindContactInformation`
- [2320](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2320) calls [Table 5054 Contact Business Relation](https://jonas-paprotka.de/ref/table/5054-contact-business-relation/) `FindByRelation`
- [2326](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2326) raises `OnAfterUpdateBillToCont`

## UpdateCust

[Line 2329](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2329).

- [2338](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2338) raises `OnBeforeUpdateCust`, IsHandled
- [2348](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2348) calls [Table 5054 Contact Business Relation](https://jonas-paprotka.de/ref/table/5054-contact-business-relation/) `FindByContact`
- [2350](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2350) calls [Table 5054 Contact Business Relation](https://jonas-paprotka.de/ref/table/5054-contact-business-relation/) `FindByContact`
- [2353](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2353) calls [Table 5054 Contact Business Relation](https://jonas-paprotka.de/ref/table/5054-contact-business-relation/) `FindByContact`
- [2374](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2374) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Customer No.`
- [2383](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2383) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Bill-to Contact No.`

## UpdateBillToCust

[Line 2386](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2386), local.

- [2397](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2397) calls [Table 5054 Contact Business Relation](https://jonas-paprotka.de/ref/table/5054-contact-business-relation/) `FindByContact`
- [2399](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2399) calls [Table 5054 Contact Business Relation](https://jonas-paprotka.de/ref/table/5054-contact-business-relation/) `FindByContact`
- [2402](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2402) calls [Table 5054 Contact Business Relation](https://jonas-paprotka.de/ref/table/5054-contact-business-relation/) `FindByContact`
- [2414](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2414) raises `OnUpdateBillToCustOnBeforeContBusinessRelationFindByContact`
- [2418](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2418) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Bill-to Customer No.`

## EvenDistribution

[Line 2427](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2427), local.

- [2438](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2438) validates [Table 5964 Service Contract Line](https://jonas-paprotka.de/ref/table/5964-service-contract-line/) `Line Amount`
- [2441](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2441) writes [Table 5964 Service Contract Line](https://jonas-paprotka.de/ref/table/5964-service-contract-line/) Modify
- [2443](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2443) calls [Table 5964 Service Contract Line](https://jonas-paprotka.de/ref/table/5964-service-contract-line/) `LogContractLineChanges`

## ProfitBasedDistribution

[Line 2447](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2447), local.

- [2461](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2461) validates [Table 5964 Service Contract Line](https://jonas-paprotka.de/ref/table/5964-service-contract-line/) `Line Amount`
- [2467](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2467) writes [Table 5964 Service Contract Line](https://jonas-paprotka.de/ref/table/5964-service-contract-line/) Modify
- [2469](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2469) calls [Table 5964 Service Contract Line](https://jonas-paprotka.de/ref/table/5964-service-contract-line/) `LogContractLineChanges`

## AmountBasedDistribution

[Line 2473](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2473), local.

- [2484](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2484) validates [Table 5964 Service Contract Line](https://jonas-paprotka.de/ref/table/5964-service-contract-line/) `Line Amount`
- [2491](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2491) writes [Table 5964 Service Contract Line](https://jonas-paprotka.de/ref/table/5964-service-contract-line/) Modify
- [2493](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2493) calls [Table 5964 Service Contract Line](https://jonas-paprotka.de/ref/table/5964-service-contract-line/) `LogContractLineChanges`

## DistributeAmounts

[Line 2497](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2497), local.

- [2515](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2515) calls `AskContractAmountDistribution`
- [2516](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2516) calls [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `InitRoundingPrecision`
- [2519](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2519) calls `EvenDistribution`
- [2521](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2521) calls `ProfitBasedDistribution`
- [2523](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2523) calls `AmountBasedDistribution`
- [2527](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2527) validates [Table 5964 Service Contract Line](https://jonas-paprotka.de/ref/table/5964-service-contract-line/) `Line Amount`
- [2530](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2530) writes [Table 5964 Service Contract Line](https://jonas-paprotka.de/ref/table/5964-service-contract-line/) Modify
- [2539](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2539) validates [Table 5964 Service Contract Line](https://jonas-paprotka.de/ref/table/5964-service-contract-line/) `Line Amount`
- [2540](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2540) writes [Table 5964 Service Contract Line](https://jonas-paprotka.de/ref/table/5964-service-contract-line/) Modify
- [2542](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2542) calls [Table 5964 Service Contract Line](https://jonas-paprotka.de/ref/table/5964-service-contract-line/) `LogContractLineChanges`

## GetActiveAnnualAmount

[Line 2548](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2548).

- [2552](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2552) calls `FilterToCurrentContractLines`

## ShowActiveServiceContractLines

[Line 2557](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2557).

- [2562](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2562) calls `FilterToCurrentContractLines`

## SetSecurityFilterOnRespCenter

[Line 2580](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2580).

- [2585](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2585) raises `OnBeforeSetSecurityFilterOnRespCenter`, IsHandled
- [2589](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2589) calls [Codeunit 5700 User Setup Management](https://jonas-paprotka.de/ref/codeunit/5700-user-setup-management/) `GetServiceFilter`
- [2591](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2591) calls [Codeunit 5700 User Setup Management](https://jonas-paprotka.de/ref/codeunit/5700-user-setup-management/) `GetServiceFilter`

## ShowDocDim

[Line 2598](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2598).

- [2601](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2601) calls [Codeunit 408 DimensionManagement](https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/) `EditDimensionSet`
- [2605](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2605) raises `OnAfterShowDocDim`

## CalcInvPeriodDuration

[Line 2608](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2608), local.

- [2623](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2623) raises `OnCalcInvPeriodDurationCaseElse`

## ChangeContractStatus

[Line 2627](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2627), local.

- [2636](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2636) raises `OnBeforeChangeContractStatus`, IsHandled
- [2649](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2649) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponseOrDefault`
- [2654](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2654) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponseOrDefault`
- [2659](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2659) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponseOrDefault`
- [2678](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2678) raises `OnChangeContractStatusOnBeforeConfirmCancelTheContractQst`, IsHandled
- [2680](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2680) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponseOrDefault`
- [2686](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2686) calls [Table 5970 Filed Service Contract Header](https://jonas-paprotka.de/ref/table/5970-filed-service-contract-header/) `FileContractBeforeCancellation`
- [2710](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2710) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponse`
- [2714](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2714) runs [Page 6078 Service Contract Line List](https://jonas-paprotka.de/ref/page/6078-service-contract-line-list/)
- [2722](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2722) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponseOrDefault`
- [2735](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2735) raises `OnChangeContractStatusOnBeforeModifyServContractLines`
- [2736](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2736) writes [Table 5964 Service Contract Line](https://jonas-paprotka.de/ref/table/5964-service-contract-line/) ModifyAll

## CheckChangeStatus

[Line 2739](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2739), local.

- [2744](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2744) raises `OnBeforeCheckChangeStatus`, IsHandled

## ChangeCustomerNo

[Line 2750](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2750), local.

- [2755](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2755) raises `OnBeforeChangeCustomerNo`, IsHandled
- [2762](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2762) raises `OnCheckChangeStatusOnBeforeCheckContractLinesExist`, IsHandled
- [2764](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2764) calls `ContractLinesExist`
- [2771](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2771) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Ship-to Code`
- [2774](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2774) calls [Codeunit 5700 User Setup Management](https://jonas-paprotka.de/ref/codeunit/5700-user-setup-management/) `GetRespCenter`
- [2777](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2777) raises `OnCheckChangeStatusOnBeforeSetBillToCustomerNo`, IsHandled
- [2783](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2783) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Bill-to Customer No.`
- [2786](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2786) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Bill-to Customer No.`
- [2808](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2808) calls `UpdateShiptoCode`
- [2812](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2812) calls `UpdateCont`

## ChangeExpirationDate

[Line 2815](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2815), local.

- [2821](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2821) raises `OnBeforeChangeExpirationDate`, IsHandled
- [2840](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2840) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponseOrDefault`
- [2852](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2852) writes [Table 5964 Service Contract Line](https://jonas-paprotka.de/ref/table/5964-service-contract-line/) Modify
- [2854](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2854) writes [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) Modify(true)
- [2859](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2859) raises `OnChangeExpirationDateOnBeforeValidateInvoicePeriod`, IsHandled
- [2861](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2861) validates [Table 5965 Service Contract Header](https://jonas-paprotka.de/ref/table/5965-service-contract-header/) `Invoice Period`

## SetSalespersonCode

[Line 2864](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2864).

- [2869](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2869) raises `OnBeforeSetSalespersonCode`, IsHandled
- [2875](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2875) calls [Table 13 Salesperson/Purchaser](https://jonas-paprotka.de/ref/table/13-salesperson-purchaser/) `VerifySalesPersonPurchaserPrivacyBlocked`

## ValidateSalesPersonOnServiceContractHeader

[Line 2881](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2881).

- [2886](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2886) raises `OnBeforeValidateSalesPersonOnServiceContractHeader`, IsHandled
- [2892](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2892) calls [Table 13 Salesperson/Purchaser](https://jonas-paprotka.de/ref/table/13-salesperson-purchaser/) `VerifySalesPersonPurchaserPrivacyBlocked`
- [2894](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2894) calls [Table 13 Salesperson/Purchaser](https://jonas-paprotka.de/ref/table/13-salesperson-purchaser/) `GetPrivacyBlockedTransactionText`
- [2896](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2896) calls [Table 13 Salesperson/Purchaser](https://jonas-paprotka.de/ref/table/13-salesperson-purchaser/) `GetPrivacyBlockedGenericText`

## IsInvoicePeriodInTimeSegment

[Line 2900](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2900).

- [2904](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2904) raises `OnIsInvoicePeriodInTimeSegment`

## CreateDimFromDefaultDim

[Line 2907](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2907).

- [2911](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2911) calls `InitDefaultDimensionSources`
- [2912](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2912) calls `CreateDim`

## InitDefaultDimensionSources

[Line 2915](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2915), local.

- [2917](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2917) calls [Codeunit 408 DimensionManagement](https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/) `AddDimSource`
- [2918](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2918) calls [Codeunit 408 DimensionManagement](https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/) `AddDimSource`
- [2919](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2919) calls [Codeunit 408 DimensionManagement](https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/) `AddDimSource`
- [2920](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2920) calls [Codeunit 408 DimensionManagement](https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/) `AddDimSource`
- [2921](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2921) calls [Codeunit 408 DimensionManagement](https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/) `AddDimSource`
- [2923](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2923) raises `OnAfterInitDefaultDimensionSources`

## AskContractAmountDistribution

[Line 2926](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2926), local.

- [2934](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2934) raises `OnBeforeAskContractAmountDistribution`, IsHandled
- [2937](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2937) calls [Page 6079 Contract Amount Distribution](https://jonas-paprotka.de/ref/page/6079-contract-amount-distribution/) `SetValues`
- [2939](https://jonas-paprotka.de/ref/table/5965-service-contract-header/source/#L2939) calls [Page 6079 Contract Amount Distribution](https://jonas-paprotka.de/ref/page/6079-contract-amount-distribution/) `GetResult`

## Source

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

JOP-AL, 2026-11-20.
