Table 6900 "Expense"
ExpenseAgent · Microsoft.ExpenseAgent
Across versions
- BC23-28not present
- BC29present
- BC30changed
Neighbourhood 53 connected objects and pages
ExpenseAgent · Microsoft.ExpenseAgent · BC29-30 · source at 4e6a307c · facts from BC29
Learn documents this table through its pages: Page 6988 “Expense” (2 Learn pages), Page 6989 “Expenses” (2).
Properties
| Property | Value |
|---|---|
| Caption | Expense |
| 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. | TableRelation Table 6923 “Expense User” (“Expense User”.“No.”) |
| 3 | Expense Report No. | Code[20] | Specifies the expense report that includes this expense. Set when added to a report. | TableRelation Table 6906 “Expense Report Header” (“Expense Report Header”.“No.”); not editable |
| 4 | Expense Category | Code[20] | Specifies the category assigned to this expense. | TableRelation Table 6921 “Expense Category” (“Expense Category” where(Inactive = const(false))) |
| 39 | Expense Ext. Doc. No. | Code[30] | Specifies the receipt number or external reference on the document. | |
| 38 | Expense Subcategory | Code[20] | — | TableRelation Table 6929 “Expense Subcategory” (“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. | TableRelation Table 204 “Unit of Measure” (Unit of Measure) |
| 5 | Status | Enum “Expense Status” | Specifies the current status of the expense. | enum Enum 6907 “Expense Status”; not editable |
| 6 | Description | Text[100] | Specifies a short description of the expense. | |
| 7 | Justification | Text[100] | Specifies the justification for the expense per policy. | |
| 8 | Expense Date | Date | Specifies the date the expense occurred. | |
| 9 | Expense Time | Time | Specifies the time the expense occurred. | |
| 10 | Currency Code | Code[10] | Specifies the currency code of the amount. | TableRelation Table 4 “Currency” |
| 11 | Amount | Decimal | Specifies the total amount in the expense currency. | |
| 12 | Amount (LCY) | Decimal | Specifies the total amount in the local currency. | not editable |
| 13 | Merchant Name | Text[100] | Specifies the name of the merchant where the expense occurred. | |
| 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. | TableRelation Table 349 “Dimension Value” (“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. | TableRelation Table 349 “Dimension Value” (“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. | TableRelation Table 6913 “Expense Payment Method” (Expense Payment Method) |
| 20 | Refundable | Boolean | Specifies whether the expense is reimbursable. | |
| 21 | Billable | Boolean | Specifies whether the expense is billable to a customer. | |
| 22 | Billable to Customer | Code[20] | Specifies the customer to bill for this expense. Available when Billable is turned on. | TableRelation Table 18 “Customer” |
| 23 | Expense Location | Code[30] | Specifies the travel location for the expense. Available for Per Diem expenses. | TableRelation Table 6925 “Expense Location” (Expense Location) |
| 24 | Starting Date and Time | DateTime | Specifies the start of the travel period for this expense. Editable for Per Diem expenses. | |
| 25 | Ending Date and Time | DateTime | Specifies the end of the travel period for this expense. Editable for Per Diem expenses. | |
| 26 | Non-Refundable Amount | Decimal | Specifies the reduction to the reimbursable amount. Available when Refundable is on and the category does not require itemization. | |
| 27 | Mileage | Decimal | Specifies the distance traveled for mileage reimbursement. Available for Mileage expenses. | |
| 28 | Starting Point | Text[2048] | Specifies the starting location for mileage. Available for Mileage expenses. | |
| 29 | Ending Point | Text[2048] | Specifies the ending location for mileage. Available for Mileage expenses. | |
| 53 | Round Trip | Boolean | Specifies whether the mileage expense is a round trip. When enabled, the distance is doubled for reimbursement calculation. | |
| 30 | Reimbursable Amount | Decimal | Specifies the amount eligible for reimbursement based on policy. | not editable |
| 31 | Reimbursable Amount (LCY) | Decimal | Specifies the reimbursable amount in the local currency. | 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. | |
| 107 | Corporate Card Id | Code[50] | Specifies the corporate card used to pay for this expense, independently of whether a feed transaction has arrived. | TableRelation Table 7421 “EA Corp Card” (“EA Corp Card”.“Card Id”); DataClassification AccountData |
| 108 | Card Expense Awaiting Report | Boolean | Specifies whether the expense was created from a corporate card transaction and is open or released and not yet on a report. | FlowField: exist(Expense where(“No.” = field(“No.”), Source = const(CorporateCard), “Credit Card Feed No.” = filter(<> 0), Status = filter(Open | Released), “Expense Report No.” = const(‘’))); not editable |
| 34 | Dimension Set ID | Integer | — | TableRelation Table 480 “Dimension Set Entry” (Dimension Set Entry); not editable |
| 35 | VAT Bus. Posting Group | Code[20] | — | TableRelation Table 323 “VAT Business Posting Group” (VAT Business Posting Group) |
| 36 | VAT Prod. Posting Group | Code[20] | — | TableRelation Table 324 “VAT Product Posting Group” (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. | enum Enum 6912 “Expense Reimbursement Type”; not editable |
| 44 | Rule Violations | Boolean | Specifies whether any rule violations exist for this expense. | 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” |
| 46 | Job No. | Code[20] | Specifies the job to assign this expense to. | TableRelation Job.“No.” where(Status = filter(<> Completed)) |
| 47 | Job Task No. | Code[20] | Specifies the job task to assign this expense to. | TableRelation Table 1001 “Job Task” (“Job Task”.“Job Task No.” where(“Job No.” = field(“Job No.”))) |
| 48 | Refundable Amount | Decimal | Specifies the amount eligible for refund based on policy. | not editable |
| 49 | Refundable Amount (LCY) | Decimal | Specifies the refundable amount in the local currency. | not editable |
| 50 | Posted Expense Report No. | Code[20] | — | TableRelation Table 6915 “Posted Expense Report Header” (“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. | DataClassification SystemMetadata |
| 54 | Created By Exp. User Id | Guid | Created By Expense User Id caption | not editable; DataClassification EndUserIdentifiableInformation |
| 55 | Modified By Exp. User Id | Guid | Modified By Expense User Id caption | not editable; DataClassification EndUserIdentifiableInformation |
| 60 | Merchant Registration No. | Text[50] | Specifies the vendor or merchant registration number for this expense. | |
| 61 | Merchant VAT Registration No. | Text[20] | Specifies the vendor or merchant VAT registration number for this expense. | |
| 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” (Expense Vendor); not editable |
| 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” (Expense Vehicle Type) |
| 64 | Source | Enum “Expense Source” | Specifies how the expense was originally created. | enum Enum 6925 “Expense Source”; not editable; DataClassification SystemMetadata |
| 200 | No Receipt Type | Enum “Expense No Receipt Type” | Specifies whether the original receipt was lost and replaced by a no receipt declaration. | enum Enum 6927 “Expense No Receipt Type”; not editable |
| 201 | No Receipt Reason | Text[250] | Specifies why the original receipt is unavailable. | |
| 202 | No Receipt Declaration ID | Guid | — | not editable; DataClassification SystemMetadata |
| 204 | Compliance Status | Enum “Expense Compliance Status” | Specifies the compliance status assigned to the expense. | enum Enum 6926 “Expense Compliance Status”; not editable |
| 206 | No Receipt Generated At | DateTime | — | not editable; DataClassification SystemMetadata |
| 207 | No Receipt Generated By | Code[50] | — | DataClassification EndUserIdentifiableInformation |
Keys
- PK: No. (clustered)
- CreditCardFeedNo: Credit Card Feed No.
- CorporateCard: Corporate Card Id
- ExpenseUserStatus: Expense User No., Status
Trigger event subscribers
- OnAfterDeleteEvent: Codeunit 6989 “Expense Attachment Mgt.” DeleteAttachedDocumentsOnAfterDeleteExpense
- OnAfterInsertEvent: Codeunit 6908 “Expense Event Subscriber” OnAfterInsertExpenseEvent, Codeunit 6931 “Expense Vendor Matching” OnAfterExpenseInsert
Procedures
AssistEdit(): Boolean: Lets the user select a number series for the expense and assigns the next number from the selected series.ValidateShortcutDimCode(FieldNumber: Integer; var ShortcutDimCode: Code[20]): Validates a shortcut dimension value and updates the dimension set of the expense.PerformManualRelease(): Releases the current expense as the current user, unless it is already released.ShowDocDim(): Opens the dimension set of the expense for editing and saves any changes.PerformManualRelease(var Expense: Record Expense): Releases the selected expenses as the current user in a batch. Expenses that are already released are skipped.PerformManualReopen(var Expense: Record Expense): Reopens the selected expenses as the current user in a batch. Expenses that are already open are skipped.FilterByUserId(FilterUserId: Code[50])(internal) (obsolete 29.0: This function is no longer used.)FilterByCurrentUser()(internal)SetHideValidationDialog(NewHideValidationDialog: Boolean): Specifies whether confirmation dialogs are suppressed when fields on the expense are validated.GetHideValidationDialog(): Boolean: Gets whether confirmation dialogs are suppressed when fields on the expense are validated.GetStatusStyleText(): Text(internal)TestStatusOpen(): Checks that the status of the expense is Open and raises an error if it is not.HasCardTransactionValues(): Boolean(internal)GetRuleStyleText(): Text(internal)ApplyRule(ApplyAndValidateRuleOnExpense: Boolean; ValidateRuleOnly: Boolean)(internal)ApplyRule()(internal)SetSkipRuleApplication(NewSkipRuleApplication: Boolean)(internal)CreateDimFromDefaultDim(FieldNo: Integer): Initializes the dimensions for the Expense.CheckExpensePrerequisitesBeforeUsing()(internal)UpdateAmount(): Recalculates the reimbursable, refundable, and local currency amounts of the expense based on the amount, the non-refundable amount, and the reimbursement type.ShowItemization(): Opens the itemization lines of the expense for the expense category of the expense.ShowParticipants(): Opens the participants of the expense.ShowPerDiem(): Opens the per diem lines of the expense.SetCalledFromExpenseAgent(NewCalledFromExpenseAgent: Boolean)(internal)GetVATAmounts(var VATAmount: Decimal; var VATAmountLCY: Decimal): Boolean(internal)UpdateVATSpecification(ExpenseNo: Code[20])(internal)IsItemizationRequired(): Boolean(internal)IsEnforcedItemizationRequired(): Boolean(internal)
Plus 26 local procedures.
Triggers
OnInsert, OnModify, OnDelete
Relations
- drill-down page Page 6989 “Expenses”
- lookup page Page 6989 “Expenses”
- Job Task No.: TableRelation Table 1001 “Job Task”
- Billable to Customer: TableRelation Table 18 “Customer”
- Unit of Measure Code: TableRelation Table 204 “Unit of Measure”
- VAT Bus. Posting Group: TableRelation Table 323 “VAT Business Posting Group”
- VAT Prod. Posting Group: TableRelation Table 324 “VAT Product Posting Group”
- Shortcut Dimension 1 Code: TableRelation Table 349 “Dimension Value”
- Shortcut Dimension 2 Code: TableRelation Table 349 “Dimension Value”
- Currency Code: TableRelation Table 4 “Currency”
- Dimension Set ID: TableRelation Table 480 “Dimension Set Entry”
- Card Expense Awaiting Report: CalcFormula Table 6900 “Expense”
- Rule Violations: CalcFormula Table 6903 “Expense Rule Violation”
- Expense Report No.: TableRelation Table 6906 “Expense Report Header”
- Payment Method Code: TableRelation Table 6913 “Expense Payment Method”
- Posted Expense Report No.: TableRelation Table 6915 “Posted Expense Report Header”
- Expense Category: TableRelation Table 6921 “Expense Category”
- Expense User No.: TableRelation Table 6923 “Expense User”
- Expense Location: TableRelation Table 6925 “Expense Location”
- Expense Subcategory: TableRelation Table 6929 “Expense Subcategory”
- Expense Vendor No.: TableRelation Table 6937 “Expense Vendor”
- Vehicle Type: TableRelation Table 7108 “Expense Vehicle Type”
- Corporate Card Id: TableRelation Table 7421 “EA Corp Card”
Referenced by
6 fields in 5 objects relate to this table (TableRelation or CalcFormula).
- Table 6941 “Expense Activities Cue”: Expenses - Policy Violated, Expenses - Released
- Table 6900 “Expense”: Card Expense Awaiting Report
- Table 6968 “Expense Agent Consumption”: Consumption Source System ID
- Table 6969 “Expense Agent Env. Consumption”: Consumption Source System ID
- Table 7449 “EA Expense Management Cue”: Open Expenses
Pages and codeunits on this table
- Page 6904 “Expense Statistics” (source table)
- Page 6927 “Expenses API” (source table)
- Page 6938 “Expense Factbox” (source table)
- Page 6988 “Expense” (source table)
- Page 6989 “Expenses” (source table)
- Page 7090 “Accountant Expenses” (source table)
- Codeunit 6980 “Release Expense Document” (codeunit runs on it)
- Codeunit 6981 “Expense Manual Reopen” (codeunit runs on it)
- Codeunit 6982 “Expense Manual Release” (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” (5 calls:
CreateDim → GetRecDefaultDimID,CreateDim → UpdateGlobalDimFromDimSetID,InitDefaultDimensionSources → AddDimSource, …) - Codeunit 6925 “No Receipt Declaration Mgt.” (2 calls:
MarkNoReceiptDeclarationOutdated → MarkDeclarationOutdated,UpdateNoReceiptType → ClearDeclaration) - Codeunit 6993 “Expense Agent API Validation” (2 calls:
SetExpenseUserOnCreate → IsCurrentUserExpenseAgent,UpdateExpenseUserOnModify → IsCurrentUserExpenseAgent) - Codeunit 7447 “EA Corp Card Selection Mgt” (2 calls:
OnInsert → ValidateExpenseCard,OnModify → ValidateExpenseCard) - Page 456 “No. Series” (2 calls:
AssistEdit → (object),OnInsert → (object)) - Codeunit 1281 “Update Currency Exchange Rates” (1 call:
UpdateCurrencyFactor → ExchangeRatesForCurrencyExist) - Codeunit 1380 “Batch Processing Mgt.” (1 call:
PerformManualReopen → BatchProcess) - Codeunit 1511 “Notification Lifecycle Mgt.” (1 call:
SendSubcategoryBlankedNotification → SendNotification) - Codeunit 27 “Confirm Management” (1 call:
ConfirmAndDeleteAssociatedRecords → GetResponseOrDefault) - Codeunit 6902 “Expense Rule Validation” (1 call:
ApplyRule → ValidateExpenseAgainstRule) - Codeunit 6954 “EA KPI Track” (1 call:
OnInsert → UpdateExpenseEntry) - Codeunit 6980 “Release Expense Document” (1 call:
PerformManualRelease → PerformManualRelease) - Page 6974 “Per Diem Expenses” (1 call:
ShowPerDiem → (object)) - Page 6975 “Expense Itemizations” (1 call:
ShowItemization → (object)) - Page 6992 “Expense Participants” (1 call:
ShowParticipants → (object))
Recent changes
- 2026-11-29 #14598 [Expense Agent] Corporate card transactions as expense report lines (main, BC30, feature)
- 2026-11-27 #14241 [Expense Agent] Fix corporate card data integrity (main, BC30, fix)
- 2026-11-26 #14528 Deliverable 660629: [29.x] BCApps part of No Receipt expenses (releases/29.x, BC29, feature)
- 2026-11-20 #14335 [Main] Expense Management: make Expense Management Setup public; keep agent and corporate card surface internal (main, BC30, feature)
- 2026-11-20 #14295 [Main] Expense Management: make core expense business objects public (main, BC30, feature)
- 2026-11-20 #12544 Slice 626931: [Expense Agent] Lost receipt workflow and document creation (November ’26) (main, BC30, feature)
- 2026-11-19 #13925 [29x]-Bug 658773: Mileage: starting/ending point addresses over 50 characters fail to save on report lines (BC Text[50] limit not enforced) (releases/29.x, BC29, fix)
- 2026-11-18 #13920 [Main] - Bug 656559: Mileage: starting/ending point addresses over 50 characters fail to save on report lines (BC Text[50] limit not enforced) (main, BC30, fix)
- 2026-11-16 #13587 Update Corp Card manual selection (main, BC30, feature)
- 2026-10-30 #12882 [Master] - Bug 651169: [Expense Agent] Exchange rate date limitation (main, BC30, fix)
- 2026-10-28 #12147 Bugs/add corp card basics (main, BC30, feature)
- 2026-10-21 #13058 Bug 656064: Expense Agent: Itemization table holds unrounded values, leading to rounding errors. Also missing currency code. (main, BC30, fix)
- 2026-10-21 #12599 [Master] - Slice 629913: [Expense Agent][VENDOR] Enforced background itemization required for approvals (main, BC30, feature)
- 2026-09-15 #11431 [Master] - [Expense Management] Move missing Employee Posting Group validation to rule violation (main, BC30, fix)
- 2026-09-15 #11425 Bug 650137: [29.x] Expense Locations and Per-diem rules in configuration - Backport (releases/29.x, BC29, feature)
- 2026-09-10 #10155 Slice 641293: [Expense Agent] Expense Locations and Per-diem rules in configurationAdded more locations (main, BC30, feature)
- 2026-08-31 #10312 Update expense VAT specification source (main, BC30, feature)
- 2026-08-27 #10561 Mileage Rate Setup (main, BC30, feature)
- 2026-08-04 #9859 [Master] - Move Expense Agent (Preview) app into BCApps (main, BC30, feature, added)
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Expense Agent Overview for Business Central — possibly related: Expense table is the core data structure for the Expense Agent AI-powered app. (model-linked)
- Expense Agent Overview in Business Central — possibly related: Expense table stores expense data created and processed by Expense Agent automation. (model-linked)
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.