---
id: object/table/40901
type: object
title: Table 40901 "Hist. Gen. Journal Line"
summary: Table 40901 "Hist. Gen. Journal Line" in DynamicsGPHistoricalData (Microsoft.DataMigration.GP.HistoricalData). 24 fields. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - table
  - dynamicsgphistoricaldata
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: fa52d8deb31944244305e1a97aed31ae7dd0b68d0ac367fcc1bf8e5d4c9bc7ee
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/DynamicsGPHistoricalData/app/src/Tables/HistGenJournalLine.Table.al
    title: src/Apps/W1/DynamicsGPHistoricalData/app/src/Tables/HistGenJournalLine.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 40901
name: Hist. Gen. Journal Line
namespace: Microsoft.DataMigration.GP.HistoricalData
app: DynamicsGPHistoricalData
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: 24
  procedures: 0
  events: 0
  subscribers: 0
relations:
  out: 1
  referenced_by: 0
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 40901 "Hist. Gen. Journal Line"

> Table 40901 "Hist. Gen. Journal Line" in DynamicsGPHistoricalData (Microsoft.DataMigration.GP.HistoricalData). 24 fields. Introduced in BC29, still in BC30.

DynamicsGPHistoricalData · Microsoft.DataMigration.GP.HistoricalData · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/DynamicsGPHistoricalData/app/src/Tables/HistGenJournalLine.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| DataClassification | CustomerContent |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Primary Key | Integer | — | AutoIncrement |
| 2 | Journal Entry No. | Code[35] | Specifies the value of the Journal Entry No. field. <small>via [Page 41001 "Hist. Gen. Journal Lines"](../page/41001.md)</small> | NotBlank |
| 3 | Source Type | enum "Hist. Source Type" | — | enum [Enum 40902 "Hist. Source Type"](../enum/40902.md); NotBlank |
| 4 | Account No. | Code[130] | Specifies the value of the Account No. field. <small>via [Page 41001 "Hist. Gen. Journal Lines"](../page/41001.md)</small> | TableRelation [Table 40900 "Hist. G/L Account"](../table/40900.md) ("Hist. G/L Account"."No."); NotBlank |
| 5 | Sequence No. | Integer | Specifies the value of the Sequence No. field. <small>via [Page 41001 "Hist. Gen. Journal Lines"](../page/41001.md)</small> | NotBlank |
| 6 | Closed | Boolean | Specifies the value of the Closed field. <small>via [Page 41001 "Hist. Gen. Journal Lines"](../page/41001.md)</small> | NotBlank |
| 7 | Audit Code | Text[35] | Specifies the value of the Audit Code field. <small>via [Page 41001 "Hist. Gen. Journal Lines"](../page/41001.md)</small> | NotBlank |
| 8 | Year | Integer | Specifies the value of the Year field. <small>via [Page 41001 "Hist. Gen. Journal Lines"](../page/41001.md)</small> | NotBlank |
| 9 | Date | Date | Specifies the value of the Date field. <small>via [Page 41001 "Hist. Gen. Journal Lines"](../page/41001.md)</small> | NotBlank |
| 10 | Currency Code | Code[10] | Specifies the value of the Currency Code field. <small>via [Page 41001 "Hist. Gen. Journal Lines"](../page/41001.md)</small> | NotBlank |
| 11 | Debit Amount | Decimal | Specifies the value of the Debit Amount field. <small>via [Page 41001 "Hist. Gen. Journal Lines"](../page/41001.md)</small> |  |
| 12 | Orig. Debit Amount | Decimal | Specifies the value of the Originating Debit Amount field. <small>via [Page 41001 "Hist. Gen. Journal Lines"](../page/41001.md)</small> |  |
| 13 | Credit Amount | Decimal | Specifies the value of the Credit Amount field. <small>via [Page 41001 "Hist. Gen. Journal Lines"](../page/41001.md)</small> |  |
| 14 | Orig. Credit Amount | Decimal | Specifies the value of the Originating Credit Amount field. <small>via [Page 41001 "Hist. Gen. Journal Lines"](../page/41001.md)</small> |  |
| 15 | Document Type | Text[35] | Specifies the value of the Document Type field. <small>via [Page 41001 "Hist. Gen. Journal Lines"](../page/41001.md)</small> | NotBlank |
| 16 | Orig. Document No. | Text[35] | Specifies the value of the Originating Document No. field. <small>via [Page 41001 "Hist. Gen. Journal Lines"](../page/41001.md)</small> |  |
| 17 | Orig. Trx. Source No. | Text[35] | Specifies the value of the Orig. Trx. Source No. field. <small>via [Page 41001 "Hist. Gen. Journal Lines"](../page/41001.md)</small> |  |
| 18 | Source No. | Text[35] | Specifies the value of the Source No. field. <small>via [Page 41001 "Hist. Gen. Journal Lines"](../page/41001.md)</small> |  |
| 19 | Source Name | Text[50] | Specifies the value of the Source Name field. <small>via [Page 41001 "Hist. Gen. Journal Lines"](../page/41001.md)</small> |  |
| 20 | Reference Desc. | Text[50] | Specifies the value of the Refererence Desc. field. <small>via [Page 41001 "Hist. Gen. Journal Lines"](../page/41001.md)</small> |  |
| 21 | Description | Text[50] | Specifies the value of the Description field. <small>via [Page 41001 "Hist. Gen. Journal Lines"](../page/41001.md)</small> |  |
| 22 | User | Text[50] | Specifies the value of the User field. <small>via [Page 41001 "Hist. Gen. Journal Lines"](../page/41001.md)</small> |  |
| 23 | Custom1 | Text[50] | Specifies the value of the Custom 1 field. <small>via [Page 41001 "Hist. Gen. Journal Lines"](../page/41001.md)</small> |  |
| 24 | Custom2 | Text[50] | Specifies the value of the Custom 2 field. <small>via [Page 41001 "Hist. Gen. Journal Lines"](../page/41001.md)</small> |  |

## Keys

- PK: Primary Key (clustered)
- Key2: Account No., Year, Closed
- Key3: Orig. Trx. Source No.

## Relations

- Account No.: TableRelation [Table 40900 "Hist. G/L Account"](../table/40900.md)

## Pages and codeunits on this table

- [Page 41001 "Hist. Gen. Journal Lines"](../page/41001.md) (source table)

## 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: "table", object_name: "Hist. Gen. Journal Line")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
