Codeunit 6983 "Create Expense Report"
ExpenseAgent · Microsoft.ExpenseAgent
Across versions
- BC23-28not present
- BC29-30present
Neighbourhood 6 connected objects and pages
ExpenseAgent · Microsoft.ExpenseAgent · BC29-30 · source at 4e6a307c · facts from BC29
Events published
OnAfterCopyExpenseFieldsToReportLine(Expense: Record Expense; var ExpenseReportLine: Record "Expense Report Line")(integration): Raised after the fields of an expense are copied to a new expense report line, before the line amounts are recalculated and the line is saved.
Procedures
AddExpensesToReport(var ExpenseReportHeader: Record "Expense Report Header")(internal): Adds selected expenses to an expense report as linesAddExpensesToReport(var Expense: Record Expense)(internal)AddSingleExpenseToExpenseReport(Expense: Record Expense; ExpenseReportHeader: Record "Expense Report Header"): Record "Expense Report Line": Adds a released expense to an expense report as a new expense report line. The expense’s participants, itemizations, per diem lines, VAT specifications and attachments are copied to the line, the expense rules are evaluated and any violations are recorded, and the expense is marked as submitted on t…AddCardExpenseToExpenseReport(var Expense: Record Expense; ExpenseReportHeader: Record "Expense Report Header"): Record "Expense Report Line"(internal): Adds an expense created from a corporate card transaction to an open expense report for the Expense Agent. An open card expense is released first without requiring an expense category, so the line can be added before the user picks one; the report still requires a category on every line before it ca…
Plus 13 local procedures.
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 6910 “Expense Report” (4 calls:
CopyItemizationsToReportLine → CopyItemizationFromExpense,CopyParticipantsToReportLine → CopyParticipantsFromExpense,CopyPerDiemToReportLine → CopyPerDiemFromExpense, …) - Codeunit 1173 “Document Attachment Mgmt” (1 call:
CopyAttachments → CopyAttachments) - Codeunit 27 “Confirm Management” (1 call:
ShowExpenseReport → GetResponseOrDefault) - Codeunit 6980 “Release Expense Document” (1 call:
AddCardExpenseToExpenseReport → ReleaseCardExpenseWithoutCategory)
Called by
- Page 6928 “Expense Reports API” (2 calls:
AddCardExpenseToReport → AddCardExpenseToExpenseReport,AddExpenseToReport → AddSingleExpenseToExpenseReport) - Codeunit 7442 “EA Create Corp Card Setup” (1 call:
CreateAndPostCsvSampleExpenseReport → AddSingleExpenseToExpenseReport)
Recent changes
- 2026-11-29 #14598 [Expense Agent] Corporate card transactions as expense report lines (main, BC30, feature)
- 2026-11-26 #14528 Deliverable 660629: [29.x] BCApps part of No Receipt expenses (releases/29.x, BC29, feature)
- 2026-11-23 #14346 [Main] Expense Management: add partner extension events and make Create Expense Report 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-16 #13587 Update Corp Card manual selection (main, BC30, feature)
- 2026-11-11 #13760 [Expense Agent] Allow receipt submission with unresolved VAT setup (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-09-04 #11004 Fix Expense Report Reimbursement Currency Code (main, BC30, fix)
- 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.
- Create and Submit Expense Reports in Expense Agent — possibly related: Creates expense reports by copying expense fields to report lines as documented in submission process. (model-linked)
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: "codeunit", object_name: "Create Expense Report"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.