---
title: "Codeunit 8029 Usage Based Billing Mgmt., extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/points/
object: https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/
app: "Subscription Billing"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/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 8029 Usage Based Billing Mgmt., extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/points/

12 procedures and triggers with a step in src/Apps/W1/Subscription Billing/App/Usage Based Billing/Codeunits/UsageBasedBillingMgmt.Codeunit.al, in source order, read from the text, not from a run.

## ConnectSubscriptionsToServiceObjects

[Line 22](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L22).

- [41](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L41) calls `TestUsageDataSubscription`
- [43](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L43) calls `AskToProceedIfServiceObjectIsAssignedToMultipleSubscriptions`
- [44](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L44) calls `ErrorIfServiceObjectItemIsBlocked`
- [50](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L50) calls `ConnectSubscriptionToServiceObjectWithNewServiceCommitments`
- [52](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L52) calls `ConnectSubscriptionToServiceObjectWithExistingServiceCommitments`
- [55](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L55) writes [Table 8016 Usage Data Supp. Subscription](https://jonas-paprotka.de/ref/table/8016-usage-data-supp-subscription/) Modify
- [56](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L56) calls [Table 8016 Usage Data Supp. Subscription](https://jonas-paprotka.de/ref/table/8016-usage-data-supp-subscription/) `UpdateSubscriptionHeaderNoInImportedData`

## DisconnectServiceCommitmentFromSubscription

[Line 62](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L62).

- [69](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L69) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponse`
- [70](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L70) calls `ResetSupplierReferenceEntryNoForServiceObject`
- [71](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L71) calls [Table 8016 Usage Data Supp. Subscription](https://jonas-paprotka.de/ref/table/8016-usage-data-supp-subscription/) `ResetServiceObjectAndServiceCommitment`

## ResetSupplierReferenceEntryNoForServiceObject

[Line 75](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L75), local.

- [81](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L81) writes [Table 8059 Subscription Line](https://jonas-paprotka.de/ref/table/8059-subscription-line/) ModifyAll

## ConnectSubscriptionToServiceObjectWithExistingServiceCommitments

[Line 84](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L84), internal.

- [93](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L93) calls `CheckAndConnectServiceCommitmentToUsageDataSubscription`
- [96](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L96) calls [Table 8016 Usage Data Supp. Subscription](https://jonas-paprotka.de/ref/table/8016-usage-data-supp-subscription/) `SetErrorReason`
- [100](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L100) validates [Table 8016 Usage Data Supp. Subscription](https://jonas-paprotka.de/ref/table/8016-usage-data-supp-subscription/) `Subscription Header No.`
- [101](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L101) validates [Table 8016 Usage Data Supp. Subscription](https://jonas-paprotka.de/ref/table/8016-usage-data-supp-subscription/) `Subscription Line Entry No.`
- [102](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L102) validates [Table 8016 Usage Data Supp. Subscription](https://jonas-paprotka.de/ref/table/8016-usage-data-supp-subscription/) `Processing Status`

## CheckAndConnectServiceCommitmentToUsageDataSubscription

[Line 106](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L106), local.

- [109](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L109) calls [Table 8016 Usage Data Supp. Subscription](https://jonas-paprotka.de/ref/table/8016-usage-data-supp-subscription/) `SetErrorReason`
- [110](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L110) writes [Table 8016 Usage Data Supp. Subscription](https://jonas-paprotka.de/ref/table/8016-usage-data-supp-subscription/) Modify
- [114](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L114) writes [Table 8059 Subscription Line](https://jonas-paprotka.de/ref/table/8059-subscription-line/) Modify

## CloseExistingServiceCommitments

[Line 118](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L118), local.

- [125](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L125) writes [Table 8059 Subscription Line](https://jonas-paprotka.de/ref/table/8059-subscription-line/) Modify
- [126](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L126) calls [Table 8059 Subscription Line](https://jonas-paprotka.de/ref/table/8059-subscription-line/) `IsPartnerVendor`
- [129](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L129) calls [Table 8057 Subscription Header](https://jonas-paprotka.de/ref/table/8057-subscription-header/) `UpdateServicesDates`

## CheckIfServiceCommPackageHasUsageBasedReference

[Line 149](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L149), local.

- [157](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L157) calls [Table 8055 Subscription Package](https://jonas-paprotka.de/ref/table/8055-subscription-package/) `FilterCodeOnPackageFilter`
- [157](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L157) calls [Table 8058 Item Subscription Package](https://jonas-paprotka.de/ref/table/8058-item-subscription-package/) `GetAllStandardPackageFilterForItem`
- [163](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L163) calls [Table 8056 Subscription Package Line](https://jonas-paprotka.de/ref/table/8056-subscription-package-line/) `IsPartnerVendor`
- [164](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L164) calls [Table 8016 Usage Data Supp. Subscription](https://jonas-paprotka.de/ref/table/8016-usage-data-supp-subscription/) `SetErrorReason`
- [172](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L172) calls [Table 8016 Usage Data Supp. Subscription](https://jonas-paprotka.de/ref/table/8016-usage-data-supp-subscription/) `SetErrorReason`

## CheckIfUsageDataSubscriptionIsSetToNewServiceCommitments

[Line 177](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L177), local.

- [180](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L180) calls [Table 8016 Usage Data Supp. Subscription](https://jonas-paprotka.de/ref/table/8016-usage-data-supp-subscription/) `SetErrorReason`

## TestUsageDataSubscription

[Line 183](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L183), local.

- [186](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L186) calls `CheckIfUsageDataSubscriptionIsSetToNewServiceCommitments`
- [189](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L189) calls [Table 8016 Usage Data Supp. Subscription](https://jonas-paprotka.de/ref/table/8016-usage-data-supp-subscription/) `SetErrorReason`

## AskToProceedIfServiceObjectIsAssignedToMultipleSubscriptions

[Line 192](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L192), local.

- [201](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L201) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponse`

## ErrorIfServiceObjectItemIsBlocked

[Line 205](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L205), local.

- [214](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L214) calls [Table 8016 Usage Data Supp. Subscription](https://jonas-paprotka.de/ref/table/8016-usage-data-supp-subscription/) `SetErrorReason`

## ConnectSubscriptionToServiceObjectWithNewServiceCommitments

[Line 217](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L217).

- [234](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L234) calls `FindCustomerServiceCommitmentFromServiceObject`
- [237](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L237) calls [Table 8016 Usage Data Supp. Subscription](https://jonas-paprotka.de/ref/table/8016-usage-data-supp-subscription/) `SetErrorReason`
- [241](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L241) calls `AssignVendorContractNoFromServiceCommitment`
- [244](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L244) calls `CheckIfServiceCommPackageHasUsageBasedReference`
- [247](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L247) calls `CloseExistingServiceCommitments`
- [252](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L252) calls [Codeunit 8075 Extend Sub. Contract Mgt.](https://jonas-paprotka.de/ref/codeunit/8075-extend-sub-contract-mgt/) `ExtendContract`
- [255](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L255) validates [Table 8016 Usage Data Supp. Subscription](https://jonas-paprotka.de/ref/table/8016-usage-data-supp-subscription/) `Subscription Header No.`
- [256](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L256) validates [Table 8016 Usage Data Supp. Subscription](https://jonas-paprotka.de/ref/table/8016-usage-data-supp-subscription/) `Subscription Line Entry No.`
- [257](https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/#L257) validates [Table 8016 Usage Data Supp. Subscription](https://jonas-paprotka.de/ref/table/8016-usage-data-supp-subscription/) `Processing Status`

## Source

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

JOP-AL, 2026-11-20.
