---
title: "Codeunit 8005 Create Subscription Header, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/points/
object: https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/
app: "Subscription Billing"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-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/"
---

# Codeunit 8005 Create Subscription Header, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/points/

4 procedures and triggers with a step in src/Apps/W1/Subscription Billing/App/Import/Codeunits/CreateSubscriptionHeader.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 10](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L10), trigger.

- [13](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L13) calls `TestImportedServiceObject`
- [14](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L14) calls `CreateServiceObject`

## TestImportedServiceObject

[Line 19](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L19), local.

- [25](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L25) calls `TestIfServiceObjectSeriesNoCanUseManualNos`
- [32](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L32) raises `OnAfterTestImportedSubscriptionHeader`

## TestIfServiceObjectSeriesNoCanUseManualNos

[Line 35](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L35), local.

- [41](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L41) calls [Codeunit 310 No. Series](https://jonas-paprotka.de/ref/codeunit/310-no-series/) `TestManual`

## CreateServiceObject

[Line 44](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L44), local.

- [50](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L50) writes [Table 8057 Subscription Header](https://jonas-paprotka.de/ref/table/8057-subscription-header/) Insert(true)
- [51](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L51) calls [Table 8057 Subscription Header](https://jonas-paprotka.de/ref/table/8057-subscription-header/) `SkipInsertServiceCommitmentsFromStandardServCommPackages`
- [52](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L52) calls [Table 8057 Subscription Header](https://jonas-paprotka.de/ref/table/8057-subscription-header/) `SetHideValidationDialog`
- [53](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L53) raises `OnAfterSubscriptionHeaderInsert`
- [56](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L56) validates [Table 8057 Subscription Header](https://jonas-paprotka.de/ref/table/8057-subscription-header/) `Source No.`
- [59](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L59) validates [Table 8057 Subscription Header](https://jonas-paprotka.de/ref/table/8057-subscription-header/) `Quantity`
- [61](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L61) validates [Table 8057 Subscription Header](https://jonas-paprotka.de/ref/table/8057-subscription-header/) `Unit of Measure`
- [63](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L63) validates [Table 8057 Subscription Header](https://jonas-paprotka.de/ref/table/8057-subscription-header/) `Customer Reference`
- [65](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L65) validates [Table 8057 Subscription Header](https://jonas-paprotka.de/ref/table/8057-subscription-header/) `Serial No.`
- [67](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L67) validates [Table 8057 Subscription Header](https://jonas-paprotka.de/ref/table/8057-subscription-header/) `Version`
- [69](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L69) validates [Table 8057 Subscription Header](https://jonas-paprotka.de/ref/table/8057-subscription-header/) `Key`
- [71](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L71) validates [Table 8057 Subscription Header](https://jonas-paprotka.de/ref/table/8057-subscription-header/) `Provision Start Date`
- [73](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L73) validates [Table 8057 Subscription Header](https://jonas-paprotka.de/ref/table/8057-subscription-header/) `Provision End Date`
- [75](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L75) validates [Table 8057 Subscription Header](https://jonas-paprotka.de/ref/table/8057-subscription-header/) `End-User Customer No.`
- [77](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L77) validates [Table 8057 Subscription Header](https://jonas-paprotka.de/ref/table/8057-subscription-header/) `End-User Contact No.`
- [79](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L79) validates [Table 8057 Subscription Header](https://jonas-paprotka.de/ref/table/8057-subscription-header/) `Bill-to Customer No.`
- [81](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L81) validates [Table 8057 Subscription Header](https://jonas-paprotka.de/ref/table/8057-subscription-header/) `Bill-to Contact No.`
- [83](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L83) validates [Table 8057 Subscription Header](https://jonas-paprotka.de/ref/table/8057-subscription-header/) `Ship-to Code`
- [84](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L84) writes [Table 8057 Subscription Header](https://jonas-paprotka.de/ref/table/8057-subscription-header/) Modify(true)
- [85](https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/#L85) raises `OnAfterSubscriptionHeaderModify`

## Source

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

JOP-AL, 2026-11-20.
