codeunitFinanceofficial - Microsoftderived - from the source, no model text

Codeunit 20 "Posting Preview Event Handler"

Base Application · Microsoft.Finance.GeneralLedger.Preview

Across versions

  1. BC23-24present
  2. BC253 procedures removed
  3. BC2627 procedures changed, 13 events added
  4. BC27-28unchanged
  5. BC292 procedures added, 1 events added
  6. BC30unchanged

Neighbourhood 34 connected objects and pages

Codeunit 20566 "Subc. Posting Preview Subscr." (event subscribers, 3 links)Subc. Posting Preview Subscr.Codeunit 6498 "Serv. Posting Preview Subscr." (event subscribers, 3 links)Serv. Posting Preview Subscr.Codeunit 6792 "Wthldg Tax Preview Handler" (event subscribers, 3 links)Wthldg Tax Preview HandlerCodeunit 8078 "Deferral Post. Preview Subscr." (event subscribers, 3 links)Deferral Post. Preview Subscr.Codeunit 99000798 "Mfg. Posting Preview Subscr." (event subscribers, 3 links)Codeunit 6226 "Sust. Preview Post. Subscriber" (event subscribers, 2 links)Sust. Preview Post. SubscriberCodeunit 6995 "Exp. Preview Post. Subscriber" (event subscribers, 2 links)Codeunit 19 "Gen. Jnl.-Post Preview" (calls)Gen. Jnl.-Post PreviewCodeunit 373 "Bank. Acc. Recon. Post Preview" (calls)Bank. Acc. Recon. Post PreviewCodeunit 6498 "Serv. Posting Preview Subscr." (calls)Serv. Posting Preview Subscr.Codeunit 6792 "Wthldg Tax Preview Handler" (calls)Codeunit 80 "Sales-Post" (calls)Sales-PostCodeunit 90 "Purch.-Post" (calls)Codeunit 99000798 "Mfg. Posting Preview Subscr." (calls)Mfg. Posting Preview Subscr.Page 122 "G/L Entries Preview" (calls)G/L Entries PreviewPage 123 "VAT Entries Preview" (calls)VAT Entries PreviewPage 127 "Det. Cust. Ledg. Entr. Preview" (calls)Page 129 "Detailed Vend. Entries Preview" (calls)Detailed Vend. Entries PreviewPage 1570 "Extended G/L Posting Preview" (calls)Extended G/L Posting PreviewPage 1571 "G/L Entries Preview Subform" (calls)Page 1572 "VAT Entries Preview Subform" (calls)Page 1574 "G/L Entries Preview Flat Subf." (calls)Page 1575 "VAT Entries Preview Flat Subf." (calls)Page 162 "Resource Ledg. Entries Preview" (calls)Page 165 "Bank Acc. Ledg. Entr. Preview" (calls)Page 186 "Exch.Rate Adjmt. Ledg.Entries" (calls)Page 390 "Phys. Inventory Ledger Entries" (calls)Page 5240 "Detailed Empl. Entries Preview" (calls)Page 5606 "FA Ledger Entries Preview" (calls)Page 5671 "Maint. Ledg. Entries Preview" (calls)Page 5807 "Value Entries Preview" (calls)Page 6844 "Spend Req. To G/L Link Preview" (calls)Page 7318 "Warehouse Entries" (calls)Page 93 "Job Ledger Entries Preview" (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.

Base Application · Microsoft.Finance.GeneralLedger.Preview · BC23-30 · source at ea08af5e · facts from BC29

Events published

  • OnAfterFillDocumentEntry(var DocumentEntry: Record "Document Entry") (integration): Raised after a document entry is populated during preview processing. Allows customization of document entry data for preview display.
  • OnGetEntries(TableNo: Integer; var RecRef: RecordRef) (integration): Raised when retrieving preview entries for a specific table during preview processing. Allows customization of which entries are included in preview display.
  • OnAfterShowEntries(TableNo: Integer) (integration): Raised after preview entries have been displayed for a specific table. Allows post-display processing and cleanup for custom preview entries.
  • OnBeforeModifyTempGLEntry(var Rec: Record "G/L Entry"; var TempCustLedgerEntry: Record "G/L Entry") (integration): Raised before modifying a temporary G/L Entry record during preview processing. Allows customization of G/L entry data before it’s stored in the preview cache.
  • OnBeforeModifyTempCustLedgEntry(var Rec: Record "Cust. Ledger Entry"; var TempCustLedgerEntry: Record "Cust. Ledger Entry") (integration): Raised before modifying a temporary Customer Ledger Entry record during preview processing. Allows customization of customer ledger entry data before it’s stored in the preview cache.
  • OnBeforeModifyTempDtldCustLedgEntry(var Rec: Record "Detailed Cust. Ledg. Entry"; var TempCustLedgerEntry: Record "Detailed Cust. Ledg. Entry") (integration): Raised before modifying a temporary Detailed Customer Ledger Entry record during preview processing. Allows customization of detailed customer ledger entry data before it’s stored in the preview cache.
  • OnBeforeModifyTempVendLedgEntry(var Rec: Record "Vendor Ledger Entry"; var TempVendLedgerEntry: Record "Vendor Ledger Entry") (integration): Raised before modifying a temporary Vendor Ledger Entry record during preview processing. Allows customization of vendor ledger entry data before it’s stored in the preview cache.
  • OnBeforeModifyTempDtldVendLedgEntry(var Rec: Record "Detailed Vendor Ledg. Entry"; var TempVendLedgerEntry: Record "Detailed Vendor Ledg. Entry") (integration): Raised before modifying a temporary Detailed Vendor Ledger Entry record during preview processing. Allows customization of detailed vendor ledger entry data before it’s stored in the preview cache.
  • OnBeforeModifyTempVATEntry(var Rec: Record "VAT Entry"; var TempVATEntry: Record "VAT Entry") + BC26 (integration): Raised before modifying a temporary VAT Entry record during preview processing. Allows customization of VAT entry data before it’s stored in the preview cache.
  • OnBeforeModifyTempValueEntry(var Rec: Record "Value Entry"; var TempValueEntry: Record "Value Entry") + BC26 (integration): Raised before modifying a temporary Value Entry record during preview processing. Allows customization of value entry data before it’s stored in the preview cache.
  • OnBeforeModifyTempItemLedgerEntry(var Rec: Record "Item Ledger Entry"; var TempItemLedgerEntry: Record "Item Ledger Entry") + BC26 (integration): Raised before modifying a temporary Item Ledger Entry record during preview processing. Allows customization of item ledger entry data before it’s stored in the preview cache.
  • OnBeforeModifyTempFALedgEntry(var Rec: Record "FA Ledger Entry"; var TempFALedgEntry: Record "FA Ledger Entry") + BC26 (integration): Raised before modifying a temporary Fixed Asset Ledger Entry record during preview processing. Allows customization of FA ledger entry data before it’s stored in the preview cache.
  • OnBeforeModifyTempEmplLedgEntry(var Rec: Record "Employee Ledger Entry"; var TempEmplLedgEntry: Record "Employee Ledger Entry") + BC26 (integration): Raised before modifying a temporary Employee Ledger Entry record during preview processing. Allows customization of employee ledger entry data before it’s stored in the preview cache.
  • OnBeforeModifyTempBankAccLedgerEntry(var Rec: Record "Bank Account Ledger Entry"; var TempBankAccLedgerEntry: Record "Bank Account Ledger Entry") + BC26 (integration): Raised before modifying a temporary Bank Account Ledger Entry record during preview processing. Allows customization of bank account ledger entry data before it’s stored in the preview cache.
  • OnBeforeModifyTempResLedgerEntry(var Rec: Record "Res. Ledger Entry"; var TempResLedgerEntry: Record "Res. Ledger Entry") + BC26 (integration): Raised before modifying a temporary Resource Ledger Entry record during preview processing. Allows customization of resource ledger entry data before it’s stored in the preview cache.
  • OnBeforeModifyTempMaintenanceLedgerEntry(var Rec: Record "Maintenance Ledger Entry"; var TempMaintenanceLedgerEntry: Record "Maintenance Ledger Entry") + BC26 (integration): Raised before modifying a temporary Maintenance Ledger Entry record during preview processing. Allows customization of maintenance ledger entry data before it’s stored in the preview cache.
  • OnBeforeModifyTempJobLedgerEntry(var Rec: Record "Job Ledger Entry"; var TempJobLedgerEntry: Record "Job Ledger Entry") + BC26 (integration): Raised before modifying a temporary Job Ledger Entry record during preview processing. Allows customization of job ledger entry data before it’s stored in the preview cache.
  • OnBeforeModifyTempExchRateAdjmtLedgEntry(var Rec: Record "Exch. Rate Adjmt. Ledg. Entry"; var TempExchRateAdjmtLedgEntry: Record "Exch. Rate Adjmt. Ledg. Entry") + BC26 (integration): Raised before modifying a temporary Exchange Rate Adjustment Ledger Entry record during preview processing. Allows customization of exchange rate adjustment entry data before it’s stored in the preview cache.
  • OnBeforeModifyTempWarehouseEntry(var Rec: Record "Warehouse Entry"; var TempWarehouseEntry: Record "Warehouse Entry") + BC26 (integration): Raised before modifying a temporary Warehouse Entry record during preview processing. Allows customization of warehouse entry data before it’s stored in the preview cache.
  • OnBeforeModifyTempPhysInventoryLedgerEntry(var Rec: Record "Phys. Inventory Ledger Entry"; var TempPhysInventoryLedgerEntry: Record "Phys. Inventory Ledger Entry") + BC26 (integration): Raised before modifying a temporary Physical Inventory Ledger Entry record during preview processing. Allows customization of physical inventory entry data before it’s stored in the preview cache.
  • OnBeforeModifyTempDtldEmplLedgEntry(var Rec: Record "Detailed Employee Ledger Entry"; var TempDtldEmplLedgEntry: Record "Detailed Employee Ledger Entry" temporary) + BC26 (integration): Raised before modifying a temporary Detailed Employee Ledger Entry record during preview processing. Allows customization of detailed employee ledger entry data before it’s stored in the preview cache.

Event subscriptions

  • OnInsertGLEntry subscribes to Table “G/L Entry” OnAfterInsertEvent
  • OnModifyGLEntry subscribes to Table “G/L Entry” OnAfterModifyEvent
  • OnInsertVATEntry subscribes to Table “VAT Entry” OnAfterInsertEvent
  • OnModifyVATEntry subscribes to Table “VAT Entry” OnAfterModifyEvent
  • OnInsertValueEntry subscribes to Table “Value Entry” OnAfterInsertEvent
  • OnModifyValueEntry subscribes to Table “Value Entry” OnAfterModifyEvent
  • OnInsertItemLedgerEntry subscribes to Table “Item Ledger Entry” OnAfterInsertEvent
  • OnModifyItemLedgerEntry subscribes to Table “Item Ledger Entry” OnAfterModifyEvent
  • OnInsertFALedgEntry subscribes to Table “FA Ledger Entry” OnAfterInsertEvent
  • OnModifyFALedgEntry subscribes to Table “FA Ledger Entry” OnAfterModifyEvent
  • OnInsertCustLedgerEntry subscribes to Table “Cust. Ledger Entry” OnAfterInsertEvent
  • OnModifyCustLedgerEntry subscribes to Table “Cust. Ledger Entry” OnAfterModifyEvent
  • OnInsertDetailedCustLedgEntry subscribes to Table “Detailed Cust. Ledg. Entry” OnAfterInsertEvent
  • OnModifyDetailedCustLedgerEntry subscribes to Table “Detailed Cust. Ledg. Entry” OnAfterModifyEvent
  • OnInsertVendorLedgerEntry subscribes to Table “Vendor Ledger Entry” OnAfterInsertEvent
  • OnModifyVendorLedgerEntry subscribes to Table “Vendor Ledger Entry” OnAfterModifyEvent
  • OnInsertDetailedVendorLedgEntry subscribes to Table “Detailed Vendor Ledg. Entry” OnAfterInsertEvent
  • OnModifyDetailedVendorLedgerEntry subscribes to Table “Detailed Vendor Ledg. Entry” OnAfterModifyEvent
  • OnInsertEmployeeLedgerEntry subscribes to Table “Employee Ledger Entry” OnAfterInsertEvent
  • OnModifyEmployeeLedgerEntry subscribes to Table “Employee Ledger Entry” OnAfterModifyEvent
  • OnInsertDetailedEmployeeLedgerEntry subscribes to Table “Detailed Employee Ledger Entry” OnAfterInsertEvent
  • OnModifyDetailedEmployeeLedgerEntry subscribes to Table “Detailed Employee Ledger Entry” OnAfterModifyEvent
  • OnInsertBankAccountLedgerEntry subscribes to Table “Bank Account Ledger Entry” OnAfterInsertEvent
  • OnModifyBankAccountLedgerEntry subscribes to Table “Bank Account Ledger Entry” OnAfterModifyEvent
  • OnInsertResourceLedgerEntry subscribes to Table “Res. Ledger Entry” OnAfterInsertEvent
  • OnModifyResLedgerEntry subscribes to Table “Res. Ledger Entry” OnAfterModifyEvent
  • OnInsertMaintenanceLedgerEntry subscribes to Table “Maintenance Ledger Entry” OnAfterInsertEvent
  • OnModifyMaintenanceLedgerEntry subscribes to Table “Maintenance Ledger Entry” OnAfterModifyEvent
  • OnInsertJobLedgEntry subscribes to Table “Job Ledger Entry” OnAfterInsertEvent
  • OnModifyJobLedgEntry subscribes to Table “Job Ledger Entry” OnAfterModifyEvent
  • OnInsertExchRateAdjmtLedgEntry subscribes to Table “Exch. Rate Adjmt. Ledg. Entry” OnAfterInsertEvent
  • OnModifyExchRateAdjmtLedgEntry subscribes to Table “Exch. Rate Adjmt. Ledg. Entry” OnAfterModifyEvent
  • OnInsertWarehouseEntry subscribes to Table “Warehouse Entry” OnAfterInsertEvent
  • OnModifyWarehouseEntry subscribes to Table “Warehouse Entry” OnAfterModifyEvent
  • OnInsertPhysInventoryLedgerEntry subscribes to Table “Phys. Inventory Ledger Entry” OnAfterInsertEvent
  • OnModifyPhysInventoryLedgerEntry subscribes to Table “Phys. Inventory Ledger Entry” OnAfterModifyEvent
  • OnInsertSpendRequestToGLLink subscribes to Table “Spend Request To G/L Link” OnAfterInsertEvent
  • OnModifySpendRequestToGLLink subscribes to Table “Spend Request To G/L Link” OnAfterModifyEvent
  • OnAfterGenJnlPostLineFinishPosting subscribes to Codeunit “Gen. Jnl.-Post Line” OnAfterFinishPosting
  • SetTrueOnSystemSetPostingPreviewActive subscribes to Codeunit “Gen. Jnl.-Post Preview” OnSystemSetPostingPreviewActive
  • SetTrueOnSystemSetPostingPreviewActiveBankRecon subscribes to Codeunit “Bank. Acc. Recon. Post Preview” OnSystemSetPostingPreviewActive

Procedures

  • GetEntries(TableNo: Integer; var RecRef: RecordRef): Retrieves captured preview entries for the specified table type. Returns temporary records containing all entries captured during preview processing.
  • IsTransactionConsistent(): Boolean: Determines whether the posting preview transaction maintained consistency. Validates that all preview operations completed without transaction errors or rollbacks.
  • ShowEntries(TableNo: Integer): Displays detailed entries for the specified table type in appropriate preview pages. Opens specialized preview pages showing captured entries for comprehensive analysis.
  • FillDocumentEntry(var TempDocumentEntry: Record "Document Entry" temporary): Fills the temporary Document Entry table with all posted entries from the preview transaction.
  • InsertDocumentEntry(RecVar: Variant; var TempDocumentEntry: Record "Document Entry" temporary): Inserts a single preview entry into the temporary Document Entry table.
  • PreventCommit(): Prevents database commits during preview operations to maintain preview-only transaction state.
  • SetShowDocumentNo(NewShowDocNo: Boolean): Controls whether document numbers are displayed in preview results.

Triggers

OnRun

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

Countries that replace it

AU, NZ, RU

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: "Posting Preview Event Handler"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources