codeunitFinanceofficial - Microsoftderived - from the source, no model text

Codeunit 19 "Gen. Jnl.-Post Preview"

Base Application · Microsoft.Finance.GeneralLedger.Preview

Across versions

  1. BC23present
  2. BC241 procedures added
  3. BC25-30unchanged

Neighbourhood 77 connected objects and pages

Codeunit 20565 "Subc. Posting Preview Binding" (event subscribers, 2 links)Subc. Posting Preview BindingCodeunit 6225 "Sust. Purchase Subscriber" (event subscribers, 2 links)Sust. Purchase SubscriberCodeunit 6496 "Serv. Posting Preview Binding" (event subscribers, 2 links)Codeunit 6792 "Wthldg Tax Preview Handler" (event subscribers, 2 links)Wthldg Tax Preview HandlerCodeunit 6987 "Expense Report-Post" (event subscribers, 2 links)Codeunit 8076 "Deferral Post. Preview Binding" (event subscribers, 2 links)Deferral Post. Preview BindingCodeunit 99000796 "Mfg. Posting Preview Binding" (event subscribers, 2 links)Codeunit 1021 "Job Jnl.-Post" (event subscribers)Codeunit 20 "Posting Preview Event Handler" (event subscribers)Codeunit 224 "EmplEntry-Apply Posted Entries" (event subscribers)Codeunit 226 "CustEntry-Apply Posted Entries" (event subscribers)Codeunit 227 "VendEntry-Apply Posted Entries" (event subscribers)Codeunit 231 "Gen. Jnl.-Post" (event subscribers)Codeunit 241 "Item Jnl.-Post" (event subscribers)Codeunit 224 "EmplEntry-Apply Posted Entries" (calls, 4 links)EmplEntry-Apply Posted EntriesCodeunit 226 "CustEntry-Apply Posted Entries" (calls, 4 links)CustEntry-Apply Posted EntriesCodeunit 227 "VendEntry-Apply Posted Entries" (calls, 4 links)VendEntry-Apply Posted EntriesCodeunit 426 "Payment Tolerance Management" (calls, 4 links)Codeunit 28 "Error Message Management" (calls, 3 links)Error Message ManagementCodeunit 5706 "TransferOrder-Post (Yes/No)" (calls, 3 links)Codeunit 5981 "Service-Post (Yes/No)" (calls, 3 links)Service-Post (Yes/No)Codeunit 1021 "Job Jnl.-Post" (calls, 2 links)Job Jnl.-PostCodeunit 1520 "Workflow Event Handling" (calls, 2 links)Codeunit 241 "Item Jnl.-Post" (calls, 2 links)Item Jnl.-PostCodeunit 5761 "Whse.-Post Receipt (Yes/No)" (calls, 2 links)Codeunit 5764 "Whse.-Post Shipment (Yes/No)" (calls, 2 links)Whse.-Post Shipment (Yes/No)Codeunit 5853 "Invt. Doc.-Post (Yes/No)" (calls, 2 links)Codeunit 699 "Exch. Rate Adjmt. Process" (calls, 2 links)Exch. Rate Adjmt. ProcessCodeunit 7323 "Whse.-Act.-Post (Yes/No)" (calls, 2 links)Codeunit 81 "Sales-Post (Yes/No)" (calls, 2 links)Sales-Post (Yes/No)Codeunit 900 "Assembly-Post" (calls, 2 links)Codeunit 901 "Assembly-Post (Yes/No)" (calls, 2 links)Codeunit 91 "Purch.-Post (Yes/No)" (calls, 2 links)Codeunit 13 "Gen. Jnl.-Post Batch" (calls)Codeunit 20 "Posting Preview Event Handler" (calls)Codeunit 20411 "Qlty. Receiving Integration" (calls)Codeunit 21 "Item Jnl.-Check Line" (calls)Codeunit 231 "Gen. Jnl.-Post" (calls)Codeunit 29 "Error Message Handler" (calls)Codeunit 408 "DimensionManagement" (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

Trigger event subscribers

Procedures

  • Preview(Subscriber: Variant; RecVar: Variant): Initiates posting preview for the specified document record using the provided posting codeunit. Executes posting logic in simulation mode without committing database transactions.
  • GetPreviewHandler(var ResultPostingPreviewEventHandler: Codeunit "Posting Preview Event Handler"): Retrieves the current posting preview event handler instance for external processing. Enables access to captured preview entries and transaction details.
  • IsActive(): Boolean: Determines whether posting preview mode is currently active. Checks both system-level and extension-specific preview activation status.
  • IsSuccess(): Boolean: Determines whether the posting preview operation completed successfully. Validates that preview execution finished without posting errors.
  • SetContext(Subscriber: Variant; RecVar: Variant): Sets the context for posting preview operations with the specified posting codeunit and record. Configures preview environment for later execution without immediate preview processing.
  • ShowDimensions(TableID: Integer; EntryNo: Integer; DimensionSetID: Integer): Displays dimension information for a specific entry during posting preview operations. Shows dimension set details associated with preview entries for validation and analysis.
  • ThrowError(): Triggers the preview mode error to exit posting preview operations gracefully. Used to terminate preview processing and return to normal application flow.
  • MessageIfPostingPreviewMultipleDocuments(RecordRefToPreview: RecordRef; DocumentNo: Code[20]) + BC24: Displays a message when posting preview is requested for multiple documents. Informs users that preview will only show results for the first document in the selection.

Plus 3 local procedures.

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

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: "Gen. Jnl.-Post Preview"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources