{"title":"Codeunit 9030 Undo Transfer Shipment, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/9030-undo-transfer-shipment/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":9030,"name":"Undo Transfer Shipment","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/9030-undo-transfer-shipment/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/9030-undo-transfer-shipment/source/","path":"src/Layers/W1/BaseApp/Inventory/Transfer/UndoTransferShipment.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"codeunit:7150":{"name":"Update Item Analysis View","url":"https://jonas-paprotka.de/ref/codeunit/7150-update-item-analysis-view/"},"table:32":{"name":"Item Ledger Entry","url":"https://jonas-paprotka.de/ref/table/32-item-ledger-entry/"},"table:6507":{"name":"Item Entry Relation","url":"https://jonas-paprotka.de/ref/table/6507-item-entry-relation/"},"codeunit:7320":{"name":"Whse. Undo Quantity","url":"https://jonas-paprotka.de/ref/codeunit/7320-whse-undo-quantity/"},"codeunit:5817":{"name":"Undo Posting Management","url":"https://jonas-paprotka.de/ref/codeunit/5817-undo-posting-management/"},"table:5745":{"name":"Transfer Shipment Line","url":"https://jonas-paprotka.de/ref/table/5745-transfer-shipment-line/"},"codeunit:22":{"name":"Item Jnl.-Post Line","url":"https://jonas-paprotka.de/ref/codeunit/22-item-jnl-post-line/"},"codeunit:5894":{"name":"Inventory Adjustment Handler","url":"https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/"}},"procs":[{"name":"OnRun","line":28,"kind":"trigger","steps":[[34,"event","OnBeforeOnRun",1],[43,"call","Code",0],[44,"ext","codeunit",7150,"UpdateAll",2]]},{"name":"Code","line":74,"kind":"procedure","access":"local","params":0,"steps":[[89,"event","OnCodeOnAfterTransShptLineSetFilters",0],[97,"call","CheckTransferShptLine",1],[102,"event","OnCodeOnBeforeUndoLoop",0],[113,"write",32,"DeleteAll"],[116,"write",6507,"DeleteAll"],[122,"ext","codeunit",7320,"FindPostedWhseShptLine",7],[127,"ext","codeunit",5817,"UpdateDerivedTransferLine",2],[130,"call","PostItemJnlLine",2],[131,"call","InsertNewShipmentLine",3],[132,"event","OnAfterInsertNewShipmentLine",0],[135,"ext","codeunit",7320,"UndoPostedWhseShptLine",1],[138,"ext","codeunit",7320,"PostTempWhseJnlLineCache",2],[140,"event","OnCodeOnAfterPostTempWhseJnlLineCache",0],[142,"call","UpdateOrderLine",1],[144,"ext","codeunit",7320,"UpdateShptSourceDocLines",1],[147,"event","OnBeforeModifyTransShptLine",0],[148,"write",5745,"Modify"],[152,"call","MakeInventoryAdjustment",0],[153,"event","OnAfterCode",0]]},{"name":"CheckTransferShptLine","line":156,"kind":"procedure","access":"local","params":1,"steps":[[163,"ext","codeunit",5817,"TestTransferShptLine",1],[165,"call","NoItemLedgerEntriesCheckIsNeeded",1],[168,"ext","codeunit",5817,"CollectItemLedgEntries",6],[170,"ext","codeunit",5817,"CheckItemLedgEntries",3]]},{"name":"GetCorrectionLineNo","line":173,"kind":"procedure","params":1,"steps":[[180,"event","OnBeforeGetCorrectionLineNo",1],[194,"event","OnAfterGetCorrectionLineNo",0]]},{"name":"PostItemJnlLine","line":197,"kind":"procedure","access":"local","params":2,"steps":[[207,"call","GetCorrectionLineNo",1],[230,"event","OnAfterCopyItemJnlLineFromTransShpt",0],[232,"ext","codeunit",7320,"InsertTempWhseJnlLine",8],[237,"call","GetShptEntries",2],[238,"ext","table",32,"SetTrackingFilterBlank",0],[243,"call","PostCorrectiveItemLedgEntries",2],[248,"call","PostCorrectiveItemLedgEntries",2],[253,"ext","table",32,"ClearTrackingFilter",0],[255,"call","MoveItemLedgerEntriesToTempRec",2],[260,"ext","codeunit",5817,"PostItemJnlLineAppliedToList",7],[266,"ext","codeunit",5817,"PostItemJnlLineAppliedToList",7]]},{"name":"MoveItemLedgerEntriesToTempRec","line":273,"kind":"procedure","access":"local","params":2,"steps":[[278,"write",32,"Insert"]]},{"name":"PostCorrectiveItemLedgEntries","line":282,"kind":"procedure","access":"local","params":2,"steps":[[286,"event","OnBeforePostCorrectiveItemLedgEntries",1],[297,"event","OnPostCorrectiveItemLedgEntriesOnBeforeRun",0],[298,"run","codeunit",22]]},{"name":"InsertNewShipmentLine","line":302,"kind":"procedure","access":"local","params":3,"steps":[[315,"event","OnBeforeInsertNewTransShptLine",0],[316,"write",5745,"Insert"],[318,"call","InsertItemEntryRelation",3]]},{"name":"UpdateOrderLine","line":321,"kind":"procedure","params":1,"steps":[[327,"event","OnBeforeUpdateOrderLine",1],[332,"ext","codeunit",5817,"UpdateTransLine",4],[336,"event","OnAfterUpdateOrderLine",0]]},{"name":"InsertItemEntryRelation","line":339,"kind":"procedure","access":"local","params":3,"steps":[[346,"ext","table",6507,"TransferFieldsTransShptLine",1],[348,"write",6507,"Insert"]]},{"name":"GetShptEntries","line":352,"kind":"procedure","access":"local","params":2,"steps":[[362,"ext","codeunit",22,"MarkAppliedInboundItemEntriesForAdjustment",1]]},{"name":"MakeInventoryAdjustment","line":366,"kind":"procedure","access":"local","params":0,"steps":[[373,"ext","codeunit",5894,"SetJobUpdateProperties",1],[374,"ext","codeunit",5894,"MakeInventoryAdjustment",2]]},{"name":"NoItemLedgerEntriesCheckIsNeeded","line":378,"kind":"procedure","access":"local","params":1,"steps":[[380,"event","OnNoItemLedgerEntriesCheckIsNeeded",0]]}]}