---
id: object/codeunit/47025
type: object
title: Codeunit 47025 "SL Populate Hist. Tables"
summary: Codeunit 47025 "SL Populate Hist. Tables" in HybridSL (Microsoft.DataMigration.SL). 35 public procedures, 1 events. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - hybridsl
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: 80a8196745d1e15276dff80d480c4902713a16ff3ad2c710ab3cc5877a37961e
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/HybridSL/app/src/Migration/History/SLPopulateHistTables.Codeunit.al
    title: src/Apps/W1/HybridSL/app/src/Migration/History/SLPopulateHistTables.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/9438
    - change/bcapps/9220
object_type: codeunit
object_id: 47025
name: SL Populate Hist. Tables
namespace: Microsoft.DataMigration.SL
app: HybridSL
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: 38
  events: 1
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 0
  implements: 0
---

# Codeunit 47025 "SL Populate Hist. Tables"

> Codeunit 47025 "SL Populate Hist. Tables" in HybridSL (Microsoft.DataMigration.SL). 35 public procedures, 1 events. Introduced in BC29, still in BC30.

HybridSL · Microsoft.DataMigration.SL · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/HybridSL/app/src/Migration/History/SLPopulateHistTables.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |

## Events published

- `OnBeforeRunSLPopulateHistTables(var IsHandled: Boolean; var OverrideCommitAfterXRecordCount: Integer)` (integration)

## Procedures

- `GetDefaultCommitAfterXRecordCount(): Integer` (internal)
- `PopulateHistoricalTables()` (internal)
- `PopulateGLDetail()` (internal)
- `PopulateHistoricalGLSetup()` (internal)
- `PopulateHistoricalGLTran()` (internal)
- `PopulateHistoricalBatch()` (internal)
- `PopulatePayables()` (internal)
- `PopulateHistoricalAPDoc()` (internal)
- `PopulateHistoricalAPTran()` (internal)
- `PopulateHistoricalAPAdjust()` (internal)
- `PopulateReceivables()` (internal)
- `PopulateHistoricalARDoc()` (internal)
- `PopulateHistoricalARTran()` (internal)
- `PopulateHistoricalARAdjust()` (internal)
- `PopulateHistoricalSOHeader()` (internal)
- `PopulateHistoricalSOLine()` (internal)
- `PopulateHistoricalSOShipHeader()` (internal)
- `PopulateHistoricalSOShipLine()` (internal)
- `PopulateHistoricalSOType()` (internal)
- `PopulateItems()` (internal)
- `PopulateHistoricalINTran()` (internal)
- `PopulateHistoricalLotSerT()` (internal)
- `PopulatePurchaseReceivables()` (internal)
- `PopulateHistoricalPOTran()` (internal)
- `PopulateHistoricalPOReceipt()` (internal)
- `PopulateHistoricalPurOrdDet()` (internal)
- `PopulateHistoricalPurchOrd()` (internal)
- `PopulateHistoricalProjectTransactions()` (internal)
- `PopulateHistoricalPJTran()` (internal)
- `PopulateHistoricalPJTranEx()` (internal)
- `PopulateHistoricalPJProj()` (internal)
- `PopulateHistoricalPJEmploy()` (internal)
- `ReportLastError(TableId: Integer; RecordId: Integer; Step: enum "SL Hist. Migration Step Type"; Reference: Text[150])`
- `ReportLastSuccess(TableId: Integer; RecordId: Integer)` (internal)
- `GetCpnyID(): Text[10]` (internal)

Plus 2 local procedures.

## Triggers

OnRun

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 42800 "SL Hist. Migration Status Mgmt"](../codeunit/42800.md) (9 calls: `OnRun → ResetAll`, `OnRun → SetStatusStarted`, `PopulateGLDetail → UpdateStepStatus`, …)

## Recent changes

- 2026-10-02 [#9438 SL - Add support for migrating historical project transactions](../../changes/bcapps/9438.md) (main, BC30, feature)
- 2026-07-09 [#9220 Backport SL Migration - Snapshot Project Transactions](../../changes/bcapps/9220.md) (main, BC30, feature)

## 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). The call sections above are our own, per object, from the BC29 call graph. 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: "SL Populate Hist. Tables")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
