---
id: object/codeunit/6484
type: object
title: Codeunit 6484 "Serv. Undo Posting Mgt."
summary: Codeunit 6484 "Serv. Undo Posting Mgt." in Base Application (Microsoft.Inventory). 3 public procedures, 6 events, 2 event subscribers. Introduced in BC25, still in BC30, changed in BC28.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: "25"
  last_changed: "28"
  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: 21e69d6c6ecf74a82933efdfec3396d3df0039706d1c12f3050af85e9aaceb9b
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Service/Inventory/ServUndoPostingMgt.Codeunit.al
    title: src/Layers/W1/BaseApp/Service/Inventory/ServUndoPostingMgt.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: 6484
name: Serv. Undo Posting Mgt.
namespace: Microsoft.Inventory
app: Base Application
extends: null
first_version: "25"
last_version: "30"
present_in:
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 14
  events: 6
  subscribers: 2
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 1
  calls: 3
  called_by: 2
  implements: 0
---

# Codeunit 6484 "Serv. Undo Posting Mgt."

> Codeunit 6484 "Serv. Undo Posting Mgt." in Base Application (Microsoft.Inventory). 3 public procedures, 6 events, 2 event subscribers. Introduced in BC25, still in BC30, changed in BC28.

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

## Events published

- `OnBeforeUpdateServLine(var ServiceLine: Record "Service Line"; var UndoQty: Decimal; var UndoQtyBase: Decimal; var TempUndoneItemLedgEntry: Record "Item Ledger Entry" temporary; var IsHandled: Boolean)` (integration)
- `OnAfterUpdateServLine(var ServLine: Record "Service Line")` (integration)
- `OnBeforeServiceLineCnsmReserveVerifyQuantity(ServiceLine: Record Microsoft.Service.Document."Service Line"; xServiceLine: Record Microsoft.Service.Document."Service Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeServiceLineReserveVerifyQuantity(ServiceLine: Record Microsoft.Service.Document."Service Line"; xServiceLine: Record Microsoft.Service.Document."Service Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeRevertPostedItemTrackingFromServiceLine(ServiceLine: Record Microsoft.Service.Document."Service Line"; var TempUndoneItemLedgEntry: Record "Item Ledger Entry" temporary; var IsHandled: Boolean)` (integration)
- `OnUpdateServLineCnsmOnBeforeServLineModify(var ServiceLine: Record Microsoft.Service.Document."Service Line"; UndoQty: Decimal; UndoQtyBase: Decimal)` (integration)
  - subscribers: [Codeunit 6285 "Sust. Service Subscriber"](../codeunit/6285.md) OnUpdateServLineCnsmOnBeforeServLineModify

## Event subscriptions

- OnShouldCollectSourceType subscribes to Codeunit "Undo Posting Management" OnShouldRevertBaseQtySign
- OnSkipTestWarehouseShipmentLine subscribes to Codeunit "Undo Posting Management" OnSkipTestWarehouseShipmentLine

## Procedures

- `TestServShptLine(ServShptLine: Record "Service Shipment Line")`
- `UpdateServLine(ServLine: Record "Service Line"; UndoQty: Decimal; UndoQtyBase: Decimal; var TempUndoneItemLedgEntry: Record "Item Ledger Entry" temporary)`
- `UpdateServLineCnsm(var ServLine: Record "Service Line"; UndoQty: Decimal; UndoQtyBase: Decimal; var TempUndoneItemLedgEntry: Record "Item Ledger Entry" temporary)`

Plus 3 local procedures.

## 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 5817 "Undo Posting Management"](../codeunit/5817.md) (4 calls: `RevertPostedItemTrackingFromServiceLine → RevertPostedItemTracking`, `TestServShptLine → TestAllTransactions`, `UpdateServLine → UpdateWarehouseRequest`, …)
- [Codeunit 99000842 "Service Line-Reserve"](../codeunit/99000842.md) (2 calls: `ServiceLineCnsmReserveVerifyQuantity → VerifyQuantity`, `ServiceLineReserveVerifyQuantity → VerifyQuantity`)
- [Codeunit 5950 "Service-Calc. Discount"](../codeunit/5950.md) (1 call: `UpdateServLineCnsm → CalculateWithServHeader`)

## Called by

- [Codeunit 5818 "Undo Service Shipment Line"](../codeunit/5818.md) (2 calls: `CheckServShptLine → TestServShptLine`, `UpdateOrderLine → UpdateServLine`)
- [Codeunit 5819 "Undo Service Consumption Line"](../codeunit/5819.md) (2 calls: `CheckServShptLine → TestServShptLine`, `UpdateOrderLine → UpdateServLineCnsm`)

## Across versions

- Present in: BC25-30
- Changed (declaration) in: BC28

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: "Serv. Undo Posting Mgt.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
