{"title":"Codeunit 18 Financial Report Mgt., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/18-financial-report-mgt/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":18,"name":"Financial Report Mgt.","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/18-financial-report-mgt/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/18-financial-report-mgt/source/","path":"src/Layers/W1/BaseApp/Finance/FinancialReports/FinancialReportMgt.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:1518":{"name":"My Notifications","url":"https://jonas-paprotka.de/ref/table/1518-my-notifications/"},"codeunit:8614":{"name":"Config. XML Exchange","url":"https://jonas-paprotka.de/ref/codeunit/8614-config-xml-exchange/"},"table:8623":{"name":"Config. Package","url":"https://jonas-paprotka.de/ref/table/8623-config-package/"},"codeunit:8611":{"name":"Config. Package Management","url":"https://jonas-paprotka.de/ref/codeunit/8611-config-package-management/"},"table:84":{"name":"Acc. Schedule Name","url":"https://jonas-paprotka.de/ref/table/84-acc-schedule-name/"},"table:8616":{"name":"Config. Package Field","url":"https://jonas-paprotka.de/ref/table/8616-config-package-field/"},"page:8747":{"name":"New Financial Report","url":"https://jonas-paprotka.de/ref/page/8747-new-financial-report/"},"table:8615":{"name":"Config. Package Data","url":"https://jonas-paprotka.de/ref/table/8615-config-package-data/"},"report:25":{"name":"Account Schedule","url":"https://jonas-paprotka.de/ref/report/25-account-schedule/"},"table:88":{"name":"Financial Report","url":"https://jonas-paprotka.de/ref/table/88-financial-report/"},"codeunit:1511":{"name":"Notification Lifecycle Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1511-notification-lifecycle-mgt/"},"page:108":{"name":"Financial Reports","url":"https://jonas-paprotka.de/ref/page/108-financial-reports/"},"page:103":{"name":"Account Schedule Names","url":"https://jonas-paprotka.de/ref/page/103-account-schedule-names/"},"table:180":{"name":"G/L Account Where-Used","url":"https://jonas-paprotka.de/ref/table/180-g-l-account-where-used/"},"page:104":{"name":"Account Schedule","url":"https://jonas-paprotka.de/ref/page/104-account-schedule/"},"page:489":{"name":"Column Layout","url":"https://jonas-paprotka.de/ref/page/489-column-layout/"},"codeunit:457":{"name":"Environment Information","url":"https://jonas-paprotka.de/ref/codeunit/457-environment-information/"},"codeunit:8703":{"name":"Feature Telemetry","url":"https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/"},"codeunit:921":{"name":"Period Formula Parser","url":"https://jonas-paprotka.de/ref/codeunit/921-period-formula-parser/"},"codeunit:8":{"name":"AccSchedManagement","url":"https://jonas-paprotka.de/ref/codeunit/8-accschedmanagement/"}},"procs":[{"name":"LaunchEditRowsWarningNotification","line":50,"kind":"procedure","access":"internal","params":0,"steps":[[55,"ext","table",1518,"IsEnabled",1]]},{"name":"LaunchEditColumnsWarningNotification","line":63,"kind":"procedure","access":"internal","params":0,"steps":[[68,"ext","table",1518,"IsEnabled",1]]},{"name":"DisableColumnsDefinitionNotification","line":76,"kind":"procedure","access":"internal","params":1,"steps":[[80,"ext","table",1518,"Disable",1],[81,"ext","table",1518,"InsertDefault",4]]},{"name":"DisableRowsDefinitionNotification","line":84,"kind":"procedure","access":"internal","params":1,"steps":[[88,"ext","table",1518,"Disable",1],[89,"ext","table",1518,"InsertDefault",4]]},{"name":"XMLExchangeExport","line":101,"kind":"procedure","params":1,"steps":[[106,"call","AddFinancialReportToConfigPackage",2],[108,"ext","codeunit",8614,"ExportPackage",1],[109,"call","LogImportExportTelemetry",2]]},{"name":"AddFinancialReportToConfigPackage","line":112,"kind":"procedure","access":"local","params":2,"steps":[[129,"write",8623,"Delete",1],[130,"ext","codeunit",8611,"InsertPackage",4],[131,"ext","codeunit",8611,"InsertPackageTable",3],[132,"ext","codeunit",8611,"InsertPackageFilter",6],[133,"ext","table",84,"AddRowDefinitionToConfigPackage",3],[136,"ext","codeunit",8611,"InsertPackageTable",3],[137,"ext","codeunit",8611,"InsertPackageFilter",6],[138,"ext","codeunit",8611,"InsertPackageTable",3],[139,"ext","codeunit",8611,"InsertPackageFilter",6],[141,"write",8616,"Delete"]]},{"name":"XMLExchangeImport","line":154,"kind":"procedure","params":1,"steps":[[159,"ext","codeunit",8614,"ImportPackageXMLFromClient",0],[160,"ext","codeunit",8614,"GetImportedPackageCode",0],[162,"call","ApplyPackage",1]]},{"name":"ApplyPackage","line":175,"kind":"procedure","params":1,"steps":[[185,"call","GetPackageFinancialReportName",1],[190,"ext","codeunit",8611,"ApplyPackage",3],[191,"call","LogImportExportTelemetry",2]]},{"name":"GetPackageFinancialReportName","line":194,"kind":"procedure","access":"local","params":1,"steps":[[205,"call","GetFinancialReportName",2],[209,"call","GetAccountScheduleName",2],[213,"call","GetColumnLayoutName",2],[220,"call","GetNewFinancialReportName",3],[223,"call","RenamePackageContents",7]]},{"name":"GetNewFinancialReportName","line":226,"kind":"procedure","access":"local","params":3,"steps":[[230,"ext","page",8747,"Set",3],[232,"ext","page",8747,"GetFinancialReportName",0],[233,"ext","page",8747,"GetAccSchedName",0],[234,"ext","page",8747,"GetColumnLayoutName",0]]},{"name":"RenamePackageContents","line":240,"kind":"procedure","access":"local","params":7,"steps":[[246,"call","RenameFinancialReportInPackage",7],[247,"ext","table",84,"RenameAccountScheduleInPackage",3],[248,"call","RenameColumnLayoutInPackage",3]]},{"name":"RenameFinancialReportInPackage","line":251,"kind":"procedure","access":"local","params":7,"steps":[[263,"write",8615,"ModifyAll"],[270,"write",8615,"ModifyAll"],[277,"write",8615,"ModifyAll"]]},{"name":"RenameColumnLayoutInPackage","line":281,"kind":"procedure","access":"internal","params":3,"steps":[[296,"write",8615,"ModifyAll"],[300,"write",8615,"ModifyAll"]]},{"name":"Print","line":372,"kind":"procedure","params":1,"steps":[[378,"event","OnBeforePrint",1],[382,"ext","report",25,"SetFinancialReportName",1]]},{"name":"Initialize","line":414,"kind":"procedure","params":0,"steps":[[423,"call","CreateFinancialReportFromRowDefinition",1]]},{"name":"CreateFinancialReportFromRowDefinition","line":427,"kind":"procedure","access":"local","params":1,"steps":[[435,"write",88,"Insert"]]},{"name":"NotifyUpdateFinancialReport","line":438,"kind":"procedure","access":"internal","params":1,"steps":[[448,"ext","table",1518,"IsEnabled",1],[448,"call","GetUpdateFinancialReportNotificationId",0],[451,"call","GetUpdateFinancialReportNotificationId",0],[457,"ext","codeunit",1511,"SendNotification",2]]},{"name":"OpenFinancialReports","line":465,"kind":"procedure","params":1,"steps":[[467,"run","page",108]]},{"name":"NotifyUpdateRowDefinition","line":470,"kind":"procedure","access":"internal","params":1,"steps":[[481,"ext","table",1518,"IsEnabled",1],[481,"call","GetUpdateFinancialReportNotificationId",0],[484,"call","FilterAccScheduleLineByGLAccount",2],[488,"call","GetUpdateFinancialReportNotificationId",0],[495,"ext","codeunit",1511,"SendNotification",2]]},{"name":"OpenRowDefinitions","line":500,"kind":"procedure","params":1,"steps":[[502,"run","page",103]]},{"name":"OpenWhereUsed","line":506,"kind":"procedure","params":1,"steps":[[517,"call","FindGLAccountWhereUsedInAccScheduleLine",2]]},{"name":"FindGLAccountWhereUsedInAccScheduleLine","line":521,"kind":"procedure","params":2,"steps":[[525,"call","FilterAccScheduleLineByGLAccount",2],[539,"write",180,"Insert"]]},{"name":"FindGLAccountWhereUsedInColumnLayout","line":551,"kind":"procedure","params":2,"steps":[[555,"call","FilterColumnLayoutByGLAccount",2],[570,"write",180,"Insert"]]},{"name":"OnAfterCheckPostingGroups","line":581,"kind":"procedure","access":"local","params":2,"steps":[[583,"call","FindGLAccountWhereUsedInAccScheduleLine",2],[584,"call","FindGLAccountWhereUsedInColumnLayout",2]]},{"name":"OnShowExtensionPage","line":588,"kind":"procedure","access":"local","params":1,"steps":[[601,"ext","page",104,"SetAccSchedName",1],[610,"ext","page",489,"SetColumnLayoutName",1]]},{"name":"HideUpdateFinancialReportNotification","line":622,"kind":"procedure","params":1,"steps":[[626,"ext","table",1518,"Disable",1],[627,"ext","table",1518,"InsertDefault",4]]},{"name":"LogImportExportTelemetry","line":631,"kind":"procedure","access":"local","params":2,"steps":[[637,"ext","codeunit",457,"IsSaaS",0],[641,"ext","codeunit",8703,"LogUsage",4]]},{"name":"SetAccScheduleFilter","line":654,"kind":"procedure","params":2,"steps":[[658,"call","CalcAccScheduleLineDateFilter",2],[659,"ext","report",25,"SetFinancialReportName",1],[660,"ext","report",25,"SetDimPerspectiveName",1],[661,"ext","report",25,"SetFilters"],[671,"ext","table",88,"GetEffectiveNegativeAmountFormat",0]]},{"name":"CalcAccScheduleLineDateFilter","line":700,"kind":"procedure","params":2,"steps":[[718,"ext","codeunit",921,"TryCalculatePeriodStartEnd",6],[728,"call","TrySetAccScheduleLineDateFilter",2],[731,"ext","codeunit",8,"FindPeriod",3],[731,"ext","table",88,"GetEffectivePeriodType",0]]},{"name":"SetAccScheduleLinePeriodFormula","line":770,"kind":"procedure","params":3,"steps":[[779,"ext","codeunit",921,"TryCalculatePeriodStartEnd",6]]},{"name":"CheckStatus","line":799,"kind":"procedure","params":2,"steps":[[813,"ext","codeunit",1511,"RecallNotificationsForRecord",2],[814,"ext","codeunit",1511,"SendNotification",2]]}]}