{"title":"Codeunit 5406 Output Jnl.-Expl. Route, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5406-output-jnl-expl-route/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":5406,"name":"Output Jnl.-Expl. Route","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5406-output-jnl-expl-route/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5406-output-jnl-expl-route/source/","path":"src/Layers/W1/BaseApp/Manufacturing/Journal/OutputJnlExplRoute.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:99000835":{"name":"Item Jnl. Line-Reserve","url":"https://jonas-paprotka.de/ref/codeunit/99000835-item-jnl-line-reserve/"},"codeunit:99000758":{"name":"Mfg. Cost Calculation Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/99000758-mfg-cost-calculation-mgt/"},"codeunit:6500":{"name":"Item Tracking Management","url":"https://jonas-paprotka.de/ref/codeunit/6500-item-tracking-management/"},"table:5406":{"name":"Prod. Order Line","url":"https://jonas-paprotka.de/ref/table/5406-prod-order-line/"},"table:83":{"name":"Item Journal Line","url":"https://jonas-paprotka.de/ref/table/83-item-journal-line/"},"codeunit:408":{"name":"DimensionManagement","url":"https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/"},"table:337":{"name":"Reservation Entry","url":"https://jonas-paprotka.de/ref/table/337-reservation-entry/"}},"procs":[{"name":"OnRun","line":21,"kind":"trigger","steps":[[37,"event","OnBeforeOnRun",1],[44,"ext","codeunit",99000835,"DeleteLineConfirm",1],[65,"event","OnRunOnAfterProdOrderRtngLineSetFiltersBeforeLoop",0],[79,"event","OnRunOnAfterItemJnlLineSetFilters",0],[98,"event","OnRunOnAfterProdOrderRtngLineSetFilters",0],[102,"ext","codeunit",99000758,"CalcQtyAdjdForRoutingScrap",3],[106,"ext","codeunit",99000758,"CalcActOutputQtyBase",2],[107,"event","OnAfterCalcBaseQtyToPost",0],[111,"event","OnBeforeInsertOutputJnlLineWithRtngLine",0],[113,"call","ShouldSplitLinesForSNTracking",3],[114,"call","InsertOutputJnlLine"],[128,"event","OnRunOnAfterInsertOutputJnlLineWithRtngLine",0],[130,"ext","codeunit",6500,"CopyItemTracking",3],[130,"ext","table",5406,"RowID1",0],[130,"ext","table",83,"RowID1",0],[131,"event","OnAfterCopyItemTracking",0],[134,"event","OnRunOnProdRtngLineLoopEnd",0],[138,"call","ShouldSplitLinesForSNTracking",3],[140,"event","OnBeforeInsertOutputJnlLineWithoutRtngLine",1],[142,"call","InsertOutputJnlLine"],[155,"event","OnAfterInsertOutputJnlLineWithoutRtngLine",0],[157,"ext","codeunit",6500,"CopyItemTracking",3],[157,"ext","table",5406,"RowID1",0],[157,"ext","table",83,"RowID1",0],[158,"event","OnAfterCopyItemTracking",0],[163,"ext","codeunit",99000835,"DeleteLine",1],[165,"event","OnBeforeDeleteItemJnlLine",0]]},{"name":"InsertOutputJnlLine","line":177,"kind":"procedure","access":"local","params":16,"steps":[[190,"call","CollectProdOrderTracking",2],[196,"validate",83,"Entry Type"],[197,"validate",83,"Order Line No."],[198,"validate",83,"Item No."],[199,"validate",83,"Variant Code"],[200,"validate",83,"Location Code"],[202,"validate",83,"Bin Code"],[203,"validate",83,"Routing No."],[204,"validate",83,"Routing Reference No."],[205,"validate",83,"Operation No."],[206,"validate",83,"Unit of Measure Code"],[207,"validate",83,"Setup Time"],[208,"validate",83,"Run Time"],[210,"ext","table",83,"CheckWhse",2],[211,"ext","table",83,"SubcontractingWorkCenterUsed",0],[212,"validate",83,"Output Quantity"],[214,"validate",83,"Output Quantity"],[217,"call","AssignNextTrackingEntry",2],[219,"event","OnBeforeOutputItemJnlLineInsert",0],[220,"ext","codeunit",408,"UpdateGlobalDimFromDimSetID",3],[222,"write",83,"Insert"],[224,"event","OnAfterInsertItemJnlLine",0]]},{"name":"CollectProdOrderTracking","line":230,"kind":"procedure","access":"local","params":2,"steps":[[235,"write",337,"DeleteAll"],[237,"ext","table",337,"SetPointer",1],[237,"ext","table",5406,"RowID1",0],[238,"ext","table",337,"SetPointerFilter",0],[244,"write",337,"Insert"]]},{"name":"AssignNextTrackingEntry","line":250,"kind":"procedure","access":"local","params":2,"steps":[[261,"ext","codeunit",6500,"CopyItemTracking",3],[261,"ext","table",83,"RowID1",0]]}]}