---
id: object/codeunit/8074
type: object
title: Codeunit 8074 "Document Change Management"
summary: Codeunit 8074 "Document Change Management" in Subscription Billing (Microsoft.SubscriptionBilling). 3 public procedures, 1 events, 113 event subscribers. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - 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: 3ef39b530707958959cfb56767ad1a097e95d5931dc3e6a1b3e6967230c47341
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Subscription%20Billing/app/Billing/Codeunits/DocumentChangeManagement.Codeunit.al
    title: src/Apps/W1/Subscription Billing/app/Billing/Codeunits/DocumentChangeManagement.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 8074
name: Document Change Management
namespace: Microsoft.SubscriptionBilling
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: 0
  procedures: 118
  events: 1
  subscribers: 113
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Codeunit 8074 "Document Change Management"

> Codeunit 8074 "Document Change Management" in Subscription Billing (Microsoft.SubscriptionBilling). 3 public procedures, 1 events, 113 event subscribers. Introduced in BC29, still in BC30.

Subscription Billing · Microsoft.SubscriptionBilling · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Subscription%20Billing/app/Billing/Codeunits/DocumentChangeManagement.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| SingleInstance | true |

## Events published

- `OnBeforePreventChangeOnDocumentHeaderOrLine(RecVariant: Variant; CurrFieldNo: Integer; var IsHandled: Boolean)` (integration)

## Event subscriptions

- PreventSelltoCustomerNo subscribes to Table "Sales Header" OnBeforeValidateEvent (Sell-to Customer No.)
- PreventChangeSalesHdrBilltoCustomerNo subscribes to Table "Sales Header" OnBeforeValidateEvent (Bill-to Customer No.)
- SalesHeaderOnBeforeValidateSCustomerPostingGroup subscribes to Table "Sales Header" OnBeforeValidateEvent (Customer Posting Group)
- SalesHeaderOnBeforeValidateGenBusPostingGroup subscribes to Table "Sales Header" OnBeforeValidateEvent (Gen. Bus. Posting Group)
- SalesHeaderOnBeforeValidateVATBusPostingGroup subscribes to Table "Sales Header" OnBeforeValidateEvent (VAT Bus. Posting Group)
- PreventChangeSalesHdrBilltoName subscribes to Table "Sales Header" OnBeforeValidateEvent (Bill-to Name)
- PreventChangeSalesHdrBilltoName2 subscribes to Table "Sales Header" OnBeforeValidateEvent (Bill-to Name 2)
- PreventChangeSalesHdrBilltoAddress subscribes to Table "Sales Header" OnBeforeValidateEvent (Bill-to Address)
- PreventChangeSalesHdrBilltoAddress2 subscribes to Table "Sales Header" OnBeforeValidateEvent (Bill-to Address 2)
- PreventChangeSalesHdrBilltoCity subscribes to Table "Sales Header" OnBeforeValidateEvent (Bill-to City)
- PreventChangeSalesHdrBilltoContact subscribes to Table "Sales Header" OnBeforeValidateEvent (Bill-to Contact)
- PreventChangeSalesHdrShortcutDimension1Code subscribes to Table "Sales Header" OnBeforeValidateEvent (Shortcut Dimension 1 Code)
- PreventChangeSalesHdrShortcutDimension2Code subscribes to Table "Sales Header" OnBeforeValidateEvent (Shortcut Dimension 2 Code)
- PreventChangeSalesHdrCurrencyCode subscribes to Table "Sales Header" OnBeforeValidateEvent (Currency Code)
- PreventChangeSalesHdrPricesIncludingVAT subscribes to Table "Sales Header" OnBeforeValidateEvent (Prices Including VAT)
- PreventChangeSalesHdrEU3PartyTrade subscribes to Table "Sales Header" OnBeforeValidateEvent (EU 3-Party Trade)
- PreventChangeSalesHdrTransactionType subscribes to Table "Sales Header" OnBeforeValidateEvent (Transaction Type)
- PreventChangeSalesHdrTransportMethod subscribes to Table "Sales Header" OnBeforeValidateEvent (Transport Method)
- PreventChangeSalesHdrSelltoCustomerName subscribes to Table "Sales Header" OnBeforeValidateEvent (Sell-to Customer Name)
- PreventChangeSalesHdrSelltoCustomerName2 subscribes to Table "Sales Header" OnBeforeValidateEvent (Sell-to Customer Name 2)
- PreventChangeSalesHdrSelltoAddress subscribes to Table "Sales Header" OnBeforeValidateEvent (Sell-to Address)
- PreventChangeSalesHdrSelltoAddress2 subscribes to Table "Sales Header" OnBeforeValidateEvent (Sell-to Address 2)
- PreventChangeSalesHdrSelltoCity subscribes to Table "Sales Header" OnBeforeValidateEvent (Sell-to City)
- PreventChangeSalesHdrSelltoContact subscribes to Table "Sales Header" OnBeforeValidateEvent (Sell-to Contact)
- PreventChangeSalesHdrBilltoPostCode subscribes to Table "Sales Header" OnBeforeValidateEvent (Bill-to Post Code)
- PreventChangeSalesHdrBilltoCounty subscribes to Table "Sales Header" OnBeforeValidateEvent (Bill-to County)
- PreventChangeSalesHdrBilltoCountryRegionCode subscribes to Table "Sales Header" OnBeforeValidateEvent (Bill-to Country/Region Code)
- PreventChangeSalesHdrSelltoPostCode subscribes to Table "Sales Header" OnBeforeValidateEvent (Sell-to Post Code)
- PreventChangeSalesHdrSelltoCounty subscribes to Table "Sales Header" OnBeforeValidateEvent (Sell-to County)
- PreventChangeSalesHdrSelltoCountryRegionCode subscribes to Table "Sales Header" OnBeforeValidateEvent (Sell-to Country/Region Code)
- PreventChangeSalesHdrVATBusPostingGroup subscribes to Table "Sales Header" OnBeforeValidateEvent (VAT Bus. Posting Group)
- PreventChangeSalesHdrDimensionSetD subscribes to Table "Sales Header" OnBeforeValidateEvent (Dimension Set ID)
- PreventChangeSalesHdrSelltoCustomerTemplateCode subscribes to Table "Sales Header" OnBeforeValidateEvent (Sell-to Customer Templ. Code)
- PreventChangeSalesHdrSelltoContactNo subscribes to Table "Sales Header" OnBeforeValidateEvent (Sell-to Contact No.)
- PreventChangeSalesHdrBilltoContactNo subscribes to Table "Sales Header" OnBeforeValidateEvent (Bill-to Contact No.)
- PreventChangeSalesHdrBilltoCustomerTemplateCode subscribes to Table "Sales Header" OnBeforeValidateEvent (Bill-to Customer Templ. Code)
- SetSkipContractSalesHeaderCheckOnBeforeCopySalesDocument subscribes to Codeunit "Copy Document Mgt." OnBeforeCopySalesDocument
- RemoveSkipContractSalesHeaderCheckOnBeforeCopySalesDocument subscribes to Codeunit "Copy Document Mgt." OnAfterCopySalesDocument
- PreventChangeSalesHeader subscribes to Table "Sales Header" OnBeforeModifyEvent
- PreventExistingDimensionsAfterChangingResponsibilityCenter subscribes to Table "Sales Header" OnBeforeCreateDimFromDefaultDim
- SkipExistingConfirmationDialogAndProceed subscribes to Table "Sales Header" OnBeforeConfirmKeepExistingDimensions
- PreventChangeSalesHeaderInvoiceDiscPct subscribes to Page "Sales Invoice Subform" OnAfterValidateEvent (Invoice Disc. Pct.)
- PreventChangeSalesHeaderInvoiceDiscAmount subscribes to Page "Sales Invoice Subform" OnAfterValidateEvent (Invoice Discount Amount)
- PreventChangeSalesCrMemoInvoiceDiscPct subscribes to Page "Sales Cr. Memo Subform" OnAfterValidateEvent (Invoice Disc. Pct.)
- PreventChangeSalesCrMemoInvoiceDiscAmount subscribes to Page "Sales Cr. Memo Subform" OnAfterValidateEvent (Invoice Discount Amount)
- PreventChangeSalesQuoteInvoiceDiscPct subscribes to Page "Sales Quote Subform" OnAfterValidateEvent (Invoice Disc. Pct.)
- PreventChangeSalesQuoteInvoiceDiscAmount subscribes to Page "Sales Quote Subform" OnAfterValidateEvent (Invoice Discount Amount)
- PreventChangePurchHeaderInvoiceDiscPct subscribes to Page "Purch. Invoice Subform" OnAfterValidateEvent (Invoice Disc. Pct.)
- PreventChangePurchHeaderInvoiceDiscAmount subscribes to Page "Purch. Invoice Subform" OnAfterValidateEvent (InvoiceDiscountAmount)
- PreventChangePurchCrMemoInvoiceDiscPct subscribes to Page "Purch. Cr. Memo Subform" OnAfterValidateEvent (Invoice Disc. Pct.)
- PreventChangePurchCrMemoInvoiceDiscAmount subscribes to Page "Purch. Cr. Memo Subform" OnAfterValidateEvent (Invoice Discount Amount)
- PreventChangeOnSalesLine subscribes to Table "Sales Line" OnBeforeModifyEvent
- PreventChangeSalesLineShortcutDimension1Code subscribes to Table "Sales Line" OnBeforeValidateEvent (Shortcut Dimension 1 Code)
- PreventChangeSalesLineShortcutDimension2Code subscribes to Table "Sales Line" OnBeforeValidateEvent (Shortcut Dimension 2 Code)
- PreventChangeSalesLineAmount subscribes to Table "Sales Line" OnBeforeValidateEvent (Amount)
- PreventChangeSalesLineLineDiscount subscribes to Table "Sales Line" OnBeforeValidateEvent (Line Discount %)
- PreventChangeSalesLineLineDiscountAmount subscribes to Table "Sales Line" OnBeforeValidateEvent (Line Discount Amount)
- PreventChangeSalesLineLineAmount subscribes to Table "Sales Line" OnBeforeValidateEvent (Line Amount)
- PreventChangeSalesLineType subscribes to Table "Sales Line" OnBeforeValidateEvent (Type)
- PreventChangeSalesLineNo subscribes to Table "Sales Line" OnBeforeValidateEvent (No.)
- PreventChangeSalesLineUnitPrice subscribes to Table "Sales Line" OnBeforeValidateEvent (Unit Price)
- PreventChangeSalesLineUnitofMeasureCode subscribes to Table "Sales Line" OnBeforeValidateEvent (Unit of Measure Code)
- PreventChangeSalesLineQuantity subscribes to Table "Sales Line" OnBeforeValidateEvent (Quantity)
- PreventChangeSalesLineRecurringBillingfrom subscribes to Table "Sales Line" OnBeforeValidateEvent (Recurring Billing from)
- PreventChangeSalesLineRecurringBillingto subscribes to Table "Sales Line" OnBeforeValidateEvent (Recurring Billing to)
- PreventChangePurchHdrBuyFromVendorNo subscribes to Table "Purchase Header" OnBeforeValidateEvent (Buy-from Vendor No.)
- PreventChangePurchHdrBilltoVendorNo subscribes to Table "Purchase Header" OnBeforeValidateEvent (Pay-to Vendor No.)
- PreventChangePurchHdrBilltoName subscribes to Table "Purchase Header" OnBeforeValidateEvent (Pay-to Name)
- PreventChangePurchHdrBilltoName2 subscribes to Table "Purchase Header" OnBeforeValidateEvent (Pay-to Name 2)
- PreventChangePurchHdrBilltoAddress subscribes to Table "Purchase Header" OnBeforeValidateEvent (Pay-to Address)
- PreventChangePurchHdrBilltoAddress2 subscribes to Table "Purchase Header" OnBeforeValidateEvent (Pay-to Address 2)
- PreventChangePurchHdrBilltoCity subscribes to Table "Purchase Header" OnBeforeValidateEvent (Pay-to City)
- PreventChangePurchHdrBilltoContact subscribes to Table "Purchase Header" OnBeforeValidateEvent (Pay-to Contact)
- PreventChangePurchHdrShortcutDimension1Code subscribes to Table "Purchase Header" OnBeforeValidateEvent (Shortcut Dimension 1 Code)
- PreventChangePurchHdrShortcutDimension2Code subscribes to Table "Purchase Header" OnBeforeValidateEvent (Shortcut Dimension 2 Code)
- PreventChangePurchHdrCurrencyCode subscribes to Table "Purchase Header" OnBeforeValidateEvent (Currency Code)
- PreventChangePurchHdrPricesIncludingVAT subscribes to Table "Purchase Header" OnBeforeValidateEvent (Prices Including VAT)
- PreventChangePurchHdrTransactionType subscribes to Table "Purchase Header" OnBeforeValidateEvent (Transaction Type)
- PreventChangePurchHdrTransportMethod subscribes to Table "Purchase Header" OnBeforeValidateEvent (Transport Method)
- PreventChangePurchHdrSelltoVendorName subscribes to Table "Purchase Header" OnBeforeValidateEvent (Buy-from Vendor Name)
- PreventChangePurchHdrSelltoVendorName2 subscribes to Table "Purchase Header" OnBeforeValidateEvent (Buy-from Vendor Name 2)
- PreventChangePurchHdrSelltoAddress subscribes to Table "Purchase Header" OnBeforeValidateEvent (Buy-from Address)
- PreventChangePurchHdrSelltoAddress2 subscribes to Table "Purchase Header" OnBeforeValidateEvent (Buy-from Address 2)
- PreventChangePurchHdrSelltoCity subscribes to Table "Purchase Header" OnBeforeValidateEvent (Buy-from City)
- PreventChangePurchHdrSelltoContact subscribes to Table "Purchase Header" OnBeforeValidateEvent (Buy-from Contact)
- PreventChangePurchHdrBilltoPostCode subscribes to Table "Purchase Header" OnBeforeValidateEvent (Pay-to Post Code)
- PreventChangePurchHdrBilltoCounty subscribes to Table "Purchase Header" OnBeforeValidateEvent (Pay-to County)
- PreventChangePurchHdrBilltoCountryRegionCode subscribes to Table "Purchase Header" OnBeforeValidateEvent (Pay-to Country/Region Code)
- PreventChangePurchHdrSelltoPostCode subscribes to Table "Purchase Header" OnBeforeValidateEvent (Buy-from Post Code)
- PreventChangePurchHdrSelltoCounty subscribes to Table "Purchase Header" OnBeforeValidateEvent (Buy-from County)
- PreventChangePurchHdrSelltoCountryRegionCode subscribes to Table "Purchase Header" OnBeforeValidateEvent (Buy-from Country/Region Code)
- PreventChangePurchHdrVATBusPostingGroup subscribes to Table "Purchase Header" OnBeforeValidateEvent (VAT Bus. Posting Group)
- PreventChangePurchHdrDimensionSetD subscribes to Table "Purchase Header" OnBeforeValidateEvent (Dimension Set ID)
- PreventChangePurchHdrSelltoContactNo subscribes to Table "Purchase Header" OnBeforeValidateEvent (Buy-from Contact No.)
- PreventChangePurchHdrBilltoContactNo subscribes to Table "Purchase Header" OnBeforeValidateEvent (Pay-to Contact No.)
- RemoveBooleanKeyOnAfterCreateCopyPurchaseDocument subscribes to Codeunit "Correct Posted Purch. Invoice" OnAfterCreateCopyDocument
- SetBooleanKeyOnBeforeCopyPurchaseDocument subscribes to Codeunit "Copy Document Mgt." OnBeforeCopyPurchaseDocument
- RemoveBooleanKeyOnAfterCopyPurchaseDocument subscribes to Codeunit "Copy Document Mgt." OnAfterCopyPurchaseDocument
- PreventChangePurchaseHeader subscribes to Table "Purchase Header" OnBeforeModifyEvent
- PreventChangePurchaseLineShortcutDimension1Code subscribes to Table "Purchase Line" OnBeforeValidateEvent (Shortcut Dimension 1 Code)
- PreventChangePurchaseLineShortcutDimension2Code subscribes to Table "Purchase Line" OnBeforeValidateEvent (Shortcut Dimension 2 Code)
- PreventChangePurchaseLineAmount subscribes to Table "Purchase Line" OnBeforeValidateEvent (Amount)
- PreventChangePurchaseLineLineDiscount subscribes to Table "Purchase Line" OnBeforeValidateEvent (Line Discount %)
- PreventChangePurchaseLineLineDiscountAmount subscribes to Table "Purchase Line" OnBeforeValidateEvent (Line Discount Amount)
- PreventChangePurchaseLineLineAmount subscribes to Table "Purchase Line" OnBeforeValidateEvent (Line Amount)
- PreventChangePurchaseLineType subscribes to Table "Purchase Line" OnBeforeValidateEvent (Type)
- PreventChangePurchaseLineNo subscribes to Table "Purchase Line" OnBeforeValidateEvent (No.)
- PreventChangePurchaseLineUnitPrice subscribes to Table "Purchase Line" OnBeforeValidateEvent (Unit Cost)
- PreventChangePurchaseLineUnitofMeasureCode subscribes to Table "Purchase Line" OnBeforeValidateEvent (Unit of Measure Code)
- PreventChangePurchaseLineQuantity subscribes to Table "Purchase Line" OnBeforeValidateEvent (Quantity)
- PreventChangePurchaseLineRecurringBillingfrom subscribes to Table "Purchase Line" OnBeforeValidateEvent (Recurring Billing from)
- PreventChangePurchaseLineRecurringBillingto subscribes to Table "Purchase Line" OnBeforeValidateEvent (Recurring Billing to)
- PreventChangeOnPurchaseLine subscribes to Table "Purchase Line" OnBeforeModifyEvent

## Procedures

- `PreventChangeOnDocumentHeaderOrLine(RecVariant: Variant; CurrFieldNo: Integer)` (internal)
- `SetSkipContractSalesHeaderModifyCheck(NewSkipContractSalesHeaderModifyCheck: Boolean)`
- `SetSkipContractPurchaseHeaderModifyCheck(NewSkipContractPurchaseHeaderModifyCheck: Boolean)`

Plus 1 local procedures.

## 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: "codeunit", object_name: "Document Change Management")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
