{"title":"Report 29 Export Acc. Sched. to Excel, extension points 29","url":"https://jonas-paprotka.de/ref/report/29-export-acc-sched-to-excel/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":"report","id":29,"name":"Export Acc. Sched. to Excel","app":"Base Application","url":"https://jonas-paprotka.de/ref/report/29-export-acc-sched-to-excel/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/report/29-export-acc-sched-to-excel/source/","path":"src/Layers/W1/BaseApp/Finance/FinancialReports/ExportAccSchedtoExcel.Report.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:8":{"name":"AccSchedManagement","url":"https://jonas-paprotka.de/ref/codeunit/8-accschedmanagement/"},"table:370":{"name":"Excel Buffer","url":"https://jonas-paprotka.de/ref/table/370-excel-buffer/"},"codeunit:8363":{"name":"DimPerspectiveAccSchMgtHandler","url":"https://jonas-paprotka.de/ref/codeunit/8363-dimperspectiveaccschmgthandler/"},"codeunit:419":{"name":"File Management","url":"https://jonas-paprotka.de/ref/codeunit/419-file-management/"},"codeunit:8390":{"name":"Financial Report Auditing","url":"https://jonas-paprotka.de/ref/codeunit/8390-financial-report-auditing/"},"table:88":{"name":"Financial Report","url":"https://jonas-paprotka.de/ref/table/88-financial-report/"},"codeunit:9200":{"name":"Matrix Management","url":"https://jonas-paprotka.de/ref/codeunit/9200-matrix-management/"},"table:348":{"name":"Dimension","url":"https://jonas-paprotka.de/ref/table/348-dimension/"},"codeunit:4100":{"name":"Temp Blob","url":"https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/"}},"procs":[{"name":"Integer.OnAfterGetRecord","line":37,"kind":"trigger","steps":[[46,"call","UploadExistingTemplate",1],[48,"call","UploadClientFile",1],[56,"event","OnIntegerOnAfterGetRecordOnAfterAccSchedLineSetFilter",0],[59,"ext","codeunit",8,"CheckAnalysisView",3],[64,"call","PopulateExcelBuffer",1],[66,"ext","table",370,"UpdateBookExcel",3],[67,"ext","table",370,"WriteSheet",3],[70,"ext","table",370,"CreateBook",2],[71,"ext","table",370,"WriteSheet",3],[75,"ext","codeunit",8,"CheckPerspectiveAnalysisView",2],[82,"ext","codeunit",8363,"SetDimPerspectiveName",1],[84,"ext","codeunit",8363,"SetDimPerspectiveLine",1],[85,"ext","codeunit",8,"ForceRecalculate",1],[86,"call","WriteSheetPerDefinition",2],[95,"ext","table",370,"CloseBook",0],[97,"ext","table",370,"OpenExcelWithName",1],[99,"ext","table",370,"CloseBook",0],[101,"ext","table",370,"OpenExcelWithName",1],[101,"ext","codeunit",419,"CreateFileNameWithExtension",2]]},{"name":"OnPostReport","line":117,"kind":"trigger","steps":[[121,"ext","codeunit",8390,"LogReportUsage",3]]},{"name":"WriteSheetPerDefinition","line":195,"kind":"procedure","access":"local","params":2,"steps":[[197,"call","PopulateExcelBuffer",1],[201,"ext","table",370,"SelectOrAddSheet",1],[202,"ext","table",370,"WriteSheet",3]]},{"name":"PopulateExcelBuffer","line":205,"kind":"procedure","access":"local","params":1,"steps":[[214,"write",370,"DeleteAll"],[217,"call","EnterCell",9],[218,"call","EnterFilterInCell",5],[221,"call","EnterFilterInCell",5],[224,"call","EnterFilterInCell",5],[227,"call","EnterFilterInCell",5],[230,"call","EnterFilterInCell",5],[233,"call","EnterFilterInCell",5],[237,"ext","table",88,"GetIntroductoryParagraph",0],[240,"call","EnterCellBlobValue",4],[246,"call","EnterFilterInCell",5],[247,"call","GetDimFilterCaption",1],[251,"call","EnterFilterInCell",5],[252,"call","GetDimFilterCaption",1],[256,"call","EnterFilterInCell",5],[257,"call","GetDimFilterCaption",1],[261,"call","EnterFilterInCell",5],[262,"call","GetDimFilterCaption",1],[264,"call","InsertBlankRowAndFillCells",4],[266,"call","EnterFilterInCell",5],[269,"call","EnterFilterInCell",5],[275,"call","InsertBlankRowAndFillCells",4],[276,"call","InsertBlankRowAndFillCells",4],[279,"call","InsertBlankRowAndFillCells",4],[283,"call","EnterCell",9],[284,"ext","codeunit",8,"CalcColumnHeader",2],[290,"call","ShouldIncludeRow",1],[293,"call","EnterCell",9],[298,"call","EnterCell",9],[304,"call","CalcColumnValue",1],[306,"call","EnterCell",9],[307,"ext","codeunit",9200,"FormatAmount",3],[315,"ext","table",88,"GetClosingParagraph",0],[318,"call","EnterCellBlobValue",4]]},{"name":"CalcColumnValue","line":322,"kind":"procedure","access":"local","params":1,"steps":[[324,"event","OnBeforeCalcColumnValue",0],[328,"ext","codeunit",8,"CalcCell",3],[329,"ext","codeunit",8,"GetDivisionError",0],[332,"event","OnAferCalcColumnValue",0]]},{"name":"EnterFilterInCell","line":335,"kind":"procedure","access":"local","params":5,"steps":[[339,"call","EnterCell",9],[340,"call","EnterCell",9]]},{"name":"EnterCell","line":344,"kind":"procedure","access":"local","params":9,"steps":[[347,"validate",370,"Row No."],[348,"validate",370,"Column No."],[362,"write",370,"Insert"]]},{"name":"EnterCellBlobValue","line":365,"kind":"procedure","access":"local","params":4,"steps":[[370,"validate",370,"Row No."],[371,"validate",370,"Column No."],[375,"write",370,"Insert"]]},{"name":"GetDimFilterCaption","line":378,"kind":"procedure","access":"local","params":1,"steps":[[400,"ext","table",348,"GetMLFilterCaption",1]]},{"name":"SetUseExistingTemplate","line":442,"kind":"procedure","params":1,"steps":[[451,"ext","codeunit",419,"InStreamExportToServerFile",2],[457,"ext","codeunit",419,"CreateFileNameWithExtension",2]]},{"name":"GetSavedStream","line":475,"kind":"procedure","params":1,"steps":[[477,"ext","table",370,"SaveToStream",2]]},{"name":"UploadExistingTemplate","line":480,"kind":"procedure","access":"local","params":1,"steps":[[488,"ext","codeunit",419,"IsAllowedPath",2],[489,"ext","codeunit",419,"BLOBImportFromServerFile",2],[490,"ext","codeunit",4100,"CreateInStream",1],[491,"ext","table",370,"GetSheetsNameListFromStream",2]]},{"name":"UploadClientFile","line":502,"kind":"procedure","access":"local","params":1,"steps":[[504,"ext","codeunit",419,"UploadFile",2],[505,"ext","codeunit",419,"GetFileName",1],[509,"ext","table",370,"SelectSheetsName",1]]},{"name":"ShouldIncludeRow","line":516,"kind":"procedure","access":"local","params":1,"steps":[[524,"call","CalcColumnValue",1]]},{"name":"InsertBlankRowAndFillCells","line":538,"kind":"procedure","access":"local","params":4,"steps":[[546,"call","EnterCell",9],[551,"call","EnterCell",9]]}]}