{"title":"Codeunit 6502 Late Binding Management, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/6502-late-binding-management/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":6502,"name":"Late Binding Management","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/6502-late-binding-management/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/6502-late-binding-management/source/","path":"src/Layers/W1/BaseApp/Inventory/Tracking/LateBindingManagement.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:337":{"name":"Reservation Entry","url":"https://jonas-paprotka.de/ref/table/337-reservation-entry/"},"table:336":{"name":"Tracking Specification","url":"https://jonas-paprotka.de/ref/table/336-tracking-specification/"},"table:32":{"name":"Item Ledger Entry","url":"https://jonas-paprotka.de/ref/table/32-item-ledger-entry/"},"codeunit:99000841":{"name":"Item Ledger Entry-Reserve","url":"https://jonas-paprotka.de/ref/codeunit/99000841-item-ledger-entry-reserve/"},"table:6565":{"name":"Item Tracking Setup","url":"https://jonas-paprotka.de/ref/table/6565-item-tracking-setup/"},"codeunit:99000845":{"name":"Reservation Management","url":"https://jonas-paprotka.de/ref/codeunit/99000845-reservation-management/"}},"procs":[{"name":"CleanUpVariables","line":27,"kind":"procedure","access":"local","params":0,"steps":[[31,"write",337,"DeleteAll"],[33,"write",337,"DeleteAll"],[35,"write",337,"DeleteAll"],[37,"write",337,"DeleteAll"],[39,"write",337,"DeleteAll"],[41,"write",337,"DeleteAll"]]},{"name":"ReallocateTrkgSpecification","line":44,"kind":"procedure","params":1,"steps":[[54,"call","CleanUpVariables",0],[61,"call","CalcInventory",1],[73,"call","CalcAllocations",1],[79,"call","PrepareTempDataSet",2],[83,"call","Reallocate",1],[86,"call","WriteToDatabase",0]]},{"name":"Reallocate","line":89,"kind":"procedure","access":"local","params":1,"steps":[[99,"write",336,"Insert"],[106,"ext","table",337,"SetTrackingFilterFromSpec",1],[110,"call","ReshuffleReservEntry",3]]},{"name":"PrepareTempDataSet","line":116,"kind":"procedure","access":"local","params":2,"steps":[[133,"event","OnPrepareTempDataSetOnAfterItemLedgEntrySetFilters",0],[137,"ext","table",336,"SetTrackingFilterFromItemLedgEntry",1],[140,"call","InsertTempSupplyReservEntry",1],[145,"call","GetReservEntriesForItemLedgEntry",2],[149,"write",337,"Modify"],[153,"write",337,"Insert"],[158,"write",337,"Delete"],[161,"call","DeleteOrderTrackingSurplusEntryForItemLedgEntry",1]]},{"name":"ReshuffleReservEntry","line":168,"kind":"procedure","access":"local","params":3,"steps":[[177,"ext","table",337,"IsReservationOrTracking",0],[185,"ext","table",337,"TrackingExists",0],[207,"ext","table",336,"SetTrackingFilterFromReservEntry",1],[217,"call","MakeConnection",3],[219,"write",336,"Modify"],[223,"call","MakeConnection",3],[234,"write",337,"Insert"],[236,"write",337,"Insert"],[240,"write",337,"Insert"],[243,"write",337,"Insert"]]},{"name":"MakeConnection","line":249,"kind":"procedure","access":"local","params":3,"steps":[[269,"write",337,"Insert"],[278,"write",337,"Insert"],[280,"write",337,"Insert"],[284,"write",337,"Modify"],[290,"event","OnMakeConnectionOnBeforeTempReservEntryModifyInsert",1],[292,"write",337,"Insert"],[300,"validate",337,"Quantity (Base)"],[302,"write",337,"Insert"],[307,"validate",337,"Quantity (Base)"],[308,"write",337,"Insert"],[311,"write",337,"Modify"]]},{"name":"WriteToDatabase","line":316,"kind":"procedure","access":"local","params":0,"steps":[[329,"write",337,"Delete"],[335,"validate",337,"Quantity (Base)"],[336,"write",337,"Modify"],[351,"validate",337,"Quantity (Base)"],[352,"ext","table",337,"UpdateItemTracking",0],[353,"write",337,"Insert"]]},{"name":"CalcInventory","line":358,"kind":"procedure","access":"local","params":1,"steps":[[389,"ext","table",32,"SetTrackingFilterFromSpec",1],[395,"call","InsertTempSupplyReservEntry",1],[403,"write",336,"Modify"]]},{"name":"CalcAllocations","line":413,"kind":"procedure","access":"local","params":1,"steps":[[433,"ext","table",337,"SetTrackingFilterFromTrackingSpecIfNotBlank",1],[437,"ext","table",337,"TrackingExists",0],[439,"write",337,"Insert"],[442,"write",337,"Insert"],[448,"write",336,"Modify"],[460,"ext","table",337,"SetTrackingFilterFromTrackingSpecIfNotBlank",1],[466,"write",337,"Delete"],[468,"write",337,"Modify"],[472,"write",337,"Insert"]]},{"name":"InsertTempSupplyReservEntry","line":480,"kind":"procedure","access":"local","params":1,"steps":[[485,"event","OnBeforeInsertTempSupplyReservEntry",1],[497,"ext","table",337,"CopyTrackingFromItemLedgEntry",1],[502,"event","OnBeforeTempSupplyReservEntryInsert",0],[503,"write",337,"Insert"]]},{"name":"NonspecificReservedQty","line":507,"kind":"procedure","params":1,"steps":[[523,"ext","table",337,"CopyTrackingFilterFromItemLedgEntry",1],[529,"ext","table",337,"TrackingExists",0]]},{"name":"NonSpecificReservedQtyExceptForSource","line":534,"kind":"procedure","params":2,"steps":[[544,"ext","codeunit",99000841,"FilterReservFor",2],[550,"ext","table",337,"TrackingExists",0],[551,"ext","table",337,"HasSamePointerWithSpec",1]]},{"name":"ReleaseForReservation","line":557,"kind":"procedure","params":5,"steps":[[564,"call","CleanUpVariables",0],[568,"ext","table",336,"CopyTrackingFromItemTrackingSetup",1],[571,"write",336,"Insert"],[573,"call","PrepareTempDataSet",2],[574,"call","CalcAllocations",1],[575,"call","Reallocate",1],[576,"call","WriteToDatabase",0]]},{"name":"ReleaseForReservation","line":579,"kind":"procedure","params":3,"steps":[[595,"ext","table",6565,"CopyTrackingFromReservEntry",1]]},{"name":"ReserveItemTrackingLine","line":603,"kind":"procedure","params":1,"steps":[[617,"ext","codeunit",99000845,"SetCalcReservEntry",2],[627,"ext","table",337,"SetPointerFilter",0],[628,"ext","table",337,"SetTrackingFilterFromReservEntry",1],[639,"event","OnReserveItemTrackingLineOnBeforeAutoReserveOneLine",0],[640,"ext","codeunit",99000845,"AutoReserveOneLine",5]]},{"name":"ReserveItemTrackingLine","line":643,"kind":"procedure","params":3,"steps":[[652,"ext","codeunit",99000845,"SetCalcReservEntry",2],[653,"ext","codeunit",99000845,"SetOrderTrackingSurplusEntries",1],[660,"ext","codeunit",99000845,"AutoReserveOneLine",5]]},{"name":"SetOrderTrackingSurplusEntries","line":663,"kind":"procedure","params":1,"steps":[[665,"write",337,"DeleteAll"],[670,"write",337,"Insert"]]},{"name":"GetReservEntriesForItemLedgEntry","line":674,"kind":"procedure","access":"local","params":2,"steps":[[678,"write",337,"DeleteAll"],[680,"ext","table",337,"SetSourceFilter",5],[687,"write",337,"Insert"]]},{"name":"DeleteOrderTrackingSurplusEntryForItemLedgEntry","line":692,"kind":"procedure","access":"local","params":1,"steps":[[695,"ext","table",337,"SetSourceFilter",5],[699,"write",337,"Insert"]]}]}