---
title: "Codeunit 1102 CA Jnl.-Post Line, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/points/
object: https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/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 1102 CA Jnl.-Post Line, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/points/

9 procedures and triggers with a step in src/Layers/W1/BaseApp/CostAccounting/Posting/CAJnlPostLine.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 24](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L24), trigger.

- [27](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L27) calls `RunWithCheck`

## RunWithCheck

[Line 48](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L48).

- [51](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L51) calls `Code`
- [54](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L54) raises `OnAfterRunWithCheck`

## Code

[Line 57](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L57), local.

- [62](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L62) raises `OnBeforeCode`, IsHandled
- [66](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L66) calls [Table 1101 Cost Journal Line](https://jonas-paprotka.de/ref/table/1101-cost-journal-line/) `EmptyLine`
- [69](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L69) calls [Codeunit 1101 CA Jnl.-Check Line](https://jonas-paprotka.de/ref/codeunit/1101-ca-jnl-check-line/) `RunCheck`
- [76](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L76) calls [Table 1109 Cost Budget Entry](https://jonas-paprotka.de/ref/table/1109-cost-budget-entry/) `GetLastEntryNo`
- [81](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L81) calls [Table 1104 Cost Entry](https://jonas-paprotka.de/ref/table/1104-cost-entry/) `GetLastEntryNo`
- [83](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L83) calls `PostLine`

## PostLine

[Line 86](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L86), local.

- [90](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L90) calls `InsertBudgetEntries`
- [93](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L93) calls `InsertBudgetEntries`
- [96](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L96) calls `InsertCostEntries`
- [99](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L99) calls `InsertCostEntries`

## CreateCostRegister

[Line 103](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L103), local.

- [142](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L142) raises `OnCreateCostRegisterOnBeforeInsert`
- [143](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L143) writes [Table 1105 Cost Register](https://jonas-paprotka.de/ref/table/1105-cost-register/) Insert
- [151](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L151) raises `OnCreateCostRegisterOnBeforeModify`
- [152](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L152) writes [Table 1105 Cost Register](https://jonas-paprotka.de/ref/table/1105-cost-register/) Modify

## CreateCostBudgetRegister

[Line 156](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L156), local.

- [183](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L183) writes [Table 1111 Cost Budget Register](https://jonas-paprotka.de/ref/table/1111-cost-budget-register/) Insert
- [189](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L189) writes [Table 1111 Cost Budget Register](https://jonas-paprotka.de/ref/table/1111-cost-budget-register/) Modify

## InsertCostEntries

[Line 192](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L192), local.

- [214](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L214) calls `CalcAddCurrAmount`
- [220](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L220) calls `CalcAddCurrAmount`
- [236](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L236) raises `OnBeforeCostEntryInsert`
- [237](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L237) writes [Table 1104 Cost Entry](https://jonas-paprotka.de/ref/table/1104-cost-entry/) Insert
- [238](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L238) raises `OnAfterCostEntryInsert`
- [241](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L241) calls `CreateCostRegister`

## InsertBudgetEntries

[Line 245](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L245), local.

- [263](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L263) raises `OnBeforeCostBudgetEntryInsert`
- [264](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L264) writes [Table 1109 Cost Budget Entry](https://jonas-paprotka.de/ref/table/1109-cost-budget-entry/) Insert
- [265](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L265) raises `OnAfterCostBudgetEntryInsert`
- [266](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L266) calls `CreateCostBudgetRegister`

## CalcAddCurrAmount

[Line 272](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L272), local.

- [277](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L277) calls `GetAddCurrency`
- [280](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L280) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmtLCYToFCY`
- [281](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/source/#L281) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeRate`

## Source

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

JOP-AL, 2026-11-20.
