---
id: object/table/6900
type: object
title: Table 6900 "Expense"
summary: Table 6900 "Expense" in ExpenseAgent (Microsoft.ExpenseAgent). 59 fields, 26 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - table
  - expenseagent
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: 762a92b073b6e5cdaae16dd9c1bb651078eff5d302192092631315e16cdbcf87
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/ExpenseAgent/app/src/Expense/Tables/Expense.Table.al
    title: src/Apps/W1/ExpenseAgent/app/src/Expense/Tables/Expense.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-management-create-expenses
    - https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-management-mileage-rate-setup
    - https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-management-overview
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/expense-management-preview
    - topic/business-central/business-functionality/expense-management-preview/set-up-expense-management
    - topic/business-central/business-functionality/expense-management-preview/work-with-expenses-in-business-central
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/11431
    - change/bcapps/11425
    - change/bcapps/10155
    - change/bcapps/10312
    - change/bcapps/10561
    - change/bcapps/9859
object_type: table
object_id: 6900
name: Expense
namespace: Microsoft.ExpenseAgent
app: ExpenseAgent
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: 59
  procedures: 43
  events: 0
  subscribers: 0
relations:
  out: 21
  referenced_by: 2
  pages: 6
  extended_by: 0
  event_subscribers: 3
  calls: 12
  called_by: 0
  implements: 0
---

# Table 6900 "Expense"

> Table 6900 "Expense" in ExpenseAgent (Microsoft.ExpenseAgent). 59 fields, 26 public procedures. Introduced in BC29, still in BC30.

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

Learn documents this table through its pages: [Page 6988 "Expense"](../page/6988.md) (2 Learn pages), [Page 6989 "Expenses"](../page/6989.md) (2).

## Properties

| Property | Value |
|---|---|
| Caption | Expense |
| Access | Internal |
| DataClassification | CustomerContent |
| LookupPageId | Expenses |
| DrillDownPageId | Expenses |

## 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 | No. | Code[20] | Specifies the expense document number. Leave blank to assign a number from the Expense Nos. number series. |  |
| 2 | Expense User No. | Code[20] | Specifies the expense user who incurred the expense. <small>via [Page 6988 "Expense"](../page/6988.md)</small> | TableRelation [Table 6923 "Expense User"](../table/6923.md) ("Expense User"."No.") |
| 3 | Expense Report No. | Code[20] | Specifies the expense report that includes this expense. Set when added to a report. <small>via [Page 6988 "Expense"](../page/6988.md)</small> | TableRelation [Table 6906 "Expense Report Header"](../table/6906.md) ("Expense Report Header"."No."); not editable |
| 4 | Expense Category | Code[20] | Specifies the category assigned to this expense. <small>via [Page 6988 "Expense"](../page/6988.md)</small> | TableRelation [Table 6921 "Expense Category"](../table/6921.md) ("Expense Category" where(Inactive = const(false))) |
| 39 | Expense Ext. Doc. No. | Code[30] | Specifies the receipt number or external reference on the document. <small>via [Page 6988 "Expense"](../page/6988.md)</small> |  |
| 38 | Expense Subcategory | Code[20] | — | TableRelation [Table 6929 "Expense Subcategory"](../table/6929.md) ("Expense Subcategory".Code where("Expense Category Code" = field("Expense Category"), Inactive = const(false))) |
| 40 | Unit of Measure Code | Code[10] | Specifies the unit of measure for mileage (for example, miles or kilometers). Available for Mileage expenses. <small>via [Page 6988 "Expense"](../page/6988.md)</small> | TableRelation [Table 204 "Unit of Measure"](../table/204.md) (Unit of Measure) |
| 5 | Status | Enum "Expense Status" | Specifies the current status of the expense. <small>via [Page 6988 "Expense"](../page/6988.md)</small> | enum [Enum 6907 "Expense Status"](../enum/6907.md); not editable |
| 6 | Description | Text[100] | Specifies a short description of the expense. <small>via [Page 6988 "Expense"](../page/6988.md)</small> |  |
| 7 | Justification | Text[100] | Specifies the justification for the expense per policy. <small>via [Page 6988 "Expense"](../page/6988.md)</small> |  |
| 8 | Expense Date | Date | Specifies the date the expense occurred. <small>via [Page 6988 "Expense"](../page/6988.md)</small> |  |
| 9 | Expense Time | Time | Specifies the time the expense occurred. <small>via [Page 6988 "Expense"](../page/6988.md)</small> |  |
| 10 | Currency Code | Code[10] | Specifies the value of the Currency Code field. <small>via [Page 6988 "Expense"](../page/6988.md)</small> | TableRelation [Table 4 "Currency"](../table/4.md) |
| 11 | Amount | Decimal | Specifies the total amount in the expense currency. <small>via [Page 6988 "Expense"](../page/6988.md)</small> |  |
| 12 | Amount (LCY) | Decimal | Specifies the total amount in the local currency. <small>via [Page 6988 "Expense"](../page/6988.md)</small> | not editable |
| 13 | Merchant Name | Text[100] | Specifies the vendor or merchant for this expense. <small>via [Page 6988 "Expense"](../page/6988.md)</small> |  |
| 14 | Receipt Attached | Boolean | — | not editable |
| 15 | Receipt Entry | Integer | — |  |
| 16 | Extraction Confidence | Integer | — |  |
| 17 | Shortcut Dimension 1 Code | Code[20] | Specifies Shortcut Dimension 1 for this expense. <small>via [Page 6988 "Expense"](../page/6988.md)</small> | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code where("Global Dimension No." = const(1), Blocked = const(false))) |
| 18 | Shortcut Dimension 2 Code | Code[20] | Specifies Shortcut Dimension 2 for this expense. <small>via [Page 6988 "Expense"](../page/6988.md)</small> | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code where("Global Dimension No." = const(2), Blocked = const(false))) |
| 19 | Payment Method Code | Code[10] | Specifies the payment method used for this expense. <small>via [Page 6988 "Expense"](../page/6988.md)</small> | TableRelation [Table 6913 "Expense Payment Method"](../table/6913.md) (Expense Payment Method) |
| 20 | Refundable | Boolean | Specifies whether the expense is reimbursable. <small>via [Page 6988 "Expense"](../page/6988.md)</small> |  |
| 21 | Billable | Boolean | Specifies whether the expense is billable to a customer. <small>via [Page 6988 "Expense"](../page/6988.md)</small> |  |
| 22 | Billable to Customer | Code[20] | Specifies the customer to bill for this expense. Available when Billable is turned on. <small>via [Page 6988 "Expense"](../page/6988.md)</small> | TableRelation [Table 18 "Customer"](../table/18.md) |
| 23 | Expense Location | Code[30] | Specifies the travel location for the expense. Available for Per Diem expenses. <small>via [Page 6988 "Expense"](../page/6988.md)</small> | TableRelation [Table 6925 "Expense Location"](../table/6925.md) (Expense Location) |
| 24 | Starting Date and Time | DateTime | Specifies the start of the travel period for this expense. Editable for Per Diem expenses. <small>via [Page 6988 "Expense"](../page/6988.md)</small> |  |
| 25 | Ending Date and Time | DateTime | Specifies the end of the travel period for this expense. Editable for Per Diem expenses. <small>via [Page 6988 "Expense"](../page/6988.md)</small> |  |
| 26 | Non-Refundable Amount | Decimal | Specifies the reduction to the reimbursable amount. Available when Refundable is on and the category does not require itemization. <small>via [Page 6988 "Expense"](../page/6988.md)</small> |  |
| 27 | Mileage | Decimal | Specifies the distance traveled for mileage reimbursement. Available for Mileage expenses. <small>via [Page 6988 "Expense"](../page/6988.md)</small> |  |
| 28 | Starting Point | Text[50] | Specifies the starting location for mileage. Available for Mileage expenses. <small>via [Page 6988 "Expense"](../page/6988.md)</small> |  |
| 29 | Ending Point | Text[50] | Specifies the ending location for mileage. Available for Mileage expenses. <small>via [Page 6988 "Expense"](../page/6988.md)</small> |  |
| 53 | Round Trip | Boolean | Specifies whether the mileage expense is a round trip. When enabled, the distance is doubled for reimbursement calculation. |  |
| 63 | Vehicle Type | Code[20] | Specifies the vehicle type used for this mileage expense. The mileage rate matching this vehicle type is applied, or the generic rate when no vehicle-specific rate exists. | TableRelation [Table 7108 "Expense Vehicle Type"](../table/7108.md) (Expense Vehicle Type) |
| 30 | Reimbursable Amount | Decimal | Specifies the amount eligible for reimbursement based on policy. <small>via [Page 6988 "Expense"](../page/6988.md)</small> | not editable |
| 31 | Reimbursable Amount (LCY) | Decimal | Specifies the reimbursable amount in the local currency. <small>via [Page 6988 "Expense"](../page/6988.md)</small> | not editable |
| 32 | No. Series | Code[20] | — |  |
| 33 | Credit Card Feed No. | Integer | Specifies the reference to the imported credit card transaction. Set by the system when matched to a card feed. <small>via [Page 6988 "Expense"](../page/6988.md)</small> |  |
| 34 | Dimension Set ID | Integer | — | TableRelation [Table 480 "Dimension Set Entry"](../table/480.md) (Dimension Set Entry); not editable |
| 35 | VAT Bus. Posting Group | Code[20] | — | TableRelation [Table 323 "VAT Business Posting Group"](../table/323.md) (VAT Business Posting Group) |
| 36 | VAT Prod. Posting Group | Code[20] | — | TableRelation [Table 324 "VAT Product Posting Group"](../table/324.md) (VAT Product Posting Group) |
| 37 | Currency Factor | Decimal | — |  |
| 41 | Applied Rule Id | Guid | — |  |
| 42 | Created By | Code[50] | — | obsolete Pending 29.0; TableRelation User."User Name"; DataClassification EndUserIdentifiableInformation |
| 43 | Reimbursement Type | Enum "Expense Reimbursement Type" | Specifies the type of reimbursement for this expense. <small>via [Page 6988 "Expense"](../page/6988.md)</small> | enum [Enum 6912 "Expense Reimbursement Type"](../enum/6912.md); not editable |
| 44 | Rule Violations | Boolean | Specifies whether any rule violations exist for this expense. <small>via [Page 6988 "Expense"](../page/6988.md)</small> | FlowField: exist("Expense Rule Violation" where("Expense No." = field("No."))); not editable |
| 45 | Expense Detail Required | Enum "Expense Detail Needed" | — | enum [Enum 6905 "Expense Detail Needed"](../enum/6905.md) |
| 46 | Job No. | Code[20] | Specifies the job to assign this expense to. <small>via [Page 6988 "Expense"](../page/6988.md)</small> | TableRelation Job."No." where(Status = filter(<> Completed)) |
| 47 | Job Task No. | Code[20] | Specifies the job task to assign this expense to. <small>via [Page 6988 "Expense"](../page/6988.md)</small> | TableRelation [Table 1001 "Job Task"](../table/1001.md) ("Job Task"."Job Task No." where("Job No." = field("Job No."))) |
| 48 | Refundable Amount | Decimal | Specifies the amount eligible for refund based on policy. <small>via [Page 6988 "Expense"](../page/6988.md)</small> | not editable |
| 49 | Refundable Amount (LCY) | Decimal | Specifies the refundable amount in the local currency. <small>via [Page 6988 "Expense"](../page/6988.md)</small> | not editable |
| 50 | Posted Expense Report No. | Code[20] | — | TableRelation [Table 6915 "Posted Expense Report Header"](../table/6915.md) ("Posted Expense Report Header"."No."); not editable |
| 51 | Non-Refundable Amount (LCY) | Decimal | — | not editable |
| 52 | Created Date-Time | DateTime | Specifies the date and time the expense was created. <small>via [Page 6988 "Expense"](../page/6988.md)</small> | DataClassification SystemMetadata |
| 54 | Created By Exp. User Id | Guid | Created By Expense User Id <small>caption</small> | not editable; DataClassification EndUserIdentifiableInformation |
| 55 | Modified By Exp. User Id | Guid | Modified By Expense User Id <small>caption</small> | not editable; DataClassification EndUserIdentifiableInformation |
| 60 | Merchant Registration No. | Text[50] | Specifies the vendor or merchant registration number for this expense. <small>via [Page 6988 "Expense"](../page/6988.md)</small> |  |
| 61 | Merchant VAT Registration No. | Text[20] | Specifies the vendor or merchant VAT registration number for this expense. <small>via [Page 6988 "Expense"](../page/6988.md)</small> |  |
| 62 | Expense Vendor No. | Code[20] | Specifies the expense vendor record created for accountant review and matching to a Business Central vendor. | TableRelation [Table 6937 "Expense Vendor"](../table/6937.md) (Expense Vendor); not editable |

## Keys

- PK: No. (clustered)

## Trigger event subscribers

- OnAfterDeleteEvent: [Codeunit 6989 "Expense Attachment Mgt."](../codeunit/6989.md) DeleteAttachedDocumentsOnAfterDeleteExpense
- OnAfterInsertEvent: [Codeunit 6908 "Expense Event Subscriber"](../codeunit/6908.md) OnAfterInsertExpenseEvent, [Codeunit 6931 "Expense Vendor Matching"](../codeunit/6931.md) OnAfterExpenseInsert

## Procedures

- `AssistEdit(): Boolean`
- `ValidateShortcutDimCode(FieldNumber: Integer; var ShortcutDimCode: Code[20])`
- `PerformManualRelease()`
- `ShowDocDim()`
- `PerformManualRelease(var Expense: Record Expense)`
- `PerformManualReopen(var Expense: Record Expense)`
- `FilterByUserId(FilterUserId: Code[50])` (obsolete 29.0: This function is no longer used.)
- `FilterByCurrentUser()` (internal)
- `SetHideValidationDialog(NewHideValidationDialog: Boolean)`
- `GetHideValidationDialog(): Boolean`
- `GetStatusStyleText(): Text`
- `TestStatusOpen()`
- `GetRuleStyleText(): Text`
- `ApplyRule(ApplyAndValidateRuleOnExpense: Boolean; ValidateRuleOnly: Boolean)`
- `ApplyRule()`
- `SetSkipRuleApplication(NewSkipRuleApplication: Boolean)`
- `CreateDimFromDefaultDim(FieldNo: Integer)`: Initializes the dimensions for the Expense.
- `CreateDim(DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])`: Creates dimensions from default dimension sources for the expense.
- `CheckExpensePrerequisitesBeforeUsing()`
- `UpdateAmount()`
- `ShowItemization()`
- `ShowParticipants()`
- `ShowPerDiem()`
- `SetCalledFromExpenseAgent(NewCalledFromExpenseAgent: Boolean)` (internal)
- `GetVATAmounts(var VATAmount: Decimal; var VATAmountLCY: Decimal): Boolean`
- `UpdateVATSpecification(ExpenseNo: Code[20])` (internal)

Plus 17 local procedures.

## Triggers

OnInsert, OnModify, OnDelete

## Relations

- drill-down page [Page 6989 "Expenses"](../page/6989.md)
- lookup page [Page 6989 "Expenses"](../page/6989.md)
- Job Task No.: TableRelation [Table 1001 "Job Task"](../table/1001.md)
- Billable to Customer: TableRelation [Table 18 "Customer"](../table/18.md)
- Unit of Measure Code: TableRelation [Table 204 "Unit of Measure"](../table/204.md)
- VAT Bus. Posting Group: TableRelation [Table 323 "VAT Business Posting Group"](../table/323.md)
- VAT Prod. Posting Group: TableRelation [Table 324 "VAT Product Posting Group"](../table/324.md)
- Shortcut Dimension 1 Code: TableRelation [Table 349 "Dimension Value"](../table/349.md)
- Shortcut Dimension 2 Code: TableRelation [Table 349 "Dimension Value"](../table/349.md)
- Currency Code: TableRelation [Table 4 "Currency"](../table/4.md)
- Dimension Set ID: TableRelation [Table 480 "Dimension Set Entry"](../table/480.md)
- Rule Violations: CalcFormula [Table 6903 "Expense Rule Violation"](../table/6903.md)
- Expense Report No.: TableRelation [Table 6906 "Expense Report Header"](../table/6906.md)
- Payment Method Code: TableRelation [Table 6913 "Expense Payment Method"](../table/6913.md)
- Posted Expense Report No.: TableRelation [Table 6915 "Posted Expense Report Header"](../table/6915.md)
- Expense Category: TableRelation [Table 6921 "Expense Category"](../table/6921.md)
- Expense User No.: TableRelation [Table 6923 "Expense User"](../table/6923.md)
- Expense Location: TableRelation [Table 6925 "Expense Location"](../table/6925.md)
- Expense Subcategory: TableRelation [Table 6929 "Expense Subcategory"](../table/6929.md)
- Expense Vendor No.: TableRelation [Table 6937 "Expense Vendor"](../table/6937.md)
- Vehicle Type: TableRelation [Table 7108 "Expense Vehicle Type"](../table/7108.md)

## Referenced by

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

- [Table 6968 "Expense Agent Consumption"](../table/6968.md): Consumption Source System ID
- [Table 6969 "Expense Agent Env. Consumption"](../table/6969.md): Consumption Source System ID

## Pages and codeunits on this table

- [Page 6904 "Expense Statistics"](../page/6904.md) (source table)
- [Page 6927 "Expenses API"](../page/6927.md) (source table)
- [Page 6938 "Expense Factbox"](../page/6938.md) (source table)
- [Page 6988 "Expense"](../page/6988.md) (source table)
- [Page 6989 "Expenses"](../page/6989.md) (source table)
- [Page 7090 "Accountant Expenses"](../page/7090.md) (source table)
- [Codeunit 6980 "Release Expense Document"](../codeunit/6980.md) (codeunit runs on it)
- [Codeunit 6981 "Expense Manual Reopen"](../codeunit/6981.md) (codeunit runs on it)
- [Codeunit 6982 "Expense Manual Release"](../codeunit/6982.md) (codeunit runs on it)

## 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 408 "DimensionManagement"](../codeunit/408.md) (5 calls: `CreateDim → GetRecDefaultDimID`, `CreateDim → UpdateGlobalDimFromDimSetID`, `InitDefaultDimensionSources → AddDimSource`, …)
- [Codeunit 1281 "Update Currency Exchange Rates"](../codeunit/1281.md) (2 calls: `UpdateCurrencyFactor → ExchangeRatesForCurrencyExist`, `UpdateCurrencyFactor → ShowMissingExchangeRatesNotification`)
- [Codeunit 6993 "Expense Agent API Validation"](../codeunit/6993.md) (2 calls: `SetExpenseUserOnCreate → IsCurrentUserExpenseAgent`, `UpdateExpenseUserOnModify → IsCurrentUserExpenseAgent`)
- [Page 456 "No. Series"](../page/456.md) (2 calls: `AssistEdit → (object)`, `OnInsert → (object)`)
- [Codeunit 1380 "Batch Processing Mgt."](../codeunit/1380.md) (1 call: `PerformManualReopen → BatchProcess`)
- [Codeunit 27 "Confirm Management"](../codeunit/27.md) (1 call: `ConfirmAndDeleteAssociatedRecords → GetResponseOrDefault`)
- [Codeunit 6902 "Expense Rule Validation"](../codeunit/6902.md) (1 call: `ApplyRule → ValidateExpenseAgainstRule`)
- [Codeunit 6954 "EA KPI Track"](../codeunit/6954.md) (1 call: `OnInsert → UpdateExpenseEntry`)
- [Codeunit 6980 "Release Expense Document"](../codeunit/6980.md) (1 call: `PerformManualRelease → PerformManualRelease`)
- [Page 6974 "Per Diem Expenses"](../page/6974.md) (1 call: `ShowPerDiem → (object)`)
- [Page 6975 "Expense Itemizations"](../page/6975.md) (1 call: `ShowItemization → (object)`)
- [Page 6992 "Expense Participants"](../page/6992.md) (1 call: `ShowParticipants → (object)`)

## Recent changes

- 2026-09-15 [#11431 [Master] - [Expense Management] Move missing Employee Posting Group validation to rule violation](../../changes/bcapps/11431.md) (main, BC30, fix)
- 2026-09-15 [#11425 Bug 650137: [29.x] Expense Locations and Per-diem rules in configuration - Backport](../../changes/bcapps/11425.md) (releases/29.x, BC29, feature)
- 2026-09-10 [#10155 Slice 641293: [Expense Agent] Expense Locations and Per-diem rules in configurationAdded more locations](../../changes/bcapps/10155.md) (main, BC30, feature)
- 2026-08-31 [#10312 Update expense VAT specification source](../../changes/bcapps/10312.md) (main, BC30, feature)
- 2026-08-27 [#10561 Mileage Rate Setup](../../changes/bcapps/10561.md) (main, BC30, feature)
- 2026-08-04 [#9859 [Master] - Move Expense Agent (Preview) app into BCApps](../../changes/bcapps/9859.md) (main, BC30, feature, added)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

## Deprecations

- field Created By: Pending 29.0, "This field is no longer required."
- procedure FilterByUserId: Pending 29.0 (#if not CLEAN29), "This function is no longer used."

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