---
id: object/table/1104
type: object
title: Table 1104 "Cost Entry"
summary: Table 1104 "Cost Entry" in Base Application (Microsoft.CostAccounting.Ledger). 24 fields, 2 public procedures. Present since at least BC23, still in BC30, changed in BC24, BC27.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "27"
  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: e837489b8d02350ad5f718fdc44bb2adc7be0810bdba93071b95f18bb4d2c2f9
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/CostAccounting/Ledger/CostEntry.Table.al
    title: src/Layers/W1/BaseApp/CostAccounting/Ledger/CostEntry.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/finance-about-cost-accounting
    - https://learn.microsoft.com/dynamics365/business-central/finance-transfer-and-post-cost-entries
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/finance/accounting-for-costs
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 1104
name: Cost Entry
namespace: Microsoft.CostAccounting.Ledger
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "27"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 24
  procedures: 2
  events: 0
  subscribers: 0
relations:
  out: 11
  referenced_by: 15
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 0
  implements: 0
---

# Table 1104 "Cost Entry"

> Table 1104 "Cost Entry" in Base Application (Microsoft.CostAccounting.Ledger). 24 fields, 2 public procedures. Present since at least BC23, still in BC30, changed in BC24, BC27.

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

Learn documents this table through its pages: [Page 1103 "Cost Entries"](../page/1103.md) (2 Learn pages).

## Properties

| Property | Value |
|---|---|
| Caption | Cost Entry |
| 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 | Entry No. | Integer | Specifies the number of the entry, as assigned from the specified number series when the entry was created. <small>via [Page 1103 "Cost Entries"](../page/1103.md)</small> |  |
| 4 | Cost Type No. | Code[20] | Specifies the subtype of the cost center. This is an information field and is not used for any other purposes. Choose the field to select the cost subtype. <small>via [Page 1103 "Cost Entries"](../page/1103.md)</small> | TableRelation [Table 1103 "Cost Type"](../table/1103.md) (Cost Type) |
| 5 | Posting Date | Date | Specifies the entry's posting date. <small>via [Page 1103 "Cost Entries"](../page/1103.md)</small> |  |
| 7 | Document No. | Code[20] | Specifies the number of the related document. <small>via [Page 1103 "Cost Entries"](../page/1103.md)</small> |  |
| 8 | Description | Text[100] | Specifies the description of the cost entry. <small>via [Page 1103 "Cost Entries"](../page/1103.md)</small> |  |
| 16 | Amount | Decimal | Specifies the amount of the cost entry. <small>via [Page 1103 "Cost Entries"](../page/1103.md)</small> |  |
| 17 | Debit Amount | Decimal | Specifies the total of the ledger entries that represent debits. <small>via [Page 1103 "Cost Entries"](../page/1103.md)</small> |  |
| 18 | Credit Amount | Decimal | Specifies the total of the ledger entries that represent credits. <small>via [Page 1103 "Cost Entries"](../page/1103.md)</small> |  |
| 20 | Cost Center Code | Code[20] | Specifies the cost center code. The code serves as a default value for cost posting that is captured later in the cost journal. <small>via [Page 1103 "Cost Entries"](../page/1103.md)</small> | TableRelation [Table 1112 "Cost Center"](../table/1112.md) (Cost Center) |
| 21 | Cost Object Code | Code[20] | Specifies the cost object code. The code serves as a default value for cost posting that is captured later in the cost journal. <small>via [Page 1103 "Cost Entries"](../page/1103.md)</small> | TableRelation [Table 1113 "Cost Object"](../table/1113.md) (Cost Object) |
| 27 | Reason Code | Code[10] | Specifies the reason code, a supplementary source code that enables you to trace the entry. <small>via [Page 1103 "Cost Entries"](../page/1103.md)</small> | TableRelation [Table 231 "Reason Code"](../table/231.md) (Reason Code) |
| 28 | G/L Account | Code[20] | Specifies the G/L account that the cost entry applies to. <small>via [Page 1103 "Cost Entries"](../page/1103.md)</small> | TableRelation [Table 15 "G/L Account"](../table/15.md) (G/L Account) |
| 29 | G/L Entry No. | Integer | Specifies the entry number of the corresponding general ledger entry that is associated with this cost entry. For combined entries, the entry number of the last general ledger entry is saved in the field. This is the entry with the highest entry number. <small>via [Page 1103 "Cost Entries"](../page/1103.md)</small> | TableRelation [Table 17 "G/L Entry"](../table/17.md) (G/L Entry); not editable |
| 30 | Source Code | Code[10] | Specifies the source code that specifies where the entry was created. <small>via [Page 1103 "Cost Entries"](../page/1103.md)</small> | TableRelation [Table 230 "Source Code"](../table/230.md) (Source Code) |
| 31 | System-Created Entry | Boolean | Specifies the entry created by the system for the cost entry. <small>via [Page 1103 "Cost Entries"](../page/1103.md)</small> | not editable |
| 32 | Allocated | Boolean | Specifies whether the cost entry has been allocated. <small>via [Page 1103 "Cost Entries"](../page/1103.md)</small> |  |
| 33 | Allocated with Journal No. | Integer | Specifies which cost journal was used to allocate the cost. <small>via [Page 1103 "Cost Entries"](../page/1103.md)</small> |  |
| 40 | User ID | Code[50] | Specifies the ID of the user who posted the entry, to be used, for example, in the change log. <small>via [Page 1103 "Cost Entries"](../page/1103.md)</small> | TableRelation User."User Name"; not editable; DataClassification EndUserIdentifiableInformation |
| 41 | Batch Name | Code[10] | Specifies the journal batch name used in the posting. The name is copied from the Journal Template Name field on the cost journal line. <small>via [Page 1103 "Cost Entries"](../page/1103.md)</small> | TableRelation [Table 232 "Gen. Journal Batch"](../table/232.md) (Gen. Journal Batch) |
| 50 | Allocation Description | Text[80] | Specifies the description that explains the allocation level and shares. <small>via [Page 1103 "Cost Entries"](../page/1103.md)</small> |  |
| 51 | Allocation ID | Code[10] | Specifies the ID of the allocation key that the cost budget entry comes from. <small>via [Page 1103 "Cost Entries"](../page/1103.md)</small> | TableRelation [Table 1106 "Cost Allocation Source"](../table/1106.md) (Cost Allocation Source) |
| 68 | Additional-Currency Amount | Decimal | Specifies the amount of this entry, in the additional reporting currency. <small>via [Page 1103 "Cost Entries"](../page/1103.md)</small> |  |
| 69 | Add.-Currency Debit Amount | Decimal | — |  |
| 70 | Add.-Currency Credit Amount | Decimal | — |  |

## Keys

- Key1: Entry No. (clustered)
- Key2: Cost Type No., Posting Date
- Key3: Cost Type No., Cost Center Code, Cost Object Code, Allocated, Posting Date
- Key4: Cost Center Code, Cost Type No., Allocated, Posting Date
- Key5: Cost Object Code, Cost Type No., Allocated, Posting Date
- Key6: Allocation ID, Posting Date
- Key7: Document No., Posting Date
- Key8: Allocated with Journal No.
- Key9: Cost Type No., Posting Date, Cost Center Code, Cost Object Code

## Procedures

- `GetCurrencyCode(): Code[10]`
- `GetLastEntryNo(): Integer`

## Relations

- drill-down page [Page 1103 "Cost Entries"](../page/1103.md)
- lookup page [Page 1103 "Cost Entries"](../page/1103.md)
- Cost Type No.: TableRelation [Table 1103 "Cost Type"](../table/1103.md)
- Allocation ID: TableRelation [Table 1106 "Cost Allocation Source"](../table/1106.md)
- Cost Center Code: TableRelation [Table 1112 "Cost Center"](../table/1112.md)
- Cost Object Code: TableRelation [Table 1113 "Cost Object"](../table/1113.md)
- G/L Account: TableRelation [Table 15 "G/L Account"](../table/15.md)
- G/L Entry No.: TableRelation [Table 17 "G/L Entry"](../table/17.md)
- Source Code: TableRelation [Table 230 "Source Code"](../table/230.md)
- Reason Code: TableRelation [Table 231 "Reason Code"](../table/231.md)
- Batch Name: TableRelation [Table 232 "Gen. Journal Batch"](../table/232.md)

## Referenced by

15 fields in 4 objects relate to this table (TableRelation or CalcFormula).

- [Table 1103 "Cost Type"](../table/1103.md): Add. Currency Balance at Date, Add. Currency Net Change, Balance, Balance at Date, Balance to Allocate, Credit Amount, Debit Amount, Net Change
- [Table 1112 "Cost Center"](../table/1112.md): Balance at Date, Balance to Allocate, Net Change
- [Table 1105 "Cost Register"](../table/1105.md): From Cost Entry No., To Cost Entry No.
- [Table 1113 "Cost Object"](../table/1113.md): Balance at Date, Net Change

## Pages and codeunits on this table

- [Page 1103 "Cost Entries"](../page/1103.md) (source table)

## 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 703 "Find Record Management"](../codeunit/703.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24, BC27

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: "table", object_name: "Cost Entry")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
