---
title: "Codeunit 5814 Undo Return Shipment Line"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/5814-undo-return-shipment-line/
type: codeunit
id: 5814
name: "Undo Return Shipment Line"
app: "Base Application"
namespace: Microsoft.Purchases.History
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/5814-undo-return-shipment-line/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 5814 Undo Return Shipment Line

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/5814-undo-return-shipment-line/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Purchases.History |
| Versions | 17-28 |
| Source file | Purchases/History/UndoReturnShipmentLine.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| SetHideDialog | (Boolean) | - | public | 17-28 | - | - |
| UpdateOrderLine | (Record Return Shipment Line) | - | public | 17-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterCode | (var Record Return Shipment Line) | 17-19 | - | - |
| Integration event | OnAfterCopyItemJnlLineFromReturnShpt | (var Record Item Journal Line, Record Return Shipment Header, Record Return Shipment Line) | 17 | - | - |
| Integration event | OnAfterInsertNewReturnShptLine | (var Record Return Shipment Line, Record Posted Whse. Shipment Line, var Boolean, Integer) | 17-28 | - | - |
| Integration event | OnAfterNewReturnShptLineInsert | (var Record Return Shipment Line, Record Return Shipment Line) | 17-28 | - | - |
| Integration event | OnAfterUpdatePurchLine | (var Record Purchase Line, var Record Return Shipment Line) | 17-28 | - | - |
| Integration event | OnAfterReturnShptLineModify | (var Record Return Shipment Line) | 17-19 | - | - |
| Integration event | OnBeforeCheckReturnShptLine | (var Record Return Shipment Line, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeNewReturnShptLineInsert | (var Record Return Shipment Line, Record Return Shipment Line) | 17-28 | - | - |
| Integration event | OnBeforeOnRun | (var Record Return Shipment Line, var Boolean, var Boolean) | 17 | - | - |
| Integration event | OnBeforePostItemJnlLine | (var Record Return Shipment Line, Integer, var Integer, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeReturnShptLineModify | (var Record Return Shipment Line) | 17-19 | - | - |
| Integration event | OnAfterCopyItemJnlLineFromReturnShpt | (var Record Item Journal Line, Record Return Shipment Header, Record Return Shipment Line, var Codeunit Whse. Undo Quantity) | 18-23 | - | - |
| Integration event | OnBeforeOnRun | (var Record Return Shipment Line, var Boolean, var Boolean, var Boolean) | 18-28 | - | - |
| Integration event | OnBeforeUpdateOrderLine | (var Record Return Shipment Line, var Boolean) | 18-28 | - | - |
| Integration event | OnUpdateOrderLineOnBeforeUpdatePurchLine | (var Record Return Shipment Line) | 18 | - | - |
| Integration event | OnBeforeGetCorrectionLineNo | (Record Return Shipment Line, var Integer, var Boolean) | 19-28 | - | - |
| Integration event | OnUpdateOrderLineOnBeforeUpdatePurchLine | (var Record Return Shipment Line, var Record Purchase Line) | 19-28 | - | - |
| Integration event | OnAfterCode | (var Record Return Shipment Line, var Codeunit Undo Posting Management) | 20-28 | - | - |
| Integration event | OnAfterReturnShptLineModify | (var Record Return Shipment Line, var Record Warehouse Journal Line, Integer, var Codeunit Undo Posting Management) | 20-28 | - | - |
| Integration event | OnBeforeCode | (var Record Return Shipment Line, var Codeunit Undo Posting Management) | 20-28 | - | - |
| Integration event | OnBeforeReturnShptLineModify | (var Record Return Shipment Line, var Record Warehouse Journal Line) | 20-28 | - | - |
| Integration event | OnCheckReturnShptLineOnBeforeCollectItemLedgEntries | (Record Return Shipment Line, var Boolean) | 20-28 | - | - |
| Integration event | OnAfterCopyItemJnlLineFromReturnShpt | (var Record Item Journal Line, Record Return Shipment Header, Record Return Shipment Line, var Codeunit Whse. Undo Quantity, var Integer, var Record Warehouse Journal Line, var Integer, var Record Item Ledger Entry, var Record Item Entry Relation, var Boolean) | 24-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.
