{"title":"Codeunit 5851 Invt. Doc.-Post Shipment, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5851-invt-doc-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":5851,"name":"Invt. Doc.-Post Shipment","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5851-invt-doc-post-shipment/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5851-invt-doc-post-shipment/source/","path":"src/Layers/W1/BaseApp/Inventory/Document/InvtDocPostShipment.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:5850":{"name":"Invt. Document Header","url":"https://jonas-paprotka.de/ref/table/5850-invt-document-header/"},"codeunit:9070":{"name":"Document Errors Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/9070-document-errors-mgt/"},"codeunit:5855":{"name":"Release Invt. Document","url":"https://jonas-paprotka.de/ref/codeunit/5855-release-invt-document/"},"table:313":{"name":"Inventory Setup","url":"https://jonas-paprotka.de/ref/table/313-inventory-setup/"},"codeunit:310":{"name":"No. Series","url":"https://jonas-paprotka.de/ref/codeunit/310-no-series/"},"table:17":{"name":"G/L Entry","url":"https://jonas-paprotka.de/ref/table/17-g-l-entry/"},"table:5854":{"name":"Invt. Shipment Header","url":"https://jonas-paprotka.de/ref/table/5854-invt-shipment-header/"},"codeunit:447":{"name":"Record Link Management","url":"https://jonas-paprotka.de/ref/codeunit/447-record-link-management/"},"table:5855":{"name":"Invt. Shipment Line","url":"https://jonas-paprotka.de/ref/table/5855-invt-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/"},"codeunit:410":{"name":"Update Analysis View","url":"https://jonas-paprotka.de/ref/codeunit/410-update-analysis-view/"},"codeunit:7150":{"name":"Update Item Analysis View","url":"https://jonas-paprotka.de/ref/codeunit/7150-update-item-analysis-view/"},"codeunit:5854":{"name":"Invt. Doc. Line-Reserve","url":"https://jonas-paprotka.de/ref/codeunit/5854-invt-doc-line-reserve/"},"table:5748":{"name":"Inventory Comment Line","url":"https://jonas-paprotka.de/ref/table/5748-inventory-comment-line/"},"codeunit:408":{"name":"DimensionManagement","url":"https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/"},"table:6508":{"name":"Value Entry Relation","url":"https://jonas-paprotka.de/ref/table/6508-value-entry-relation/"},"table:14":{"name":"Location","url":"https://jonas-paprotka.de/ref/table/14-location/"},"codeunit:7302":{"name":"WMS Management","url":"https://jonas-paprotka.de/ref/codeunit/7302-wms-management/"},"codeunit:6500":{"name":"Item Tracking Management","url":"https://jonas-paprotka.de/ref/codeunit/6500-item-tracking-management/"},"codeunit:7301":{"name":"Whse. Jnl.-Register Line","url":"https://jonas-paprotka.de/ref/codeunit/7301-whse-jnl-register-line/"}},"procs":[{"name":"OnRun","line":37,"kind":"trigger","steps":[[53,"event","OnBeforeOnRun",0],[58,"ext","table",5850,"SetHideValidationDialog",1],[60,"call","CheckInvtDocumentHeaderMandatoryFields",1],[62,"call","CheckDim",0],[64,"call","SetInvtDocumentLineFiltersFromDocument",2],[66,"ext","codeunit",9070,"GetNothingToPostErrorMsg",0],[68,"event","OnRunOnAfterCheckLocation",0],[85,"run","codeunit",5855],[87,"ext","table",313,"UseLegacyPosting",0],[90,"ext","codeunit",310,"GetNextNo",2],[91,"write",5850,"Modify"],[95,"event","OnRunOnAfterSetStatusReleased",0],[100,"ext","table",313,"UseLegacyPosting",0],[102,"ext","table",17,"GetLastEntryNo",0],[107,"event","OnRunOnAfterInvtShptHeaderInit",0],[121,"ext","codeunit",310,"GetNextNo",2],[128,"event","OnRunOnBeforeInvtShptHeaderInsert",0],[129,"write",5854,"Insert"],[130,"event","OnRunOnAfterInvtShptHeaderInsert",0],[133,"call","CopyCommentLines",4],[137,"ext","codeunit",447,"CopyLinks",2],[143,"event","OnRunOnBeforeInvtDocLineFind",0],[146,"ext","table",313,"UseLegacyPosting",0],[166,"event","OnRunOnAfterInvtShptLineInit",0],[209,"event","OnRunOnBeforeInvtShptLineInsert",0],[210,"write",5855,"Insert"],[211,"event","OnRunOnAfterInvtShptLineInsert",0],[213,"call","PostItemJnlLine",2],[214,"ext","codeunit",22,"CollectValueEntryRelation",2],[214,"ext","table",5855,"RowID1",0],[218,"ext","codeunit",22,"PostDeferredValueEntriesToGL",1],[220,"event","OnRunOnAfterInvtDocPost",0],[222,"ext","codeunit",5894,"MakeAutomaticInventoryAdjustment",1],[227,"write",5850,"Delete",1],[229,"call","InsertValueEntryRelation",0],[230,"event","OnRunOnBeforeCommitPostInvtShptDoc",0],[233,"event","OnRunOnAfterCommitPostInvtShptDoc",0],[237,"ext","codeunit",410,"UpdateAll",2],[238,"ext","codeunit",7150,"UpdateAll",2],[241,"event","OnAfterOnRun",0]]},{"name":"CheckInvtDocumentHeaderMandatoryFields","line":272,"kind":"procedure","access":"local","params":1,"steps":[[274,"event","OnBeforeCheckInvtDocumentHeaderMandatoryFields",0],[279,"event","OnAfterCheckInvtDocumentHeaderMandatoryFields",0]]},{"name":"SetInvtDocumentLineFiltersFromDocument","line":282,"kind":"procedure","access":"local","params":2,"steps":[[289,"event","OnAfterSetInvtDocumentLineFiltersFromDocument",0]]},{"name":"PostItemJnlLine","line":292,"kind":"procedure","access":"local","params":2,"steps":[[300,"event","OnBeforePostItemJnlLine",1],[305,"event","OnPostItemJnlLineOnAfterItemJnlLineInit",0],[319,"call","FillItemJournalLineQtyFromInvtShipmentLine",3],[341,"event","OnPostItemJnlLineOnBeforeTransferInvtDocToItemJnlLine",0],[342,"ext","codeunit",5854,"TransferInvtDocToItemJnlLine",3],[346,"event","OnPostItemJnlLineOnBeforeItemJnlPostLineRunWithCheck",0],[347,"ext","codeunit",22,"RunWithCheck",1],[349,"ext","codeunit",22,"CollectTrackingSpecification",1],[350,"call","PostWhseJnlLine",4],[352,"event","OnAfterPostItemJnlLine",0]]},{"name":"FillItemJournalLineQtyFromInvtShipmentLine","line":355,"kind":"procedure","access":"local","params":3,"steps":[[370,"event","OnAfterFillItemJournalLineQtyFromInvtShipmentLine",0]]},{"name":"CopyCommentLines","line":373,"kind":"procedure","access":"local","params":4,"steps":[[385,"write",5748,"Insert"]]},{"name":"CheckDim","line":389,"kind":"procedure","access":"local","params":0,"steps":[[392,"call","CheckDimComb",2],[393,"call","CheckDimValuePosting",2],[398,"call","CheckDimComb",2],[399,"call","CheckDimValuePosting",2]]},{"name":"CheckDimComb","line":403,"kind":"procedure","access":"local","params":2,"steps":[[406,"ext","codeunit",408,"CheckDimIDComb",1],[407,"ext","codeunit",408,"GetDimCombErr",0],[409,"ext","codeunit",408,"CheckDimIDComb",1],[410,"ext","codeunit",408,"GetDimCombErr",0]]},{"name":"CheckDimValuePosting","line":413,"kind":"procedure","access":"local","params":2,"steps":[[421,"ext","codeunit",408,"CheckDimValuePosting",3],[422,"ext","codeunit",408,"GetDimValuePostingErr",0],[425,"ext","codeunit",408,"CheckDimValuePosting",3],[426,"ext","codeunit",408,"GetDimValuePostingErr",0]]},{"name":"InsertValueEntryRelation","line":439,"kind":"procedure","access":"local","params":0,"steps":[[447,"write",6508,"Insert"],[449,"write",6508,"DeleteAll"]]},{"name":"GetLocation","line":453,"kind":"procedure","access":"local","params":1,"steps":[[456,"ext","table",14,"GetLocationSetup",2]]},{"name":"PostWhseJnlLine","line":462,"kind":"procedure","access":"local","params":4,"steps":[[468,"event","OnBeforePostWhseJnlLine",0],[471,"call","GetLocation",1],[473,"ext","codeunit",7302,"CreateWhseJnlLine",4],[475,"ext","codeunit",6500,"SplitWhseJnlLine",4],[478,"ext","codeunit",7302,"CheckWhseJnlLine",4],[479,"run","codeunit",7301]]},{"name":"OnBeforePostValueEntryToGL","line":485,"kind":"procedure","access":"local","params":3,"steps":[[489,"ext","table",313,"UseLegacyPosting",0]]},{"name":"OnSetItemAdjmtPropertiesOnBeforeCheckModifyItem","line":496,"kind":"procedure","access":"local","params":1,"steps":[[498,"ext","table",313,"UseLegacyPosting",0]]}]}