---
title: "Report 1131 Cost Allocation, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/report/1131-cost-allocation/points/
object: https://jonas-paprotka.de/ref/report/1131-cost-allocation/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/report/1131-cost-allocation/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/"
---

# Report 1131 Cost Allocation, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/report/1131-cost-allocation/points/

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

## CostAllocationTarget.OnPostDataItem

[Line 51](https://jonas-paprotka.de/ref/report/1131-cost-allocation/source/#L51), trigger.

- [54](https://jonas-paprotka.de/ref/report/1131-cost-allocation/source/#L54) calls `ShowAllocations`

## Cost Allocation Target.OnAfterGetRecord

[Line 153](https://jonas-paprotka.de/ref/report/1131-cost-allocation/source/#L153), trigger.

- [186](https://jonas-paprotka.de/ref/report/1131-cost-allocation/source/#L186) calls `WriteJournalLine`

## Cost Allocation Target.OnPostDataItem

[Line 190](https://jonas-paprotka.de/ref/report/1131-cost-allocation/source/#L190), trigger.

- [197](https://jonas-paprotka.de/ref/report/1131-cost-allocation/source/#L197) calls `WriteJournalLine`
- [202](https://jonas-paprotka.de/ref/report/1131-cost-allocation/source/#L202) writes [Table 1108 Cost Accounting Setup](https://jonas-paprotka.de/ref/table/1108-cost-accounting-setup/) Modify

## Cost Allocation Target.OnAfterGetRecord

[Line 224](https://jonas-paprotka.de/ref/report/1131-cost-allocation/source/#L224), trigger.

- [228](https://jonas-paprotka.de/ref/report/1131-cost-allocation/source/#L228) calls `PostCostJournalLines`

## Cost Allocation Target.OnPostDataItem

[Line 240](https://jonas-paprotka.de/ref/report/1131-cost-allocation/source/#L240), trigger.

- [246](https://jonas-paprotka.de/ref/report/1131-cost-allocation/source/#L246) calls `PostCostJournalLines`

## OnInitReport

[Line 363](https://jonas-paprotka.de/ref/report/1131-cost-allocation/source/#L363), trigger.

- [365](https://jonas-paprotka.de/ref/report/1131-cost-allocation/source/#L365) calls `InitializeRequest`

## ShowAllocations

[Line 434](https://jonas-paprotka.de/ref/report/1131-cost-allocation/source/#L434), local.

- [452](https://jonas-paprotka.de/ref/report/1131-cost-allocation/source/#L452) calls [Report 1129 Cost Allocations](https://jonas-paprotka.de/ref/report/1129-cost-allocations/) `InitializeRequest`

## WriteJournalLine

[Line 457](https://jonas-paprotka.de/ref/report/1131-cost-allocation/source/#L457), local.

- [489](https://jonas-paprotka.de/ref/report/1131-cost-allocation/source/#L489) raises `OnWriteJournalLineOnBeforeInsertTempCostJournalLine`
- [490](https://jonas-paprotka.de/ref/report/1131-cost-allocation/source/#L490) writes [Table 1101 Cost Journal Line](https://jonas-paprotka.de/ref/table/1101-cost-journal-line/) Insert

## PostCostJournalLines

[Line 502](https://jonas-paprotka.de/ref/report/1131-cost-allocation/source/#L502), local.

- [520](https://jonas-paprotka.de/ref/report/1131-cost-allocation/source/#L520) calls [Codeunit 1102 CA Jnl.-Post Line](https://jonas-paprotka.de/ref/codeunit/1102-ca-jnl-post-line/) `RunWithCheck`
- [522](https://jonas-paprotka.de/ref/report/1131-cost-allocation/source/#L522) writes [Table 1101 Cost Journal Line](https://jonas-paprotka.de/ref/table/1101-cost-journal-line/) DeleteAll

## Source

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

JOP-AL, 2026-11-20.
