{"title":"Codeunit 5884 Phys. Invt. Order-Post, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5884-phys-invt-order-post/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":5884,"name":"Phys. Invt. Order-Post","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5884-phys-invt-order-post/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5884-phys-invt-order-post/source/","path":"src/Layers/W1/BaseApp/Inventory/Counting/Document/PhysInvtOrderPost.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:9500":{"name":"Sequence No. Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/9500-sequence-no-mgt/"},"codeunit:310":{"name":"No. Series","url":"https://jonas-paprotka.de/ref/codeunit/310-no-series/"},"table:5875":{"name":"Phys. Invt. Order Header","url":"https://jonas-paprotka.de/ref/table/5875-phys-invt-order-header/"},"table:5876":{"name":"Phys. Invt. Order Line","url":"https://jonas-paprotka.de/ref/table/5876-phys-invt-order-line/"},"codeunit:7380":{"name":"Phys. Invt. Count.-Management","url":"https://jonas-paprotka.de/ref/codeunit/7380-phys-invt-count-management/"},"codeunit:9070":{"name":"Document Errors Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/9070-document-errors-mgt/"},"table:6027":{"name":"Pstd.Exp.Invt.Order.Tracking","url":"https://jonas-paprotka.de/ref/table/6027-pstd-exp-invt-order-tracking/"},"table:5883":{"name":"Phys. Invt. Comment Line","url":"https://jonas-paprotka.de/ref/table/5883-phys-invt-comment-line/"},"codeunit:19":{"name":"Gen. Jnl.-Post Preview","url":"https://jonas-paprotka.de/ref/codeunit/19-gen-jnl-post-preview/"},"codeunit:408":{"name":"DimensionManagement","url":"https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/"},"table:83":{"name":"Item Journal Line","url":"https://jonas-paprotka.de/ref/table/83-item-journal-line/"},"codeunit:5889":{"name":"Phys. Invt. Tracking Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/5889-phys-invt-tracking-mgt/"},"codeunit:22":{"name":"Item Jnl.-Post Line","url":"https://jonas-paprotka.de/ref/codeunit/22-item-jnl-post-line/"},"table:5879":{"name":"Pstd. Phys. Invt. Order Hdr","url":"https://jonas-paprotka.de/ref/table/5879-pstd-phys-invt-order-hdr/"},"table:5880":{"name":"Pstd. Phys. Invt. Order Line","url":"https://jonas-paprotka.de/ref/table/5880-pstd-phys-invt-order-line/"},"table:5881":{"name":"Pstd. Phys. Invt. Record Hdr","url":"https://jonas-paprotka.de/ref/table/5881-pstd-phys-invt-record-hdr/"},"table:5882":{"name":"Pstd. Phys. Invt. Record Line","url":"https://jonas-paprotka.de/ref/table/5882-pstd-phys-invt-record-line/"},"table:5878":{"name":"Phys. Invt. Record Line","url":"https://jonas-paprotka.de/ref/table/5878-phys-invt-record-line/"},"table:5877":{"name":"Phys. Invt. Record Header","url":"https://jonas-paprotka.de/ref/table/5877-phys-invt-record-header/"},"table:336":{"name":"Tracking Specification","url":"https://jonas-paprotka.de/ref/table/336-tracking-specification/"},"table:6507":{"name":"Item Entry Relation","url":"https://jonas-paprotka.de/ref/table/6507-item-entry-relation/"},"table:6026":{"name":"Exp. Invt. Order Tracking","url":"https://jonas-paprotka.de/ref/table/6026-exp-invt-order-tracking/"},"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/"},"codeunit:7302":{"name":"WMS Management","url":"https://jonas-paprotka.de/ref/codeunit/7302-wms-management/"},"table:7311":{"name":"Warehouse Journal Line","url":"https://jonas-paprotka.de/ref/table/7311-warehouse-journal-line/"},"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":[[41,"ext","codeunit",9500,"SetPreviewMode",1],[43,"call","Code",0],[46,"event","OnAfterOnRun",0]]},{"name":"Code","line":90,"kind":"procedure","params":0,"steps":[[99,"event","OnBeforeCode",0],[119,"ext","codeunit",310,"GetNextNo",2],[125,"write",5875,"Modify"],[130,"call","CheckDim",0],[136,"event","OnCodeOnAfterSetFilters",0],[143,"ext","table",5876,"EmptyLine",0],[144,"call","CheckOrderLine",3],[147,"call","IsDifference",0],[148,"call","ThrowDifferenceError",0],[155,"ext","codeunit",7380,"InitTempItemSKUList",0],[156,"ext","codeunit",7380,"AddToTempItemSKUList",4],[158,"ext","codeunit",7380,"UpdateItemSKUListPhysInvtCount",0],[164,"event","OnCodeOnBeforeCheckLinesToPost",1],[167,"ext","codeunit",9070,"GetNothingToPostErrorMsg",0],[174,"call","InsertPostedHeader",1],[182,"call","PostPhysInventoryOrderLine",0],[187,"call","PostPhysInventoryOrderLine",0],[188,"event","OnCodeOnAferPostPhysInventoryOrderLineNonNegative",0],[198,"write",6027,"Insert"],[201,"call","InsertPostedRecordings",2],[209,"call","InsertPostedCommentLine",3],[212,"write",5883,"DeleteAll"],[219,"call","InsertPostedCommentLine",3],[222,"write",5883,"DeleteAll"],[226,"call","MakeInventoryAdjustment",0],[227,"event","OnCodeOnAfterMakeInventoryAdjustment",0],[230,"ext","codeunit",19,"ThrowError",0],[231,"call","FinalizePost",1],[233,"event","OnAfterCode",0]]},{"name":"CheckOrderLine","line":236,"kind":"procedure","access":"local","params":3,"steps":[[241,"ext","table",5876,"CheckLine",0],[244,"event","OnCheckOrderLineOnBeforeTestFieldItemBlocked",1],[252,"event","OnCheckOrderLineOnBeforeTestFieldItemVariantBlocked",1],[258,"event","OnCheckOrderLineOnBeforeGetSamePhysInvtOrderLine",1],[260,"ext","table",5875,"GetSamePhysInvtOrderLine",3]]},{"name":"CheckDim","line":264,"kind":"procedure","access":"local","params":0,"steps":[[267,"call","CheckDimValuePosting",1],[268,"call","CheckDimComb",1],[273,"call","CheckDimComb",1],[274,"call","CheckDimValuePosting",1]]},{"name":"CheckDimComb","line":278,"kind":"procedure","access":"local","params":1,"steps":[[281,"ext","codeunit",408,"CheckDimIDComb",1],[284,"ext","codeunit",408,"GetDimCombErr",0],[287,"ext","codeunit",408,"CheckDimIDComb",1],[290,"ext","codeunit",408,"GetDimCombErr",0]]},{"name":"CheckDimValuePosting","line":293,"kind":"procedure","access":"local","params":1,"steps":[[302,"ext","codeunit",408,"CheckDimValuePosting",3],[305,"ext","codeunit",408,"GetDimValuePostingErr",0]]},{"name":"PostItemJnlLine","line":308,"kind":"procedure","access":"local","params":2,"steps":[[346,"validate",83,"Unit Amount"],[347,"validate",83,"Unit Cost"],[350,"event","OnPostItemJnlLineOnBeforeTransferResEntry",0],[351,"ext","codeunit",5889,"TransferResEntryToItemJnlLine",4],[353,"event","OnBeforeItemJnlPostLine",0],[354,"ext","codeunit",22,"RunWithCheck",1]]},{"name":"InsertPostedHeader","line":357,"kind":"procedure","access":"local","params":1,"steps":[[361,"event","OnBeforeInsertPostedHeader",0],[365,"event","OnInsertPostedHeaderOnAfterTransferfields",0],[379,"event","OnInsertPostedHeaderOnBeforeInsert",1],[381,"write",5879,"Insert"]]},{"name":"InsertPostedLine","line":384,"kind":"procedure","access":"local","params":2,"steps":[[389,"event","OnBeforeInsertPostedLine",1],[395,"write",5880,"Insert"]]},{"name":"InsertPostedCommentLine","line":398,"kind":"procedure","access":"local","params":3,"steps":[[404,"write",5883,"Insert"]]},{"name":"InsertPostedRecordings","line":407,"kind":"procedure","access":"local","params":2,"steps":[[422,"event","OnInsertPostedRecordingsOnBeforeInsertHdr",1],[424,"write",5881,"Insert"],[436,"event","OnInsertPostedRecordingsOnBeforeInsertLine",1],[438,"write",5882,"Insert"],[440,"write",5878,"DeleteAll"],[442,"write",5877,"DeleteAll"]]},{"name":"InsertEntryRelation","line":445,"kind":"procedure","access":"local","params":0,"steps":[[452,"write",336,"DeleteAll"],[456,"ext","codeunit",22,"CollectTrackingSpecification",1],[466,"write",336,"Insert"],[471,"ext","table",6507,"CopyTrackingFromSpec",1],[480,"event","OnInsertEntryRelationOnBeforeInsert",0],[481,"write",6507,"Insert"],[484,"write",336,"DeleteAll"]]},{"name":"FinalizePost","line":487,"kind":"procedure","access":"local","params":1,"steps":[[491,"write",6026,"DeleteAll"],[494,"write",5876,"DeleteAll"],[495,"write",5875,"Delete"]]},{"name":"MakeInventoryAdjustment","line":498,"kind":"procedure","access":"local","params":0,"steps":[[504,"ext","table",313,"AutomaticCostAdjmtRequired",0],[505,"ext","codeunit",5894,"MakeInventoryAdjustment",2]]},{"name":"PostWhseJnlLine","line":508,"kind":"procedure","access":"local","params":4,"steps":[[518,"event","OnBeforePostWhseJnlLine",1],[524,"ext","codeunit",7302,"CreateWhseJnlLine",4],[525,"ext","table",7311,"SetSource",5],[533,"ext","codeunit",6500,"SplitWhseJnlLine",4],[536,"event","OnPostWhseJnlLineOnBeforeCheckWhseJnlLine",0],[537,"ext","codeunit",7302,"CheckWhseJnlLine",4],[538,"run","codeunit",7301]]},{"name":"PostPhysInventoryOrderLine","line":544,"kind":"procedure","access":"local","params":0,"steps":[[552,"call","InsertPostedLine",2],[555,"event","OnPostPhysInventoryOrderLineOnAfterInsertPostedLine",1],[557,"ext","table",5876,"EmptyLine",0],[564,"call","ChecLocationDirectedPutAwayAndPick",0],[568,"event","OnPostPhysInventoryOrderLineOnBeforePostPositiveItemJnlLine",0],[573,"call","PostItemJnlLine",2],[576,"call","InsertEntryRelation",0],[578,"call","PostWhseJnlLine",4],[584,"call","PostItemJnlLine",2],[587,"call","InsertEntryRelation",0],[589,"call","PostWhseJnlLine",4]]},{"name":"ChecLocationDirectedPutAwayAndPick","line":595,"kind":"procedure","access":"local","params":0,"steps":[[600,"event","OnBeforeChecLocationDirectedPutAwayAndPick",1]]},{"name":"IsDifference","line":607,"kind":"procedure","access":"local","params":0,"steps":[[616,"event","OnAfterIsDifference",0]]},{"name":"ThrowDifferenceError","line":619,"kind":"procedure","access":"local","params":0,"steps":[[633,"event","OnThrowDifferenceError",0]]}]}