---
title: "Codeunit 2678 Sales Alloc. Acc. Mgt."
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/2678-sales-alloc-acc-mgt/
type: codeunit
id: 2678
name: "Sales Alloc. Acc. Mgt."
app: "Base Application"
namespace: Microsoft.Finance.AllocationAccount.Sales
versions: "23-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/2678-sales-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 2678 Sales Alloc. Acc. Mgt.

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

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Finance.AllocationAccount.Sales |
| Versions | 23-28 |
| Source file | Finance/AllocationAccount/Sales/SalesAllocAccMgt.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 Sales Line, var Record Allocation Line) | - | internal | 23-28 | - | - |
| CreateLinesFromAllocationAccountLine | (var Record Sales Line) | - | public | 23-28 | - | - |
| VerifyAllocationAccount | (var Record Allocation Account) | - | internal | 23-28 | - | - |
| VerifySelectedAllocationAccountNo | (var Record Sales Line) | - | public | 23-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeCreateSalesLine | (var Record Sales Line, var Record Allocation Line, var Record Sales Line) | 23-28 | - | - |
| Integration event | OnBeforeVerifySalesLine | (var Record Sales 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.
