{"title":"Codeunit 5982 Service-Post+Print, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5982-service-post-print/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":5982,"name":"Service-Post+Print","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5982-service-post-print/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5982-service-post-print/source/","path":"src/Layers/W1/BaseApp/Service/Posting/ServicePostPrint.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":{"codeunit:5980":{"name":"Service-Post","url":"https://jonas-paprotka.de/ref/codeunit/5980-service-post/"},"table:5990":{"name":"Service Shipment Header","url":"https://jonas-paprotka.de/ref/table/5990-service-shipment-header/"},"table:5992":{"name":"Service Invoice Header","url":"https://jonas-paprotka.de/ref/table/5992-service-invoice-header/"},"table:5994":{"name":"Service Cr.Memo Header","url":"https://jonas-paprotka.de/ref/table/5994-service-cr-memo-header/"},"codeunit:5957":{"name":"Serv. Posting Selection Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/5957-serv-posting-selection-mgt/"}},"procs":[{"name":"OnRun","line":14,"kind":"trigger","steps":[[16,"call","PostDocument",1]]},{"name":"PostDocument","line":29,"kind":"procedure","params":1,"steps":[[33,"event","OnBeforePostDocument",0],[35,"call","Code",1]]},{"name":"Code","line":39,"kind":"procedure","access":"local","params":1,"steps":[[48,"event","OnBeforeConfirmPost",1],[53,"call","ConfirmPostAndPrint",2],[56,"event","OnAfterConfirmPost",0],[58,"ext","codeunit",5980,"PostWithLines",5],[59,"event","OnAfterPost",0],[61,"call","GetReport",1]]},{"name":"GetReport","line":66,"kind":"procedure","params":1,"steps":[[71,"event","OnBeforeGetReport",1],[82,"event","OnBeforeServiceShipmentHeaderPrintRecords",1],[84,"ext","table",5990,"PrintRecords",1],[89,"event","OnGetReportOnBeforeExportServiceInvoice",0],[91,"event","OnBeforeServiceInvoiceHeaderPrintRecords",1],[93,"ext","table",5992,"PrintRecords",1],[103,"event","OnGetReportOnBeforeExportServiceInvoice",0],[105,"event","OnBeforeServiceInvoiceHeaderPrintRecords",1],[107,"ext","table",5992,"PrintRecords",1],[116,"event","OnGetReportOnBeforeExportServiceCrMemo",0],[118,"event","OnBeforeServiceCrMemoHeaderPrintRecords",1],[120,"ext","table",5994,"PrintRecords",1]]},{"name":"ConfirmPostAndPrint","line":125,"kind":"procedure","access":"local","params":2,"steps":[[131,"event","OnBeforeConfirmPostAndPrint",1],[135,"ext","codeunit",5957,"ConfirmPostServiceDocument",8]]}]}