---
title: "Codeunit 181 Copy Gen. Journal Mgt., extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/points/
object: https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 181 Copy Gen. Journal Mgt., extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/points/

9 procedures and triggers with a step in src/Layers/W1/BaseApp/Finance/GeneralLedger/Journal/CopyGenJournalMgt.Codeunit.al, in source order, read from the text, not from a run.

## CopyToGenJournal

[Line 38](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L38).

- [45](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L45) calls `CheckIfCanBeCopied`
- [47](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L47) calls `GetCopyParameters`
- [52](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L52) calls `InsertGenJournalLine`
- [55](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L55) calls `ShowFinishMessage`

## CopyGLRegister

[Line 63](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L63).

- [75](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L75) writes [Table 45 G/L Register](https://jonas-paprotka.de/ref/table/45-g-l-register/) Insert
- [87](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L87) writes [Table 181 Posted Gen. Journal Line](https://jonas-paprotka.de/ref/table/181-posted-gen-journal-line/) Insert
- [91](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L91) calls `CopyToGenJournal`

## InsertGenJournalLine

[Line 94](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L94), local.

- [98](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L98) raises `OnBeforeInsertGenJournalLine`
- [105](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L105) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Posting Date`
- [108](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L108) calls [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `GetNewLineNo`
- [111](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L111) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Document Type`
- [112](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L112) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Amount`
- [114](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L114) writes [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) Insert(true)
- [116](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L116) raises `OnAfterInsertGenJournalLine`

## GetCopyParameters

[Line 119](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L119), local.

- [124](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L124) calls `PrepareCopyGenJournalParameters`
- [126](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L126) calls [Page 184 Copy Gen. Journal Parameters](https://jonas-paprotka.de/ref/page/184-copy-gen-journal-parameters/) `SetCopyParameters`
- [130](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L130) calls [Page 184 Copy Gen. Journal Parameters](https://jonas-paprotka.de/ref/page/184-copy-gen-journal-parameters/) `GetCopyParameters`
- [136](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L136) raises `OnAfterGetCopyParameters`

## ShowFinishMessage

[Line 139](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L139), local.

- [145](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L145) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponse`
- [147](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L147) calls [Codeunit 230 GenJnlManagement](https://jonas-paprotka.de/ref/codeunit/230-genjnlmanagement/) `TemplateSelectionFromBatch`

## CheckIfCanBeCopied

[Line 151](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L151), local.

- [163](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L163) calls `CheckCustomerEntries`
- [164](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L164) calls `CheckVendorEntries`
- [168](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L168) raises `OnCheckIfCanBeCopiedOnBeforeSkipValidationOrError`
- [173](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L173) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponseOrDefault`
- [178](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L178) raises `OnAfterCheckIfCanBeCopied`

## CheckCustomerEntries

[Line 181](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L181), local.

- [189](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L189) calls `ShowCanBeCopiedError`

## CheckVendorEntries

[Line 192](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L192), local.

- [200](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L200) calls `ShowCanBeCopiedError`

## PrepareCopyGenJournalParameters

[Line 208](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L208), local.

- [219](https://jonas-paprotka.de/ref/codeunit/181-copy-gen-journal-mgt/source/#L219) writes [Table 232 Gen. Journal Batch](https://jonas-paprotka.de/ref/table/232-gen-journal-batch/) Insert

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
