---
id: object/codeunit/9030
type: object
title: Codeunit 9030 "Undo Transfer Shipment"
summary: Codeunit 9030 "Undo Transfer Shipment" in Base Application (Microsoft.Inventory.Transfer). 3 public procedures, 16 events. Present since at least BC23, still in BC30, changed in BC24-25, BC28.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  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: 007cbe6874de77c0430e99911345bba127b1c149ee8ff1fd68565c04c345c114
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Inventory/Transfer/UndoTransferShipment.Codeunit.al
    title: src/Layers/W1/BaseApp/Inventory/Transfer/UndoTransferShipment.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/10005
object_type: codeunit
object_id: 9030
name: Undo Transfer Shipment
namespace: Microsoft.Inventory.Transfer
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "25"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 29
  events: 16
  subscribers: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 2
  calls: 5
  called_by: 1
  implements: 0
---

# Codeunit 9030 "Undo Transfer Shipment"

> Codeunit 9030 "Undo Transfer Shipment" in Base Application (Microsoft.Inventory.Transfer). 3 public procedures, 16 events. Present since at least BC23, still in BC30, changed in BC24-25, BC28.

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

## Properties

| Property | Value |
|---|---|
| TableNo | Transfer Shipment Line |
| Permissions | TableData "Transfer Line" = rimd, TableData "Transfer Shipment Line" = rimd, TableData "Item Application Entry" = rmd, TableData "Item Entry Relation" = ri |

## Events published

- `OnBeforeOnRun(var TransferShipmentLine: Record "Transfer Shipment Line"; var IsHandled: Boolean; var HideDialog: Boolean)` (integration)
- `OnCodeOnAfterTransShptLineSetFilters(var TransShptLine: Record "Transfer Shipment Line")` (integration)
- `OnCodeOnBeforeUndoLoop(var TransShptLine: Record "Transfer Shipment Line")` (integration)
- `OnAfterInsertNewShipmentLine(var TransShptLine: Record "Transfer Shipment Line"; PostedWhseShipmentLine: Record "Posted Whse. Shipment Line"; var PostedWhseShptLineFound: Boolean; DocLineNo: Integer)` (integration)
- `OnAfterCode(var TransShptLine: Record "Transfer Shipment Line")` (integration)
- `OnBeforeGetCorrectionLineNo(TransShptLine: Record "Transfer Shipment Line"; var Result: Integer; var IsHandled: Boolean)` (integration)
- `OnAfterGetCorrectionLineNo(TransShptLine: Record "Transfer Shipment Line"; var Result: Integer)` (integration)
- `OnBeforeUpdateOrderLine(var TransShptLine: Record "Transfer Shipment Line"; var IsHandled: Boolean)` (integration)
- `OnAfterUpdateOrderLine(var TransferLine: Record "Transfer Line"; var TransShptLine: Record "Transfer Shipment Line")` (integration)
- `OnBeforeInsertNewTransShptLine(var TransferShipmentLineNew: Record "Transfer Shipment Line"; TransferShipmentLineOld: Record "Transfer Shipment Line")` (integration)
  - subscribers: [Codeunit 20338 "Transfer Shpt Posting Handler"](../codeunit/20338.md) OnAfterInsertNewShipmentLine
- `OnBeforeModifyTransShptLine(var TransferShipmentLine: Record "Transfer Shipment Line")` (integration)
- `OnAfterCopyItemJnlLineFromTransShpt(var ItemJournalLine: Record "Item Journal Line"; TransferShipmentHeader: Record "Transfer Shipment Header"; TransferShipmentLine: Record "Transfer Shipment Line")` (integration)
- `OnPostCorrectiveItemLedgEntriesOnBeforeRun(var ItemJournalLine: Record "Item Journal Line"; var ItemLedgerEntry: Record "Item Ledger Entry")` (integration)
- `OnCodeOnAfterPostTempWhseJnlLineCache(var TransferShipmentLine: Record "Transfer Shipment Line"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var WhseJnlRegisterLine: Codeunit "Whse. Jnl.-Register Line")` (integration)
- `OnBeforePostCorrectiveItemLedgEntries(var ItemJournalLine: Record "Item Journal Line"; var ItemLedgerEntry: Record "Item Ledger Entry"; var IsHandled: Boolean)` (integration)
- `OnNoItemLedgerEntriesCheckIsNeeded(TransShptLine: Record "Transfer Shipment Line"; var NoCheckNeeded: Boolean)` (integration)
  - subscribers: [Codeunit 20541 "Subc. Transfer WIP Posting"](../codeunit/20541.md) HandleWipTransferOnNoItemLedgerEntriesCheckIsNeeded

## Procedures

- `SetHideDialog(NewHideDialog: Boolean)`
- `GetCorrectionLineNo(TransferShptLine: Record "Transfer Shipment Line"): Integer`
- `UpdateOrderLine(TransShptLine: Record "Transfer Shipment Line")`

Plus 10 local procedures.

## Triggers

OnRun

## Relations

- runs on [Table 5745 "Transfer Shipment Line"](../table/5745.md)

## 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) (6 calls: `CheckTransferShptLine → CheckItemLedgEntries`, `CheckTransferShptLine → CollectItemLedgEntries`, `CheckTransferShptLine → TestTransferShptLine`, …)
- [Codeunit 7320 "Whse. Undo Quantity"](../codeunit/7320.md) (5 calls: `Code → FindPostedWhseShptLine`, `Code → PostTempWhseJnlLineCache`, `Code → UndoPostedWhseShptLine`, …)
- [Codeunit 22 "Item Jnl.-Post Line"](../codeunit/22.md) (2 calls: `GetShptEntries → MarkAppliedInboundItemEntriesForAdjustment`, `PostCorrectiveItemLedgEntries → (object)`)
- [Codeunit 5894 "Inventory Adjustment Handler"](../codeunit/5894.md) (2 calls: `MakeInventoryAdjustment → MakeInventoryAdjustment`, `MakeInventoryAdjustment → SetJobUpdateProperties`)
- [Codeunit 7150 "Update Item Analysis View"](../codeunit/7150.md) (1 call: `OnRun → UpdateAll`)

## Called by

- [Page 5744 "Posted Transfer Shpt. Subform"](../page/5744.md) (1 call: `UndoShipmentPosting → (object)`)

## Recent changes

- 2026-08-06 [#10005 Improve error messages when there are no quantities to reverse in shipped/received lines in Sales/Purchase/Transfer](../../changes/bcapps/10005.md) (main, BC30, fix)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24-25, 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: "Undo Transfer Shipment")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
