---
title: "Codeunit 2679 Purchase Alloc. Acc. Mgt."
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/2679-purchase-alloc-acc-mgt/
type: codeunit
id: 2679
name: "Purchase Alloc. Acc. Mgt."
app: "Base Application"
namespace: Microsoft.Finance.AllocationAccount.Purchase
versions: "23-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/2679-purchase-alloc-acc-mgt/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 2679 Purchase Alloc. Acc. Mgt.

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/2679-purchase-alloc-acc-mgt/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Finance.AllocationAccount.Purchase |
| Versions | 23-28 |
| Source file | Finance/AllocationAccount/Purchase/PurchaseAllocAccMgt.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| GetOrGenerateAllocationLines | (var Record Allocation Line, var Guid) | - | internal | 23-28 | - | - |
| GetOrGenerateAllocationLines | (var Record Allocation Line, var Guid, var Decimal, var Date) | - | internal | 23-28 | - | - |
| LoadManualAllocationLines | (var Record Purchase Line, var Record Allocation Line) | - | internal | 23-28 | - | - |
| CreateLinesFromAllocationAccountLine | (var Record Purchase Line) | - | public | 23-28 | - | - |
| VerifyAllocationAccount | (var Record Allocation Account) | - | internal | 23-28 | - | - |
| VerifySelectedAllocationAccountNo | (var Record Purchase Line) | - | public | 23-28 | - | - |
| TransferDimensionSetID | (var Record Purchase Line, var Record Allocation Line, Boolean) | - | public | 24-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeCreatePurchaseLine | (var Record Purchase Line, var Record Allocation Line, var Record Purchase Line) | 23-28 | - | - |
| Integration event | OnBeforeVerifyPurchaseLine | (var Record Purchase Line) | 23-28 | - | - |
| Integration event | OnLoadManualAllocationLinesOnBeforeInsertAllocationLine | (var Record Alloc. Acc. Manual Override, var Record Allocation Line) | 27-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
