{"title":"Codeunit 1104 Cost Account Allocation, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/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":1104,"name":"Cost Account Allocation","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/","path":"src/Layers/W1/BaseApp/CostAccounting/Allocation/CostAccountAllocation.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:1107":{"name":"Cost Allocation Target","url":"https://jonas-paprotka.de/ref/table/1107-cost-allocation-target/"},"codeunit:408":{"name":"DimensionManagement","url":"https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/"}},"procs":[{"name":"OnRun","line":20,"kind":"trigger","steps":[[22,"call","ConfirmCalcAllocationKeys",0]]},{"name":"ConfirmCalcAllocationKeys","line":42,"kind":"procedure","access":"local","params":0,"steps":[[49,"call","CalcAllocationKeys",0]]},{"name":"CalcAllocationKeys","line":54,"kind":"procedure","params":0,"steps":[[73,"call","CalcLineShare",1],[76,"validate",1107,"Share"]]},{"name":"CalcAllocationKey","line":83,"kind":"procedure","params":1,"steps":[[87,"event","OnBeforeCalcAllocationKey",0],[94,"call","CalcLineShare",1],[97,"validate",1107,"Share"],[99,"event","OnAfterCalcAllocationKey",0]]},{"name":"CalcLineShare","line":102,"kind":"procedure","params":1,"steps":[[107,"event","OnBeforeCalcLineShare",1],[112,"call","CalcDateFilter",1],[116,"call","CalcGLEntryShare",1],[118,"call","CalcGLBudgetEntryShare",1],[120,"call","CalcCostEntryShare",1],[122,"call","CalcCostBudgetEntryShare",1],[124,"call","CalcEmployeeCountShare",1],[126,"call","CalcItemSoldQtyShare",1],[128,"call","CalcItemPurchasedQtyShare",1],[130,"call","CalcItemSoldAmtShare",1],[132,"call","CalcItemPurchasedAmtShare",1],[137,"write",1107,"Modify"]]},{"name":"CalcGLEntryShare","line":141,"kind":"procedure","access":"local","params":1,"steps":[[150,"call","SetCostAccDimFilters",1],[151,"ext","codeunit",408,"GetDimSetFilters",0]]},{"name":"CalcGLBudgetEntryShare","line":162,"kind":"procedure","access":"local","params":1,"steps":[[172,"call","SetCostAccDimFilters",1],[173,"ext","codeunit",408,"GetDimSetFilters",0]]},{"name":"CalcEmployeeCountShare","line":211,"kind":"procedure","access":"local","params":1,"steps":[[217,"event","OnBeforeCalcEmployeeCountShare",1]]},{"name":"CalcItemSoldQtyShare","line":228,"kind":"procedure","access":"local","params":1,"steps":[[234,"event","OnBeforeCalcItemSoldQtyShare",1],[238,"call","CalcItemShare",3]]},{"name":"CalcItemSoldAmtShare","line":241,"kind":"procedure","access":"local","params":1,"steps":[[245,"call","CalcItemShare",3]]},{"name":"CalcItemPurchasedQtyShare","line":248,"kind":"procedure","access":"local","params":1,"steps":[[252,"call","CalcItemShare",3]]},{"name":"CalcItemPurchasedAmtShare","line":255,"kind":"procedure","access":"local","params":1,"steps":[[259,"call","CalcItemShare",3]]},{"name":"CalcItemShare","line":262,"kind":"procedure","access":"local","params":3,"steps":[[273,"call","SetCostAccDimFilters",1],[274,"ext","codeunit",408,"GetDimSetFilters",0],[276,"call","SumValueEntryField",2],[279,"call","SumValueEntryField",2]]},{"name":"SumValueEntryField","line":282,"kind":"procedure","access":"local","params":2,"steps":[[301,"event","OnAfterSumValueEntryField",0]]},{"name":"CalcDateFilter","line":304,"kind":"procedure","access":"local","params":1,"steps":[[317,"event","OnBeforeCalcDateFilter",1]]},{"name":"SetCostAccDimFilters","line":438,"kind":"procedure","access":"local","params":1,"steps":[[443,"ext","codeunit",408,"ClearDimSetFilter",0],[445,"call","SetDimFilter",2],[446,"call","SetDimFilter",2]]},{"name":"SetDimFilter","line":449,"kind":"procedure","access":"local","params":2,"steps":[[452,"ext","codeunit",408,"GetDimSetIDsForFilter",2]]}]}