---
id: object/table/8021
type: object
title: Table 8021 "Usage Data Billing Metadata"
summary: Table 8021 "Usage Data Billing Metadata" in Subscription Billing. 11 fields, 2 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - table
  - subscription billing
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: b1bbfbf295133a71c3896ac33addb3e635810c74a097d2dc698798de1e4e7f11
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Subscription%20Billing/app/Usage%20Based%20Billing/Tables/UsageDataBillingMetadata.Table.al
    title: src/Apps/W1/Subscription Billing/app/Usage Based Billing/Tables/UsageDataBillingMetadata.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/UBB/processing-usage-data/rebilling
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/sales/subscription-billing/bill-subscriptions-based-on-usage
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 8021
name: Usage Data Billing Metadata
namespace: null
app: Subscription Billing
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 11
  procedures: 2
  events: 0
  subscribers: 0
relations:
  out: 7
  referenced_by: 0
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 8021 "Usage Data Billing Metadata"

> Table 8021 "Usage Data Billing Metadata" in Subscription Billing. 11 fields, 2 public procedures. Introduced in BC29, still in BC30.

Subscription Billing · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Subscription%20Billing/app/Usage%20Based%20Billing/Tables/UsageDataBillingMetadata.Table.al) · facts from BC29

Learn documents this table through its pages: [Page 8096 "Usage Data Billing Metadata"](../page/8096.md) (1 Learn page).

## Properties

| Property | Value |
|---|---|
| Caption | Usage Data Billing Metadata |
| Access | Internal |
| DataClassification | CustomerContent |
| LookupPageId | Usage Data Billing Metadata |
| DrillDownPageId | Usage Data Billing Metadata |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Entry No. | Integer | — | AutoIncrement |
| 2 | Usage Data Billing Entry No. | Integer | Entry No. <small>caption</small> | TableRelation [Table 8006 "Usage Data Billing"](../table/8006.md) (Usage Data Billing) |
| 3 | Subscription No. | Code[20] | Specifies the number of the related Subscription. <small>via [Page 8096 "Usage Data Billing Metadata"](../page/8096.md)</small> | TableRelation [Table 8057 "Subscription Header"](../table/8057.md) (Subscription Header) |
| 4 | Subscription Line Entry No. | Integer | Specifies the number of the related Subscription Line line. <small>via [Page 8096 "Usage Data Billing Metadata"](../page/8096.md)</small> | TableRelation [Table 8059 "Subscription Line"](../table/8059.md) (Subscription Line) |
| 5 | Supplier Charge Start Date | Date | Specifies the start date of the usage provided by the supplier <small>via [Page 8096 "Usage Data Billing Metadata"](../page/8096.md)</small> |  |
| 6 | Supplier Charge End Date | Date | Specifies the end date of the usage provided by the supplier. <small>via [Page 8096 "Usage Data Billing Metadata"](../page/8096.md)</small> |  |
| 7 | Original Invoiced to Date | Date | Specifies the date up to which the Subscription Line was originally invoiced. <small>via [Page 8096 "Usage Data Billing Metadata"](../page/8096.md)</small> |  |
| 8 | Invoiced | Boolean | Specifies whether the related usage data billing is invoiced. <small>via [Page 8096 "Usage Data Billing Metadata"](../page/8096.md)</small> |  |
| 9 | Rebilling | Boolean | Specifies whether the related usage data billing comes out of a rebilling scenario. <small>via [Page 8096 "Usage Data Billing Metadata"](../page/8096.md)</small> |  |
| 10 | Billing Document Type | Enum "Usage Based Billing Doc. Type" | Specifies which document type was used to post the associated usage data. <small>via [Page 8096 "Usage Data Billing Metadata"](../page/8096.md)</small> | FlowField: lookup("Usage Data Billing"."Document Type" where("Entry No." = field("Usage Data Billing Entry No."))); enum [Enum 8008 "Usage Based Billing Doc. Type"](../enum/8008.md); not editable |
| 11 | Billing Document No. | Code[20] | Specifies which document no. was used to post the associated usage data. <small>via [Page 8096 "Usage Data Billing Metadata"](../page/8096.md)</small> | FlowField: lookup("Usage Data Billing"."Document No." where("Entry No." = field("Usage Data Billing Entry No."))); not editable |

## Keys

- PK: Entry No. (clustered)

## Procedures

- `InsertFromUsageDataBilling(UsageDataBilling: Record "Usage Data Billing")` (internal)
- `FilterOnServiceCommitment(ServiceCommitmentEntryNo: Integer)` (internal)

## Relations

- drill-down page [Page 8096 "Usage Data Billing Metadata"](../page/8096.md)
- lookup page [Page 8096 "Usage Data Billing Metadata"](../page/8096.md)
- Billing Document No.: CalcFormula [Table 8006 "Usage Data Billing"](../table/8006.md)
- Billing Document Type: CalcFormula [Table 8006 "Usage Data Billing"](../table/8006.md)
- Usage Data Billing Entry No.: TableRelation [Table 8006 "Usage Data Billing"](../table/8006.md)
- Subscription No.: TableRelation [Table 8057 "Subscription Header"](../table/8057.md)
- Subscription Line Entry No.: TableRelation [Table 8059 "Subscription Line"](../table/8059.md)

## Pages and codeunits on this table

- [Page 8096 "Usage Data Billing Metadata"](../page/8096.md) (source table)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "table", object_name: "Usage Data Billing Metadata")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
