---
id: object/codeunit/5930
type: object
title: Codeunit 5930 "ServAllocationManagement"
summary: Codeunit 5930 "ServAllocationManagement" in Base Application (Microsoft.Service.Document). 9 public procedures, 7 events. Present since at least BC23, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 53bf761bbebdff8822dcf5b9d33d35a401cae661dde224f0d8d5b28246dd76c2
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Service/Document/ServAllocationManagement.Codeunit.al
    title: src/Layers/W1/BaseApp/Service/Document/ServAllocationManagement.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 5930
name: ServAllocationManagement
namespace: Microsoft.Service.Document
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 16
  events: 7
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 7
  implements: 0
---

# Codeunit 5930 "ServAllocationManagement"

> Codeunit 5930 "ServAllocationManagement" in Base Application (Microsoft.Service.Document). 9 public procedures, 7 events. Present since at least BC23, still in BC30.

Base Application · Microsoft.Service.Document · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Service/Document/ServAllocationManagement.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Permissions | TableData "Service Order Allocation" = rimd |

## Events published

- `OnAfterAllocateDate(var ServOrderAllocation: Record "Service Order Allocation"; var ServHeader: Record "Service Header")` (integration)
- `OnAfterCancelAllocation(var ServOrderAllocation: Record "Service Order Allocation"; var ServHeader: Record "Service Header")` (integration)
- `OnBeforeAllocateDate(DocumentType: Integer; DocumentNo: Code[20]; EntryNo: Integer; ResNo: Code[20]; ResGrNo: Code[20]; CurrentDate: Date; Quantity: Decimal; var IsHandled: Boolean)` (integration)
- `OnBeforeCancelAllocation(var ServOrderAllocation: Record "Service Order Allocation"; var IsHandled: Boolean)` (integration)
- `OnBeforeCreateAllocationEntry(DocumentType: Integer; DocumentNo: Code[20]; ServItemLineNo: Integer; ServItemNo: Code[20]; ServSerialNo: Code[50]; var IsHandled: Boolean)` (integration)
- `OnSplitAllocationOnBeforeServOrderAllocModify(var ServiceOrderAllocation: Record "Service Order Allocation"; var SplitServiceOrderAllocation: Record "Service Order Allocation")` (integration)
- `OnSetServOrderAllocStatusOnBeforeServOrderAlloc2Modify(var ServiceOrderAllocation: Record "Service Order Allocation"; var ServiceOrderAllocation2: Record "Service Order Allocation"; var ServiceHeader: Record "Service Header")` (integration)

## Procedures

- `AllocateDate(DocumentType: Integer; DocumentNo: Code[20]; EntryNo: Integer; ResNo: Code[20]; ResGrNo: Code[20]; CurrentDate: Date; Quantity: Decimal)`
- `CancelAllocation(var ServOrderAlloc: Record "Service Order Allocation")`
- `CreateAllocationEntry(DocumentType: Integer; DocumentNo: Code[20]; ServItemLineNo: Integer; ServItemNo: Code[20]; ServSerialNo: Code[50])`
- `SplitAllocation(var SplitServOrderAlloc: Record "Service Order Allocation")`
- `ResourceQualified(ResourceNo: Code[20]; Type: Enum "Resource Skill Type"; No: Code[20]): Boolean`
- `QualifiedForServiceItemLine(var ServiceItemLine: Record "Service Item Line"; ResourceNo: Code[20]): Boolean`
- `CheckServiceItemLineFinished(var ServHeader: Record "Service Header"; ServiceItemLineNo: Integer)`
- `SetServOrderAllocStatus(var ServHeader: Record "Service Header")`
- `SetServLineAllocStatus(var ServLine: Record "Service Line")`

## Triggers

OnRun

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 27 "Confirm Management"](../codeunit/27.md) (1 call: `SplitAllocation → GetResponseOrDefault`)

## Called by

- [Table 5950 "Service Order Allocation"](../table/5950.md) (3 calls: `OnDelete → CheckServiceItemLineFinished`, `OnInsert → CheckServiceItemLineFinished`, `OnModify → CheckServiceItemLineFinished`)
- [Codeunit 5988 "Serv-Documents Mgt."](../codeunit/5988.md) (2 calls: `PostDocumentLines → SetServLineAllocStatus`, `UpdateDocumentLines → SetServOrderAllocStatus`)
- [Codeunit 5972 "Service Info-Pane Management"](../codeunit/5972.md) (1 call: `CalcNoOfSkilledResources → ResourceQualified`)
- [Page 6023 "Skilled Resource List"](../page/6023.md) (1 call: `OnAfterGetRecord → ResourceQualified`)
- [Page 9229 "Res. Avail. (Service) Matrix"](../page/9229.md) (1 call: `OnAfterGetRecord → QualifiedForServiceItemLine`)
- [Table 5900 "Service Header"](../table/5900.md) (1 call: `OnDelete → SetServOrderAllocStatus`)
- [Table 5901 "Service Item Line"](../table/5901.md) (1 call: `OnInsert → CreateAllocationEntry`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "ServAllocationManagement")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
