Table 6900 "Expense"
ExpenseAgent · Microsoft.ExpenseAgent
Across versions
- BC23-28not present
- BC29-30present
Neighbourhood 47 connected objects and pages
ExpenseAgent · Microsoft.ExpenseAgent · BC29-30 · source at ea08af5e · 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 |
| 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. via Page 6988 “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. via Page 6988 “Expense” | TableRelation Table 6906 “Expense Report Header” (“Expense Report Header”.“No.”); not editable |
| 4 | Expense Category | Code[20] | Specifies the category assigned to this expense. via Page 6988 “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. via Page 6988 “Expense” | |
| 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. via Page 6988 “Expense” | TableRelation Table 204 “Unit of Measure” (Unit of Measure) |
| 5 | Status | Enum “Expense Status” | Specifies the current status of the expense. via Page 6988 “Expense” | enum Enum 6907 “Expense Status”; not editable |
| 6 | Description | Text[100] | Specifies a short description of the expense. via Page 6988 “Expense” | |
| 7 | Justification | Text[100] | Specifies the justification for the expense per policy. via Page 6988 “Expense” | |
| 8 | Expense Date | Date | Specifies the date the expense occurred. via Page 6988 “Expense” | |
| 9 | Expense Time | Time | Specifies the time the expense occurred. via Page 6988 “Expense” | |
| 10 | Currency Code | Code[10] | Specifies the value of the Currency Code field. via Page 6988 “Expense” | TableRelation Table 4 “Currency” |
| 11 | Amount | Decimal | Specifies the total amount in the expense currency. via Page 6988 “Expense” | |
| 12 | Amount (LCY) | Decimal | Specifies the total amount in the local currency. via Page 6988 “Expense” | not editable |
| 13 | Merchant Name | Text[100] | Specifies the vendor or merchant for this expense. via Page 6988 “Expense” | |
| 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. via Page 6988 “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. via Page 6988 “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. via Page 6988 “Expense” | TableRelation Table 6913 “Expense Payment Method” (Expense Payment Method) |
| 20 | Refundable | Boolean | Specifies whether the expense is reimbursable. via Page 6988 “Expense” | |
| 21 | Billable | Boolean | Specifies whether the expense is billable to a customer. via Page 6988 “Expense” | |
| 22 | Billable to Customer | Code[20] | Specifies the customer to bill for this expense. Available when Billable is turned on. via Page 6988 “Expense” | TableRelation Table 18 “Customer” |
| 23 | Expense Location | Code[30] | Specifies the travel location for the expense. Available for Per Diem expenses. via Page 6988 “Expense” | 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. via Page 6988 “Expense” | |
| 25 | Ending Date and Time | DateTime | Specifies the end of the travel period for this expense. Editable for Per Diem expenses. via Page 6988 “Expense” | |
| 26 | Non-Refundable Amount | Decimal | Specifies the reduction to the reimbursable amount. Available when Refundable is on and the category does not require itemization. via Page 6988 “Expense” | |
| 27 | Mileage | Decimal | Specifies the distance traveled for mileage reimbursement. Available for Mileage expenses. via Page 6988 “Expense” | |
| 28 | Starting Point | Text[50] | Specifies the starting location for mileage. Available for Mileage expenses. via Page 6988 “Expense” | |
| 29 | Ending Point | Text[50] | Specifies the ending location for mileage. Available for Mileage expenses. via Page 6988 “Expense” | |
| 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” (Expense Vehicle Type) |
| 30 | Reimbursable Amount | Decimal | Specifies the amount eligible for reimbursement based on policy. via Page 6988 “Expense” | not editable |
| 31 | Reimbursable Amount (LCY) | Decimal | Specifies the reimbursable amount in the local currency. via Page 6988 “Expense” | 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. via Page 6988 “Expense” | |
| 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. via Page 6988 “Expense” | enum Enum 6912 “Expense Reimbursement Type”; not editable |
| 44 | Rule Violations | Boolean | Specifies whether any rule violations exist for this expense. via Page 6988 “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. via Page 6988 “Expense” | TableRelation Job.“No.” where(Status = filter(<> Completed)) |
| 47 | Job Task No. | Code[20] | Specifies the job task to assign this expense to. via Page 6988 “Expense” | 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. via Page 6988 “Expense” | not editable |
| 49 | Refundable Amount (LCY) | Decimal | Specifies the refundable amount in the local currency. via Page 6988 “Expense” | 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. via Page 6988 “Expense” | 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. via Page 6988 “Expense” | |
| 61 | Merchant VAT Registration No. | Text[20] | Specifies the vendor or merchant VAT registration number for this expense. via Page 6988 “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 |
Keys
- PK: No. (clustered)
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(): BooleanValidateShortcutDimCode(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(): BooleanGetStatusStyleText(): TextTestStatusOpen()GetRuleStyleText(): TextApplyRule(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): BooleanUpdateVATSpecification(ExpenseNo: Code[20])(internal)
Plus 17 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”
- 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”
Referenced by
2 fields in 2 objects relate to this table (TableRelation or CalcFormula).
- Table 6968 “Expense Agent Consumption”: Consumption Source System ID
- Table 6969 “Expense Agent Env. Consumption”: Consumption Source System ID
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 1281 “Update Currency Exchange Rates” (2 calls:
UpdateCurrencyFactor → ExchangeRatesForCurrencyExist,UpdateCurrencyFactor → ShowMissingExchangeRatesNotification) - Codeunit 6993 “Expense Agent API Validation” (2 calls:
SetExpenseUserOnCreate → IsCurrentUserExpenseAgent,UpdateExpenseUserOnModify → IsCurrentUserExpenseAgent) - Page 456 “No. Series” (2 calls:
AssistEdit → (object),OnInsert → (object)) - Codeunit 1380 “Batch Processing Mgt.” (1 call:
PerformManualReopen → BatchProcess) - 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-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)
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.