codeunitCopilot & Agentsofficial - Microsoftderived - from the source, no model text

Codeunit 6987 "Expense Report-Post"

ExpenseAgent · Microsoft.ExpenseAgent

Across versions

  1. BC23-28not present
  2. BC29present
  3. BC30changed

Neighbourhood 24 connected objects and pages

Table 6906 "Expense Report Header" (relates to)Expense Report HeaderCodeunit 7057 "WHT Exp. Report Post Handler" (event subscribers, 3 links)WHT Exp. Report Post HandlerCodeunit 7440 "EA Corp Card Post Mgt" (event subscribers)EA Corp Card Post MgtCodeunit 12 "Gen. Jnl.-Post Line" (calls, 9 links)Gen. Jnl.-Post LineCodeunit 6926 "Expense Activity Log Mgt." (calls, 3 links)Expense Activity Log Mgt.Codeunit 6996 "Exp. Preview Posting Handler" (calls, 2 links)Exp. Preview Posting HandlerCodeunit 6997 "Expense Preview Post Mgt." (calls, 2 links)Expense Preview Post Mgt.Codeunit 1012 "Job Jnl.-Post Line" (calls)Job Jnl.-Post LineCodeunit 1173 "Document Attachment Mgmt" (calls)Codeunit 19 "Gen. Jnl.-Post Preview" (calls)Gen. Jnl.-Post PreviewCodeunit 27 "Confirm Management" (calls)Codeunit 4317 "Agent System Permissions" (calls)Agent System PermissionsCodeunit 6941 "EA Http Client" (calls)EA Http ClientCodeunit 6984 "Release Exp. Report Document" (calls)Release Exp. Report DocumentCodeunit 6994 "Expense Preview Post Instance" (calls)Expense Preview Post InstanceCodeunit 7133 "Travel Request Approval" (calls)Codeunit 7442 "EA Create Corp Card Setup" (calls)EA Create Corp Card SetupCodeunit 7447 "EA Corp Card Selection Mgt" (calls)Codeunit 8703 "Feature Telemetry" (calls)Page 456 "No. Series" (calls)Page 6910 "Expense Report" (calls)Page 6980 "Manager Expense Report" (calls)Page 6997 "Expense Reports" (calls)Table 6907 "Expense Report Line" (calls)

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

ExpenseAgent · Microsoft.ExpenseAgent · BC29-30 · source at 4e6a307c · facts from BC29

Properties

Property Value
TableNo Expense Report Header
Permissions TableData “Expense Report Header” = rimd, TableData “Expense Report Line” = rimd, TableData “Sales Header” = rimd, TableData “Sales Line” = rimd, TableData “Gen. Journal Line” = rimd, TableData “Expense Ledger Entry” = rimd, TableData “Expense Report Line Particip.” = rimd, TableData “Expense Report…

Events published

  • OnAfterProcessExpenseReportLine(ExpenseReportHeader: Record "Expense Report Header"; ExpenseReportLine: Record "Expense Report Line"; PostedExpenseReportLine: Record "Posted Expense Report Line"; PostedExpenseReportHeader: Record "Posted Expense Report Header") (integration)
  • OnBeforePostEmployeeEntry(var GenJournalLine: Record "Gen. Journal Line"; ExpenseReportHeader: Record "Expense Report Header"; PostedExpenseReportHeader: Record "Posted Expense Report Header") (integration)
  • OnAfterPostEmployeeEntry(GenJournalLine: Record "Gen. Journal Line"; ExpenseReportHeader: Record "Expense Report Header"; PostedExpenseReportHeader: Record "Posted Expense Report Header") (integration)
  • OnBeforePostExpenseReport(var ExpenseReportHeader: Record "Expense Report Header") (integration): Raised before an expense report is posted, before the built-in posting validation runs and before the posted expense report is created.
  • OnAfterPostExpenseReport(ExpenseReportHeader: Record "Expense Report Header"; PostedExpenseReportHeader: Record "Posted Expense Report Header"; PreviewMode: Boolean) (integration): Raised after an expense report is posted: the posted expense report, its general ledger entries and its expense ledger entries are created. The draft expense report is deleted after this event.
  • OnBeforePostExpenseGenJournalLine(var GenJournalLine: Record "Gen. Journal Line"; ExpenseReportHeader: Record "Expense Report Header"; ExpenseReportLine: Record "Expense Report Line") (integration): Raised before a general journal line for an expense report line is posted. This covers the expense, VAT specification, company-paid, non-refundable and currency rounding lines of the expense report line; the employee entry has its own events.

Event subscriptions

  • OnAfterBindSubscription subscribes to Codeunit “Gen. Jnl.-Post Preview” OnAfterBindSubscription
  • OnAfterUnbindSubscription subscribes to Codeunit “Gen. Jnl.-Post Preview” OnAfterUnbindSubscription

Procedures

  • RunWithCheck(var ExpenseReportHeader: Record "Expense Report Header") (internal)
  • PostExpenseReport(var ExpenseReportHeader: Record "Expense Report Header") (internal)
  • UpdateVATAmount(var Amount: Decimal; var AmountLCY: Decimal; var VATAmount: Decimal; var VATAmountLCY: Decimal; var VATBaseAmount: Decimal; var VATBaseAmountLCY: Decimal; ExpenseReportHeader: Record "Expense Report Header"; ExpenseReportLine: Record "Expense Report Line") (internal)
  • SetPreviewMode(NewPreviewMode: Boolean) (internal): Sets the Preview Mode for the current instance of the codeunit. Preview Mode ensures no transactions are committed to the database and no documents are sent.
  • CheckAndSendReimbursementNotification(PostedExpReportHeader: Record "Posted Expense Report Header"): Boolean (internal)

Plus 61 local procedures.

Triggers

OnRun

Relations

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.

Called by

Recent changes

No source states these links: they share an object, a model read them, or a person found the same subject.

  • Post the year-end closing entry — possibly related: Posts expense reports and generates year-end closing entries through general journal posting. (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: "Expense Report-Post"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources