{"title":"Codeunit 9072 Check Sales Doc. Backgr., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/9072-check-sales-doc-backgr/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":9072,"name":"Check Sales Doc. Backgr.","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/9072-check-sales-doc-backgr/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/9072-check-sales-doc-backgr/source/","path":"src/Layers/W1/BaseApp/Sales/Document/CheckSalesDocBackgr.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:28":{"name":"Error Message Management","url":"https://jonas-paprotka.de/ref/codeunit/28-error-message-management/"},"table:9080":{"name":"Error Handling Parameters","url":"https://jonas-paprotka.de/ref/table/9080-error-handling-parameters/"},"codeunit:9071":{"name":"Check Sales Document","url":"https://jonas-paprotka.de/ref/codeunit/9071-check-sales-document/"},"codeunit:9069":{"name":"Check Sales Document Line","url":"https://jonas-paprotka.de/ref/codeunit/9069-check-sales-document-line/"},"table:700":{"name":"Error Message","url":"https://jonas-paprotka.de/ref/table/700-error-message/"}},"procs":[{"name":"OnRun","line":15,"kind":"trigger","steps":[[25,"call","RunCheck",2],[27,"ext","codeunit",28,"PackErrorMessagesToResults",2]]},{"name":"RunCheck","line":40,"kind":"procedure","params":2,"steps":[[46,"ext","table",9080,"FromArgs",1],[49,"call","RunSalesDocCheckCodeunit",2],[53,"call","RunSalesDocLineCheckCodeunit",3]]},{"name":"RunSalesDocCheckCodeunit","line":58,"kind":"procedure","access":"local","params":2,"steps":[[65,"ext","codeunit",28,"Activate",1],[66,"ext","codeunit",28,"PushContext",4],[68,"run","codeunit",9071],[69,"ext","codeunit",28,"GetErrors",1],[70,"ext","codeunit",28,"CollectErrors",1],[71,"call","CopyErrorsToBuffer",2],[73,"call","InsertTempLineErrorMessage",5],[80,"call","CopyErrorsToBuffer",2]]},{"name":"RunSalesDocLineCheckCodeunit","line":85,"kind":"procedure","access":"local","params":3,"steps":[[92,"ext","codeunit",28,"Activate",1],[93,"ext","codeunit",28,"PushContext",4],[94,"ext","codeunit",9069,"SetSalesHeader",1],[95,"run","codeunit",9069],[96,"ext","codeunit",28,"GetErrors",1],[97,"ext","codeunit",28,"CollectErrors",1],[98,"call","CopyErrorsToBuffer",2],[100,"ext","codeunit",28,"GetErrors",1],[101,"call","InsertTempLineErrorMessage",5],[108,"call","CopyErrorsToBuffer",2]]},{"name":"InsertTempLineErrorMessage","line":112,"kind":"procedure","access":"local","params":5,"steps":[[122,"write",700,"Insert"]]},{"name":"CopyErrorsToBuffer","line":125,"kind":"procedure","access":"local","params":2,"steps":[[139,"write",700,"Insert"]]}]}