codeunitFinanceofficial - Microsoftderived - from the source, no model text

Codeunit 181 "Copy Gen. Journal Mgt."

Base Application · Microsoft.Finance.GeneralLedger.Journal

Across versions

  1. BC23-27present
  2. BC281 events added
  3. BC29-30unchanged

Neighbourhood 3 connected objects and pages

Codeunit 4850 "AA Codes Posting Helper" (event subscribers)AA Codes Posting HelperCodeunit 27 "Confirm Management" (calls, 2 links)Confirm ManagementCodeunit 230 "GenJnlManagement" (calls)GenJnlManagement

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.Journal · BC23-30 · source at ea08af5e · facts from BC29

Events published

  • OnBeforeInsertGenJournalLine(var PostedGenJournalLine: Record "Posted Gen. Journal Line"; var CopyGenJournalParameters: Record "Copy Gen. Journal Parameters") (integration): Integration event raised before inserting a copied general journal line from posted transaction. Allows modification of posted data or copy parameters before creating the new journal line.
  • OnAfterCheckIfCanBeCopied(PostedGenJournalLine: Record "Posted Gen. Journal Line") (integration): Integration event raised after validating that posted general journal lines can be copied. Provides extensibility for additional validation rules or custom copy eligibility checks.
  • OnAfterInsertGenJournalLine(PostedGenJournalLine: Record "Posted Gen. Journal Line"; CopyGenJournalParameters: Record "Copy Gen. Journal Parameters"; var GenJournalLine: Record "Gen. Journal Line") (integration): Integration event raised after successfully inserting a copied general journal line into the active batch. Enables post-processing of the newly created journal line or additional field updates.
  • OnAfterGetCopyParameters(var CopyGenJournalParameters: Record "Copy Gen. Journal Parameters"; var Result: Boolean) (integration): Integration event raised after retrieving copy parameters from the user interface. Allows modification of copy parameters or overriding the user’s parameter selection result.
  • OnCheckIfCanBeCopiedOnBeforeSkipValidationOrError(PostedGenJournalLine: Record "Posted Gen. Journal Line"; var ConfirmHandled: Boolean; var ConfirmResponse: Boolean) + BC28 (integration): Integration event raised before confirming whether to skip validation when no G/L Register is found. Provides extensibility for handling the confirmation or overriding the default behavior.

Procedures

  • CopyToGenJournal(var PostedGenJournalLine: Record "Posted Gen. Journal Line"): Copies posted general journal lines to an active general journal batch for reprocessing or correction. Validates posted lines can be copied and prompts user for copy parameters before creating new journal lines.
  • CopyGLRegister(var SrcPostedGenJournalLine: Record "Posted Gen. Journal Line"): Copies complete G/L registers (all posted lines from specific register numbers) to active general journal batches. Handles bulk copying of entire posting transactions organized by G/L register with validation and parameter setup.

Plus 8 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.

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: "Copy Gen. Journal Mgt."), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources