{"title":"Codeunit 5818 Undo Service Shipment Line, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5818-undo-service-shipment-line/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":5818,"name":"Undo Service Shipment Line","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5818-undo-service-shipment-line/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5818-undo-service-shipment-line/source/","path":"src/Layers/W1/BaseApp/Service/History/UndoServiceShipmentLine.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:27":{"name":"Confirm Management","url":"https://jonas-paprotka.de/ref/codeunit/27-confirm-management/"},"codeunit:5912":{"name":"ServLedgEntries-Post","url":"https://jonas-paprotka.de/ref/codeunit/5912-servledgentries-post/"},"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/"},"table:5991":{"name":"Service Shipment Line","url":"https://jonas-paprotka.de/ref/table/5991-service-shipment-line/"},"codeunit:6484":{"name":"Serv. Undo Posting Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/6484-serv-undo-posting-mgt/"},"codeunit:5817":{"name":"Undo Posting Management","url":"https://jonas-paprotka.de/ref/codeunit/5817-undo-posting-management/"},"codeunit:22":{"name":"Item Jnl.-Post Line","url":"https://jonas-paprotka.de/ref/codeunit/22-item-jnl-post-line/"},"codeunit:212":{"name":"Res. Jnl.-Post Line","url":"https://jonas-paprotka.de/ref/codeunit/212-res-jnl-post-line/"},"codeunit:6451":{"name":"Serv. Time Sheet Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/6451-serv-time-sheet-mgt/"},"table:5940":{"name":"Service Item","url":"https://jonas-paprotka.de/ref/table/5940-service-item/"},"table:313":{"name":"Inventory Setup","url":"https://jonas-paprotka.de/ref/table/313-inventory-setup/"},"codeunit:5894":{"name":"Inventory Adjustment Handler","url":"https://jonas-paprotka.de/ref/codeunit/5894-inventory-adjustment-handler/"}},"procs":[{"name":"OnRun","line":35,"kind":"trigger","steps":[[42,"event","OnBeforeOnRun",1],[51,"call","CheckComponentsAdjusted",1],[57,"ext","codeunit",27,"GetResponseOrDefault",2],[62,"call","Code",0]]},{"name":"CheckComponentsAdjusted","line":91,"kind":"procedure","access":"local","params":1,"steps":[[99,"event","OnCheckComponentsAdjustedOnAfterLocalServShptLineSetFilters",0]]},{"name":"Code","line":108,"kind":"procedure","access":"local","params":0,"steps":[[128,"call","CheckServShptLine",1],[137,"ext","codeunit",27,"GetResponseOrDefault",2],[141,"ext","codeunit",5912,"InitServiceRegister",2],[146,"write",32,"DeleteAll"],[149,"write",6507,"DeleteAll"],[155,"ext","codeunit",7320,"FindPostedWhseShptLine",7],[160,"call","PostItemJnlLine",1],[162,"call","GetCorrectionLineNo",1],[165,"call","PostResJnlLine",1],[167,"call","InsertNewShipmentLine",2],[168,"event","OnAfterInsertNewShipmentLine",0],[171,"ext","codeunit",7320,"UndoPostedWhseShptLine",1],[173,"ext","codeunit",5912,"ReverseServLedgEntry",1],[175,"ext","codeunit",5912,"ReverseWarrantyEntry",1],[177,"call","UpdateOrderLine",1],[179,"ext","codeunit",7320,"UpdateShptSourceDocLines",1],[182,"call","DeleteServShptLineServItems",1],[189,"event","OnCodeOnBeforeServShptLineModify",0],[190,"write",5991,"Modify"],[191,"event","OnCodeOnAfterServShptLineModify",0],[193,"ext","codeunit",5912,"FinishServiceRegister",2],[195,"call","MakeInventoryAdjustment",0],[197,"ext","codeunit",7320,"PostTempWhseJnlLine",1],[199,"event","OnAfterCode",0]]},{"name":"CheckServShptLine","line":219,"kind":"procedure","access":"local","params":1,"steps":[[225,"event","OnBeforeCheckServShptLine",1],[233,"ext","codeunit",6484,"TestServShptLine",1],[235,"ext","codeunit",5817,"CollectItemLedgEntries",6],[237,"ext","codeunit",5817,"CheckItemLedgEntries",2]]},{"name":"GetCorrectionLineNo","line":241,"kind":"procedure","params":1,"steps":[[248,"event","OnBeforeGetCorrectionLineNo",1],[266,"event","OnAfterGetCorrectionLineNo",0]]},{"name":"PostItemJnlLine","line":269,"kind":"procedure","access":"local","params":1,"steps":[[283,"call","GetCorrectiveShptLineNoStep",2],[304,"event","OnAfterCopyItemJnlLineFromServShpt",0],[306,"ext","codeunit",7320,"InsertTempWhseJnlLine",8],[312,"run","codeunit",22],[313,"event","OnItemJnlPostLineOnAfterItemShptEntryNoOnBeforeExit",0],[316,"ext","codeunit",5817,"CollectItemLedgEntries",6],[319,"ext","codeunit",5817,"PostItemJnlLineAppliedToList",6],[322,"event","OnAfterPostItemJnlLine",0]]},{"name":"InsertNewShipmentLine","line":326,"kind":"procedure","access":"local","params":2,"steps":[[332,"event","OnBeforeInsertNewShipmentLine",1],[339,"call","GetCorrectiveShptLineNoStep",2],[350,"event","OnBeforeNewServiceShptLineInsert",0],[351,"write",5991,"Insert"],[353,"call","InsertItemEntryRelation",2]]},{"name":"UpdateOrderLine","line":356,"kind":"procedure","access":"local","params":1,"steps":[[361,"ext","codeunit",6484,"UpdateServLine",4],[362,"event","OnAfterUpdateOrderLine",0]]},{"name":"InsertItemEntryRelation","line":365,"kind":"procedure","access":"local","params":2,"steps":[[372,"ext","table",5991,"TransferToItemEntryRelation",1],[373,"write",6507,"Insert"]]},{"name":"PostResJnlLine","line":377,"kind":"procedure","access":"local","params":1,"steps":[[415,"event","OnBeforePostResJnlLine",1],[417,"ext","codeunit",212,"RunWithCheck",1],[418,"event","OnPostResJnlLineOnAfterRunWithCheck",0],[420,"ext","codeunit",6451,"CreateTSLineFromServiceShptLine",1]]},{"name":"DeleteServShptLineServItems","line":423,"kind":"procedure","access":"local","params":1,"steps":[[433,"ext","table",5940,"CheckIfCanBeDeleted",0],[434,"write",5940,"Delete",1]]},{"name":"MakeInventoryAdjustment","line":438,"kind":"procedure","access":"local","params":0,"steps":[[444,"ext","table",313,"AutomaticCostAdjmtRequired",0],[445,"ext","codeunit",5894,"SetJobUpdateProperties",1],[446,"ext","codeunit",5894,"MakeInventoryAdjustment",2]]}]}