---
title: "Table 8006 Usage Data Billing"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/table/8006-usage-data-billing/
type: table
id: 8006
name: "Usage Data Billing"
app: "Subscription Billing"
namespace: Microsoft.SubscriptionBilling
versions: "26-29"
build: 29.0.54011.55644
countries: "W1, DE, US"
source: "https://jonas-paprotka.de/ref/table/8006-usage-data-billing/source/?v=28 https://jonas-paprotka.de/ref/table/8006-usage-data-billing/source/"
checked: 2026-11-20
changed: 2026-10-10
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 8006 Usage Data Billing

JOP-AL, https://jonas-paprotka.de/ref/table/8006-usage-data-billing/

| | |
| --- | --- |
| App | Subscription Billing |
| Namespace | Microsoft.SubscriptionBilling |
| Versions | 26-29 |
| Minors | W1 26.0-29.0; DE 26.0-29.0; US 26.0-29.0, [every minor](https://jonas-paprotka.de/ref/table/8006-usage-data-billing/editions.json) |
| Source file | Usage Based Billing/Tables/UsageDataBilling.Table.al |

## Fields

| Id | Name | Type | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| 1 | Entry No. | Integer | 26-29 | - | - |
| 2 | Usage Data Import Entry No. | Integer | 26-29 | - | - |
| 3 | Supplier No. | Code[20] | 26-29 | - | - |
| 4 | Partner | Enum Service Partner | 26-29 | - | - |
| 5 | Subscription Contract No. | Code[20] | 26-29 | - | - |
| 6 | Subscription Contract Line No. | Integer | 26-29 | - | - |
| 7 | Subscription Header No. | Code[20] | 26-29 | - | - |
| 8 | Subscription Description | Text[100] | 26-29 | - | - |
| 9 | Subscription Line Entry No. | Integer | 26-29 | - | - |
| 10 | Subscription Line Description | Text[100] | 26-29 | - | - |
| 11 | Processing Status | Enum Processing Status | 26-29 | - | - |
| 12 | Processing Date | Date | 26-29 | - | - |
| 13 | Processing Time | Time | 26-29 | - | - |
| 14 | Reason (Preview) | Text[80] | 26-29 | - | - |
| 15 | Reason | Blob | 26-29 | - | - |
| 16 | Charge Start Date | Date | 26-29 | - | - |
| 17 | Charge Start Time | Time | 26-29 | Pending 26.0 | No longer needed as the time component is not relevant for processing of usage data. |
| 18 | Charge End Date | Date | 26-29 | - | - |
| 19 | Charge End Time | Time | 26-29 | Pending 26.0 | No longer needed as the time component is not relevant for processing of usage data. |
| 20 | Charged Period (Days) | Decimal | 26-29 | - | - |
| 21 | Charged Period (Hours) | Decimal | 26-29 | Pending 26.0 | No longer needed as the time component is not relevant for processing of usage data. |
| 22 | Quantity | Decimal | 26-29 | - | - |
| 23 | Unit Cost | Decimal | 26-29 | - | - |
| 24 | Cost Amount | Decimal | 26-29 | - | - |
| 25 | Unit Price | Decimal | 26-29 | - | - |
| 26 | Amount | Decimal | 26-29 | - | - |
| 27 | Currency Code | Code[10] | 26-29 | - | - |
| 28 | Usage Base Pricing | Enum Usage Based Pricing | 26-29 | - | - |
| 29 | Pricing Unit Cost Surcharge % | Decimal | 26-29 | - | - |
| 30 | Billing Line Entry No. | Integer | 26-29 | - | - |
| 31 | Document Type | Enum Usage Based Billing Doc. Type | 26-29 | - | - |
| 32 | Document No. | Code[20] | 26-29 | - | - |
| 33 | Document Line No. | Integer | 26-29 | - | - |
| 34 | Rebilling | Boolean | 26-29 | - | - |
| 35 | Product ID | Text[80] | 27-29 | - | - |
| 36 | Product Name | Text[100] | 27-29 | - | - |

## Keys

| Name | Fields | Sum fields | Versions |
| --- | --- | --- | --- |
| PK, clustered | Entry No. | - | 26-29 |
| key1 | Usage Data Import Entry No., Subscription Header No., Subscription Line Entry No., Partner, Document Type, Charge End Date | Quantity, Amount | 26-29 |
| key2 | Subscription Contract No., Subscription Contract Line No. | - | 28-29 |
| key3 | Subscription Line Entry No., Document Type, Charge End Date | Quantity, Amount, Cost Amount | 28-29 |
| key4 | Document No., Document Type | - | 28-29 |
| key5 | Billing Line Entry No. | - | 28-29 |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| SetReason | (ReasonText: Text) | - | internal | 26-29 | - | - |
| InitFrom | (UsageDataImportEntryNo: Integer; ServiceObjectNo: Code[20]; BillingPeriodStartDate: Date; BillingPeriodEndDate: Date; UnitCost: Decimal; NewQuantity: Decimal; CostAmount: Decimal; UnitPrice: Decimal; NewAmount: Decimal; CurrencyCode: Code[10]) | - | internal | 26 | - | - |
| FilterOnUsageDataImportAndServiceCommitment | (UsageDataImportEntryNo: Integer; ServiceCommitment: Record "Subscription Line") | - | internal | 26-29 | - | - |
| FilterOnServiceCommitment | (ServiceCommitment: Record "Subscription Line") | - | internal | 26-29 | - | - |
| UpdateChargedPeriod | () | - | internal | 26-29 | - | - |
| ShowReason | () | - | internal | 26-29 | - | - |
| ShowRelatedDocuments | (var UsageBasedBilling: Record "Usage Data Billing"; DocumentType: Option Contract,"Contract Invoices","Posted Contract Invoices"; ServicePartner: Enum "Service Partner") | - | internal | 26-29 | - | - |
| MarkPurchaseHeaderFromUsageDataBilling | (var UsageDataBilling: Record "Usage Data Billing"; var PurchaseHeader: Record "Purchase Header") | - | internal | 26-29 | - | - |
| FilterOnDocumentTypeAndDocumentNo | (ServicePartner: Enum "Service Partner"; UsageBasedBillingDocType: Enum "Usage Based Billing Doc. Type"; DocumentNo: Code[20]) | - | internal | 26-29 | - | - |
| SaveDocumentValues | (UsageBasedBillingDocType: Enum "Usage Based Billing Doc. Type"; DocumentNo: Code[20]; DocumentEntryNo: Integer; BillingLineEntryNo: Integer) | - | internal | 26-29 | - | - |
| IsPartnerVendor | () | Boolean | internal | 26-29 | - | - |
| IsPartnerCustomer | () | Boolean | internal | 26-29 | - | - |
| ShowForContractLine | (ServicePartner: Enum "Service Partner"; ContractNo: Code[20]; EntryNo: Integer) | - | internal | 26-29 | - | - |
| ShowForDocuments | (ServicePartner: Enum "Service Partner"; DocumentType: Enum "Usage Based Billing Doc. Type"; DocumentNo: Code[20]; EntryNo: Integer) | - | internal | 26-29 | - | - |
| ShowForSalesDocuments | (DocumentType: Enum "Sales Document Type"; DocumentNo: Code[20]; EntryNo: Integer) | - | internal | 26-29 | - | - |
| ShowForPurchaseDocuments | (DocumentType: Enum "Purchase Document Type"; DocumentNo: Code[20]; EntryNo: Integer) | - | internal | 26-29 | - | - |
| ShowForRecurringBilling | (ServiceObjectNo: Code[20]; ServCommEntryNo: Integer; DocumentType: Enum "Rec. Billing Document Type"; DocumentNo: Code[20]) | - | internal | 26-29 | - | - |
| ShowForServiceCommitments | (ServicePartner: Enum "Service Partner"; ServiceObjectNo: Code[20]; EntryNo: Integer) | - | internal | 26-29 | - | - |
| ExistForContractLine | (ServicePartner: Enum "Service Partner"; ContractNo: Code[20]; EntryNo: Integer) | Boolean | internal | 26-29 | - | - |
| ExistForDocuments | (ServicePartner: Enum "Service Partner"; DocumentType: Enum "Usage Based Billing Doc. Type"; DocumentNo: Code[20]; EntryNo: Integer) | Boolean | internal | 26-29 | - | - |
| ExistForSalesDocuments | (DocumentType: Enum "Sales Document Type"; DocumentNo: Code[20]; EntryNo: Integer) | Boolean | internal | 26-29 | - | - |
| ExistForPurchaseDocuments | (DocumentType: Enum "Purchase Document Type"; DocumentNo: Code[20]; EntryNo: Integer) | Boolean | internal | 26-29 | - | - |
| ExistForRecurringBilling | (ServiceObjectNo: Code[20]; ServCommEntryNo: Integer; DocumentType: Enum "Rec. Billing Document Type"; DocumentNo: Code[20]) | Boolean | internal | 26-29 | - | - |
| ExistForServiceCommitments | (ServicePartner: Enum "Service Partner"; ServiceObjectNo: Code[20]; EntryNo: Integer) | Boolean | internal | 26-29 | - | - |
| UpdateRebilling | () | - | internal | 26-29 | - | - |
| InsertMetadata | () | - | internal | 26-29 | - | - |
| SetMetadataAsInvoiced | () | - | internal | 26-29 | - | - |
| IsInvoiced | () | Boolean | internal | 26-29 | - | - |
| InitFrom | (UsageDataImportEntryNo: Integer; SubscriptionHeaderNo: Code[20]; ProductID: Text[80]; ProductName: Text[100]; BillingPeriodStartDate: Date; BillingPeriodEndDate: Date; UnitCost: Decimal; NewQuantity: Decimal; CostAmount: Decimal; UnitPrice: Decimal; NewAmount: Decimal; CurrencyCode: Code[10]) | - | internal | 27 | - | - |
| GetPrintoutDescription | () | Text[100] | public | 27-29 | - | - |
| ShouldPrintProductName | () | Boolean | public | 27-29 | - | - |
| InitFrom | (UsageDataImportEntryNo: Integer; SubscriptionHeaderNo: Code[20]; ProductID: Text[80]; ProductName: Text[100]; BillingPeriodStartDate: Date; BillingPeriodEndDate: Date; NewQuantity: Decimal) | - | internal | 28-29 | - | - |
| AlignContractCurrency | (TempSubscriptionLine: Record "Subscription Line"; ImportCurrencyCode: Code[10]) | - | internal | 28-29 | - | - |
| CalculateAmounts | (UsageDataSupplier: Record "Usage Data Supplier"; ImportCurrencyCode: Code[10]; NewUnitCost: Decimal; NewCostAmount: Decimal; NewUnitPrice: Decimal; NewAmount: Decimal) | - | internal | 28-29 | - | - |
| GetReason | () | Text | internal | 28-29 | - | - |
| FilterDocumentWithLine | (ServicePartner: Enum "Service Partner"; DocumentType: Enum "Usage Based Billing Doc. Type"; DocumentNo: Code[20]; EntryNo: Integer) | - | internal | 28-29 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterSaveDocumentValues | (UsageDateBilling: Record "Usage Data Billing") | 26-29 | - | - |
| Integration event | OnAfterGetPrintoutDescription | (Rec: Record "Usage Data Billing"; var Description: Text[100]) | 27-29 | - | - |
| Integration event | OnAfterShouldPrintProductName | (Rec: Record "Usage Data Billing"; var Result: Boolean) | 27-29 | - | - |

## Trigger events

| Name | Parameters | ElementName | Docs |
| --- | --- | --- | --- |
| OnBeforeInsertEvent | (var Rec: Record "Usage Data Billing"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onbeforeinsertevent-table-trigger/ |
| OnAfterInsertEvent | (var Rec: Record "Usage Data Billing"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onafterinsertevent-table-trigger/ |
| OnBeforeModifyEvent | (var Rec: Record "Usage Data Billing"; var xRec: Record "Usage Data Billing"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onbeforemodifyevent-table-trigger/ |
| OnAfterModifyEvent | (var Rec: Record "Usage Data Billing"; var xRec: Record "Usage Data Billing"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onaftermodifyevent-table-trigger/ |
| OnBeforeDeleteEvent | (var Rec: Record "Usage Data Billing"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onbeforedeleteevent-table-trigger/ |
| OnAfterDeleteEvent | (var Rec: Record "Usage Data Billing"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onafterdeleteevent-table-trigger/ |
| OnBeforeRenameEvent | (var Rec: Record "Usage Data Billing"; var xRec: Record "Usage Data Billing"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onbeforerenameevent-table-trigger/ |
| OnAfterRenameEvent | (var Rec: Record "Usage Data Billing"; var xRec: Record "Usage Data Billing"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onafterrenameevent-table-trigger/ |
| OnBeforeValidateEvent | (var Rec: Record "Usage Data Billing"; var xRec: Record "Usage Data Billing"; CurrFieldNo: Integer) | per field, ElementName: field name | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onbeforevalidateevent-table-trigger/ |
| OnAfterValidateEvent | (var Rec: Record "Usage Data Billing"; var xRec: Record "Usage Data Billing"; CurrFieldNo: Integer) | per field, ElementName: field name | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onaftervalidateevent-table-trigger/ |

## Source

Symbols: Microsoft.SubscriptionBilling.symbols.3099ffc7-4cf7-4df6-9b96-7e4bc2bb587c, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-11-20.
AL source 28: https://github.com/microsoft/BCApps, MIT, releases/28.x at 408a4cc8d3a4c54b60464cc14c964479facb9ba0.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
