{"title":"Codeunit 5748 Transfer Whse. Post Shipment, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5748-transfer-whse-post-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":5748,"name":"Transfer Whse. Post Shipment","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5748-transfer-whse-post-shipment/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5748-transfer-whse-post-shipment/source/","path":"src/Layers/W1/BaseApp/Inventory/Transfer/TransferWhsePostShipment.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":{"table:5740":{"name":"Transfer Header","url":"https://jonas-paprotka.de/ref/table/5740-transfer-header/"},"table:5741":{"name":"Transfer Line","url":"https://jonas-paprotka.de/ref/table/5741-transfer-line/"},"table:265":{"name":"Document Entry","url":"https://jonas-paprotka.de/ref/table/265-document-entry/"},"codeunit:5704":{"name":"TransferOrder-Post Shipment","url":"https://jonas-paprotka.de/ref/codeunit/5704-transferorder-post-shipment/"},"codeunit:5856":{"name":"TransferOrder-Post Transfer","url":"https://jonas-paprotka.de/ref/codeunit/5856-transferorder-post-transfer/"},"codeunit:5705":{"name":"TransferOrder-Post Receipt","url":"https://jonas-paprotka.de/ref/codeunit/5705-transferorder-post-receipt/"},"table:5744":{"name":"Transfer Shipment Header","url":"https://jonas-paprotka.de/ref/table/5744-transfer-shipment-header/"},"table:5856":{"name":"Direct Trans. Header","url":"https://jonas-paprotka.de/ref/table/5856-direct-trans-header/"}},"procs":[{"name":"OnInitSourceDocumentHeader","line":36,"kind":"procedure","access":"local","params":3,"steps":[[48,"event","OnInitSourceDocumentHeaderOnBeforeTransferHeaderUpdatePostingDate",1],[53,"ext","table",5740,"CalledFromWarehouse",1],[54,"validate",5740,"Posting Date"],[88,"event","OnInitSourceDocumentHeaderOnBeforeTransHeaderModify",0],[90,"write",5740,"Modify"]]},{"name":"OnAfterInitSourceDocumentLines","line":96,"kind":"procedure","access":"local","params":3,"steps":[[100,"call","HandleTransferLine",2]]},{"name":"HandleTransferLine","line":104,"kind":"procedure","access":"local","params":2,"steps":[[112,"event","OnBeforeHandleTransferLine",1],[123,"event","OnAfterFindWhseShptLineForTransLine",1],[127,"call","ValidateTransferLineQtyToShip",2],[134,"event","OnHandleTransferLineOnAfterCalcShouldModifyShipmentDate",0],[147,"validate",5741,"Qty. to Ship"],[148,"validate",5741,"Qty. to Receive"],[151,"event","OnBeforeTransLineModify",0],[153,"write",5741,"Modify"]]},{"name":"ValidateTransferLineQtyToShip","line":157,"kind":"procedure","access":"local","params":2,"steps":[[162,"event","OnBeforeValidateTransferLineQtyToShip",1],[166,"validate",5741,"Qty. to Ship"]]},{"name":"OnPostSourceDocument","line":170,"kind":"procedure","access":"local","params":6,"steps":[[181,"event","OnPostSourceDocumentOnBeforeCaseTransferLine",0],[183,"call","PostSourceTransferDocument",4],[189,"call","TryPostSourceTransferDocument",4],[191,"call","PostSourceTransferDocument",4],[197,"event","OnPostSourceDocumentOnBeforePrintTransferShipment",1],[200,"call","InsertDocumentEntryToPrint",3],[203,"call","InsertDocumentEntryToPrint",3],[207,"event","OnAfterTransferPostShipment",0],[209,"ext","table",5740,"ShouldPostReceiptWithShipment",0],[210,"ext","table",5740,"PostRelatedInboundTransfer",1]]},{"name":"OnBeforeCheckWhseShptLines","line":216,"kind":"procedure","access":"local","params":6,"steps":[[222,"ext","table",5740,"ShouldPostReceiptWithShipment",0]]},{"name":"InsertDocumentEntryToPrint","line":225,"kind":"procedure","access":"local","params":3,"steps":[[231,"write",265,"Insert"]]},{"name":"TryPostSourceTransferDocument","line":234,"kind":"procedure","access":"local","params":4,"steps":[[241,"event","OnBeforeTryPostSourceTransferDocument",1],[243,"ext","table",5740,"ShouldPostReceiptWithShipment",0],[244,"ext","codeunit",5704,"SetWhseShptHeader",1],[245,"ext","codeunit",5704,"SetSuppressCommit",1],[246,"run","codeunit",5704],[253,"call","TryPostDirectTransferDocument",4],[255,"ext","codeunit",5704,"SetWhseShptHeader",1],[256,"ext","codeunit",5704,"SetSuppressCommit",1],[257,"ext","codeunit",5704,"SetPreviewMode",1],[258,"run","codeunit",5704],[265,"event","OnAfterTryPostSourceTransferDocument",0]]},{"name":"TryPostDirectTransferDocument","line":268,"kind":"procedure","access":"local","params":4,"steps":[[275,"ext","codeunit",5856,"SetWhseShptHeader",1],[276,"ext","codeunit",5856,"SetSuppressCommit",1],[277,"run","codeunit",5856],[285,"ext","codeunit",5704,"SetWhseShptHeader",1],[286,"ext","codeunit",5704,"SetSuppressCommit",1],[287,"run","codeunit",5704],[289,"ext","codeunit",5705,"SetSuppressCommit",1],[290,"run","codeunit",5705]]},{"name":"PostSourceTransferDocument","line":299,"kind":"procedure","access":"local","params":4,"steps":[[305,"event","OnBeforePostSourceTransferDocument",1],[311,"call","PostSourceDirectTransferDocument",4],[313,"ext","codeunit",5704,"SetWhseShptHeader",1],[314,"ext","codeunit",5704,"SetSuppressCommit",1],[315,"ext","codeunit",5704,"SetPreviewMode",1],[316,"ext","codeunit",5704,"RunWithCheck",1],[320,"event","OnAfterPostSourceTransferDocument",0]]},{"name":"PostSourceDirectTransferDocument","line":323,"kind":"procedure","access":"local","params":4,"steps":[[329,"ext","codeunit",5856,"SetWhseShptHeader",1],[330,"ext","codeunit",5856,"SetSuppressCommit",1],[331,"ext","codeunit",5856,"RunWithCheck",1],[337,"ext","codeunit",5704,"SetWhseShptHeader",1],[338,"ext","codeunit",5704,"SetSuppressCommit",1],[339,"ext","codeunit",5704,"RunWithCheck",1],[340,"ext","table",5740,"ShouldPostReceiptWithShipment",0],[342,"ext","codeunit",5705,"SetSuppressCommit",1],[343,"run","codeunit",5705]]},{"name":"OnPrintDocuments","line":351,"kind":"procedure","access":"local","params":1,"steps":[[353,"call","PrintDocuments",1]]},{"name":"PrintDocuments","line":356,"kind":"procedure","access":"local","params":1,"steps":[[370,"ext","table",5744,"PrintRecords",1],[382,"ext","table",5856,"PrintRecords",1]]}]}