---
id: object/codeunit/8001
type: object
title: Codeunit 8001 "Sub. Contr. Renewal Subcribers"
summary: Codeunit 8001 "Sub. Contr. Renewal Subcribers" in Subscription Billing (Microsoft.SubscriptionBilling). 40 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: eb01e4f661a600f0b99138add417d4744deb97f4683e44034e33435063ddeb7f
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Subscription%20Billing/app/Contract%20Renewal/Codeunits/SubContrRenewalSubcribers.Codeunit.al
    title: src/Apps/W1/Subscription Billing/app/Contract Renewal/Codeunits/SubContrRenewalSubcribers.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/9351
object_type: codeunit
object_id: 8001
name: Sub. Contr. Renewal Subcribers
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: 44
  events: 0
  subscribers: 40
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Codeunit 8001 "Sub. Contr. Renewal Subcribers"

> Codeunit 8001 "Sub. Contr. Renewal Subcribers" in Subscription Billing (Microsoft.SubscriptionBilling). 40 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/Contract%20Renewal/Codeunits/SubContrRenewalSubcribers.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |
| SingleInstance | true |

## Event subscriptions

- BlankUnitPriceForContractRenewal subscribes to Table "Sales Line" OnBeforeUpdateUnitPrice
- ErrorIfQtyToShipIsNotEqualToQuantity subscribes to Table "Sales Line" OnBeforeValidateEvent (Qty. to Ship)
- SalesHeaderOnBeforeInsertRecreatesSalesLines subscribes to Table "Sales Header" OnBeforeSalesLineInsert
- DisallowQuoteToInvoiceForContractRenewalQuote subscribes to Codeunit "Sales-Quote to Invoice" OnBeforeOnRun
- PageSalesQuoteDisallowActionQuoteToInvoiceForContractRenewal subscribes to Page "Sales Quote" OnBeforeActionEvent (MakeInvoice)
- PageSalesQuotesDisallowActionQuoteToInvoiceForContractRenewal subscribes to Page "Sales Quotes" OnBeforeActionEvent (MakeInvoice)
- SalesPostOnBeforeSalesLineDeleteAll subscribes to Codeunit "Sales-Post" OnBeforeDeleteAfterPosting
- PurchPostOnBeforeDeleteAfterPosting subscribes to Codeunit "Purch.-Post" OnBeforeDeleteAfterPosting
- ExcludeLinesFromSalesDocumentTotal subscribes to Codeunit "Document Totals" OnCalculateSalesSubPageTotalsOnAfterSetFilters
- OnCopySalesDocSalesLineOnAfterCalcShouldRunIteration subscribes to Codeunit "Copy Document Mgt." OnCopySalesDocSalesLineOnAfterCalcShouldRunIteration
- PerformRenewalForSalesLine subscribes to Codeunit "Sales-Post" OnPostSalesLineOnAfterTestSalesLine
- OnBeforePostSalesLines subscribes to Codeunit "Sales-Post" OnBeforePostSalesLines
- ExcludeRenewalForSalesLine subscribes to Codeunit "Copy Document Mgt." OnCopySalesDocLineOnAfterCalcCopyThisLine
- OnBeforeInitType subscribes to Table "Sales Line" OnBeforeInitType
- SkipInitializingPostingNo subscribes to Codeunit "Sales-Post" OnBeforeUpdatePostingNo
- SkipInsertingSalesInvoiceHeader subscribes to Codeunit "Sales-Post" OnInsertPostedHeadersOnBeforeInsertInvoiceHeader
- SkipInsertShipmentHeaderNeededOnPostSalesOrderWithContractRenewal subscribes to Codeunit "Sales-Post" OnInsertPostedHeadersOnAfterCalcInsertShipmentHeaderNeeded
- SkipInsertSalesInvoiceLineOnPostSalesLineOnBeforeInsertInvoiceLine subscribes to Codeunit "Sales-Post" OnPostSalesLineOnBeforeInsertInvoiceLine
- SkipInsertSalesInvoiceLineOnBeforeSalesInvLineInsert subscribes to Codeunit "Sales-Post" OnBeforeSalesInvLineInsert
- SkipInsertSalesShipmentLineOnPostSalesLineOnBeforeInsertShipmentLine subscribes to Codeunit "Sales-Post" OnPostSalesLineOnBeforeInsertShipmentLine
- SkipInsertReturnReceiptLineOnPostSalesLineOnBeforeInsertReturnReceiptLine subscribes to Codeunit "Sales-Post" OnPostSalesLineOnBeforeInsertReturnReceiptLine
- SkipInsertSalesCrMemoLineOnPostSalesLineOnBeforeInsertCrMemoLine subscribes to Codeunit "Sales-Post" OnPostSalesLineOnBeforeInsertCrMemoLine
- OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr subscribes to Codeunit "Sales-Post" OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr
- OnBeforePostItemTrackingCheckShipment subscribes to Codeunit "Sales-Post" OnBeforePostItemTrackingCheckShipment
- OnBeforeTestUpdatedSalesLine subscribes to Codeunit "Sales-Post" OnBeforeTestUpdatedSalesLine
- OnBeforePrepareLine subscribes to Codeunit "Sales Post Invoice Events" OnBeforePrepareLine
- OnPostSalesLineOnBeforePostSalesLine subscribes to Codeunit "Sales-Post" OnPostSalesLineOnBeforePostSalesLine
- OnBeforeTestSalesLine subscribes to Codeunit "Sales-Post" OnBeforeTestSalesLine
- OnBeforePostLedgerEntry subscribes to Codeunit "Sales Post Invoice Events" OnBeforePostLedgerEntry
- SkipDocumentAttachmentForContractRenewalLines subscribes to Codeunit "Document Attachment Mgmt" OnBeforeDocAttachForPostedSalesDocs
- OnBeforeValidateVATProdPostingGroup subscribes to Table "Sales Line" OnBeforeValidateVATProdPostingGroup
- SetEverythingInvoicedOnPostSalesLineOnAfterSetEverythingInvoiced subscribes to Codeunit "Sales-Post" OnPostSalesLineOnAfterSetEverythingInvoiced
- OnRoundAmountOnBeforeIncrAmount subscribes to Codeunit "Sales-Post" OnRoundAmountOnBeforeIncrAmount
- OnBeforeRoundAmount subscribes to Codeunit "Sales-Post" OnBeforeRoundAmount
- OnBeforeSumSalesLines2 subscribes to Codeunit "Sales-Post" OnBeforeSumSalesLines2
- AllowChangingResponsibilityCenter subscribes to Table "Sales Header" OnBeforeValidateEvent (Responsibility Center)
- SkipDeletingExistingSalesLines subscribes to Table "Sales Header" OnBeforeRecreateSalesLinesHandler
- ClearAllowChangingResponsibilityCenter subscribes to Table "Sales Header" OnAfterValidateEvent (Responsibility Center)
- ClearContractRenewalCacheOnBeforePostSalesDoc subscribes to Codeunit "Sales-Post" OnBeforePostSalesDoc
- ClearContractRenewalCacheOnAfterPostSalesDoc subscribes to Codeunit "Sales-Post" OnAfterPostSalesDoc

## Procedures

4 local procedures, no public ones.

## Recent changes

- 2026-07-16 [#9351 [master]Subscription Billing: O(N²) contract-renewal detection in Sales-Post subscribers slows posting (~28% of batch CPU)](../../changes/bcapps/9351.md) (main, BC30, performance)

## 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: "Sub. Contr. Renewal Subcribers")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
