---
id: object/codeunit/5861
type: object
title: Codeunit 5861 "Invt. Ledger Source Mgt."
summary: Codeunit 5861 "Invt. Ledger Source Mgt." in Base Application (Microsoft.Inventory.Ledger). 2 public procedures, 4 events. Introduced in BC26, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: "26"
  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: 4b7acb569fdadd33fcbddffe434da5315e89af3eb605748696ab5a3f68be1bbd
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Inventory/Ledger/InvtLedgerSourceMgt.Codeunit.al
    title: src/Layers/W1/BaseApp/Inventory/Ledger/InvtLedgerSourceMgt.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: 5861
name: Invt. Ledger Source Mgt.
namespace: Microsoft.Inventory.Ledger
app: Base Application
extends: null
first_version: "26"
last_version: "30"
present_in:
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 6
  events: 4
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 8
  calls: 0
  called_by: 0
  implements: 0
---

# Codeunit 5861 "Invt. Ledger Source Mgt."

> Codeunit 5861 "Invt. Ledger Source Mgt." in Base Application (Microsoft.Inventory.Ledger). 2 public procedures, 4 events. Introduced in BC26, still in BC30.

Base Application · Microsoft.Inventory.Ledger · BC26-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Inventory/Ledger/InvtLedgerSourceMgt.Codeunit.al) · facts from BC29

## Events published

- `OnBeforeGetSourceDescription(SourceType: Enum "Analysis Source Type"; SourceNo: Code[20]; var SourceDescription: Text; var IsHandled: Boolean)` (integration)
- `OnGetSourceDescription(SourceType: Enum "Analysis Source Type"; SourceNo: Code[20]; var SourceDescription: Text)` (integration)
  - subscribers: [Codeunit 5858 "Invt. Ledger Invt. Source"](../codeunit/5858.md) OnGetSourceDescription, [Codeunit 5859 "Invt. Ledger Purchase Source"](../codeunit/5859.md) OnGetSourceDescription, [Codeunit 5860 "Invt. Ledger Sales Source"](../codeunit/5860.md) OnGetSourceDescription
- `OnBeforeGetSourceOrderNo(DocType: Enum "Item Ledger Document Type"; DocNo: Code[20]; var SourceOrderNo: Code[20]; var IsHandled: Boolean)` (integration)
- `OnGetSourceOrderNo(DocType: Enum "Item Ledger Document Type"; DocNo: Code[20]; var SourceOrderNo: Code[20])` (integration)
  - subscribers: [Codeunit 5858 "Invt. Ledger Invt. Source"](../codeunit/5858.md) OnGetSourceOrderNo, [Codeunit 5859 "Invt. Ledger Purchase Source"](../codeunit/5859.md) OnGetSourceOrderNo, [Codeunit 5860 "Invt. Ledger Sales Source"](../codeunit/5860.md) OnGetSourceOrderNo, [Codeunit 5914 "Invt. Ledger Service Source"](../codeunit/5914.md) OnGetSourceOrderNo, [Codeunit 907 "Invt. Ledger Assembly Source"](../codeunit/907.md) OnGetSourceOrderNo

## Procedures

- `GetSourceDescription(SourceType: Enum "Analysis Source Type"; SourceNo: Code[20]): Text`
- `GetSourceOrderNo(DocType: Enum "Item Ledger Document Type"; DocNo: Code[20]): Code[20]`

## Across versions

- Present in: BC26-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: "Invt. Ledger Source Mgt.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
