{"title":"Codeunit 197 Update Acc. Sched. KPI Data, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/197-update-acc-sched-kpi-data/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":197,"name":"Update Acc. Sched. KPI Data","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/197-update-acc-sched-kpi-data/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/197-update-acc-sched-kpi-data/source/","path":"src/Layers/W1/BaseApp/Finance/FinancialReports/UpdateAccSchedKPIData.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:135":{"name":"Acc. Sched. KPI Web Srv. Setup","url":"https://jonas-paprotka.de/ref/table/135-acc-sched-kpi-web-srv-setup/"},"codeunit:40":{"name":"LogInManagement","url":"https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/"},"table:197":{"name":"Acc. Sched. KPI Buffer","url":"https://jonas-paprotka.de/ref/table/197-acc-sched-kpi-buffer/"},"table:85":{"name":"Acc. Schedule Line","url":"https://jonas-paprotka.de/ref/table/85-acc-schedule-line/"},"table:17":{"name":"G/L Entry","url":"https://jonas-paprotka.de/ref/table/17-g-l-entry/"},"table:334":{"name":"Column Layout","url":"https://jonas-paprotka.de/ref/table/334-column-layout/"},"table:50":{"name":"Accounting Period","url":"https://jonas-paprotka.de/ref/table/50-accounting-period/"},"codeunit:8":{"name":"AccSchedManagement","url":"https://jonas-paprotka.de/ref/codeunit/8-accschedmanagement/"}},"procs":[{"name":"OnRun","line":25,"kind":"trigger","steps":[[27,"call","InitSetupData",0]]},{"name":"InitSetupData","line":45,"kind":"procedure","access":"local","params":0,"steps":[[67,"write",135,"Insert"],[82,"ext","codeunit",40,"GetDefaultWorkDate",0],[84,"write",197,"DeleteAll"],[96,"write",85,"Insert"],[100,"event","OnInitSetupDataAnAfterTempAccScheduleLineInsert",0],[102,"call","InsertTempColumn",3],[104,"call","InsertTempColumn",3],[106,"call","InsertTempColumn",3],[108,"call","InsertTempColumn",3],[110,"call","InsertTempColumn",3],[112,"call","InsertTempColumn",3],[114,"call","InsertTempColumn",3],[116,"call","InsertTempColumn",3],[118,"ext","table",135,"GetPeriodLength",3],[120,"ext","table",135,"GetLastClosedAccDate",0],[125,"call","CalcValues",1],[130,"ext","table",17,"GetLastEntryNo",0],[131,"write",135,"Modify"]]},{"name":"InsertTempColumn","line":136,"kind":"procedure","access":"local","params":3,"steps":[[145,"write",334,"Insert"]]},{"name":"CalcValues","line":148,"kind":"procedure","access":"local","params":1,"steps":[[155,"ext","table",135,"CalcNextStartDate",2],[157,"ext","table",135,"CalcNextStartDate",2],[169,"ext","table",50,"CorrespondingAccountingPeriodExists",2],[177,"ext","codeunit",8,"CalcCell",3],[178,"event","OnCalcValuesOnAfterCalculateValue",0],[220,"write",197,"Insert"]]}]}