---
id: object/codeunit/8003
type: object
title: Codeunit 8003 "Sub. Contract Renewal Mgt."
summary: Codeunit 8003 "Sub. Contract Renewal Mgt." in Subscription Billing (Microsoft.SubscriptionBilling). 12 public procedures, 2 events, 1 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: 767eec639498bb75321d68ffd7aed07d81c27939c29251e1395eca1aa04d5013
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Subscription%20Billing/app/Contract%20Renewal/Codeunits/SubContractRenewalMgt.Codeunit.al
    title: src/Apps/W1/Subscription Billing/app/Contract Renewal/Codeunits/SubContractRenewalMgt.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: 8003
name: Sub. Contract Renewal Mgt.
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: 23
  events: 2
  subscribers: 1
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Codeunit 8003 "Sub. Contract Renewal Mgt."

> Codeunit 8003 "Sub. Contract Renewal Mgt." in Subscription Billing (Microsoft.SubscriptionBilling). 12 public procedures, 2 events, 1 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/SubContractRenewalMgt.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| TableNo | Cust. Sub. Contract Line |

## Events published

- `OnBeforeRunCreateContractRenewalFromContract(CustomerSubscriptionContractSource: Record "Customer Subscription Contract"; var SubContractRenewalLines: Record "Sub. Contract Renewal Line"; var IsHandled: Boolean)` (integration)
- `OnAfterFilterRenewableSubContrLines(CustomerContractNo: Code[20]; var CustSubContractLine: Record "Cust. Sub. Contract Line")` (integration)

## Event subscriptions

- InitializeNotificationLinesNotShown subscribes to Page "My Notifications" OnInitializingNotificationWithDefaultState

## Procedures

- `StartContractRenewalFromContract(CustomerContract: Record "Customer Subscription Contract")` (internal)
- `IsContractRenewal(var SalesLine: Record "Sales Line"): Boolean` (internal)
- `IsContractRenewal(var RecRef: RecordRef): Boolean` (internal)
- `IsContractRenewal(var SalesHeader: Record "Sales Header"): Boolean` (internal)
- `FilterSalesLinesWithTypeServiceObject(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header")` (internal)
- `ShowRenewalSalesDocumentForContract(SalesDocumentType: Enum "Sales Document Type"; ContractNo: Code[20])` (internal)
- `FilterServCommVendFromServCommCust(ServiceCommitmentCust: Record "Subscription Line"; var ServiceCommitmentVend: Record "Subscription Line")` (internal)
- `SetAddVendorServices(NewAddVendorServices: Boolean)` (internal)
- `NotifyIfLinesNotShown(var CustomerContractLine: Record "Cust. Sub. Contract Line")` (internal)
- `HideNotificationActiveForLinesNotShownForCurrentUser(Notify: Notification)` (internal)
- `GetContractRenewalIdentifierLabel(): Code[20]` (internal)
- `ExistsInSalesOrderOrSalesQuote(ServicePartner: Enum "Service Partner"; ContractNo: Code[20]; ContractLineNo: Integer): Boolean` (internal)

Plus 8 local procedures.

## Triggers

OnRun

## Relations

- runs on [Table 8062 "Cust. Sub. Contract Line"](../table/8062.md)

## 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. Contract Renewal Mgt.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
