{"title":"Codeunit 5900 ServOrderManagement, events","url":"https://jonas-paprotka.de/ref/codeunit/5900-servordermanagement/events/","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":5900,"name":"ServOrderManagement","app":"Base Application","versions":"17-29","url":"https://jonas-paprotka.de/ref/codeunit/5900-servordermanagement/","json":"https://jonas-paprotka.de/ref/codeunit/5900-servordermanagement.json"},"aspect":"events","total":20,"rows":[{"name":"OnBeforeCalcContractDates","sig":"(var Record Service Header, var Record Service Item Line, var Boolean)","named":"(var ServiceHeader: Record \"Service Header\"; var ServiceItemLine: Record \"Service Item Line\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(var ServiceHeader: Record \"Service Header\"; var ServiceItemLine: Record \"Service Item Line\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnBeforeToCustInvDiscInsert","sig":"(var Record Cust. Invoice Disc., Record Cust. Invoice Disc.)","named":"(var ToCustInvoiceDisc: Record \"Cust. Invoice Disc.\"; FromCustInvoiceDisc: Record \"Cust. Invoice Disc.\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(var ToCustInvoiceDisc: Record \"Cust. Invoice Disc.\"; FromCustInvoiceDisc: Record \"Cust. Invoice Disc.\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnBeforeUpdateResponseDateTime","sig":"(var Record Service Item Line, var Boolean, var Boolean)","named":"(var ServItemLine: Record \"Service Item Line\"; var Deleting: Boolean; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(var ServItemLine: Record \"Service Item Line\"; var Deleting: Boolean; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnLookupServItemNoOnAfterServItemSetFilters","sig":"(var Record Service Item Line, var Record Service Item, Record Service Header)","named":"(var ServItemLine: Record \"Service Item Line\"; var ServItem: Record \"Service Item\"; ServHeader: Record \"Service Header\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(var ServItemLine: Record \"Service Item Line\"; var ServItem: Record \"Service Item\"; ServHeader: Record \"Service Header\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnReplacementCreateServItemAfterNewServItemFilterSet","sig":"(var Boolean)","named":"(var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"17-18","first":17,"last":18,"obsoleteSince":null,"spans":[{"from":17,"to":18,"named":"(var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnReplacementCreateServItemAfterSerialNoCheck","sig":"(var Record Service Item, Record Service Item, Code[50], Record Service Line, Code[20], Integer, var Boolean)","named":"(var NewServItem: Record \"Service Item\"; FromServItem: Record \"Service Item\"; SerialNo: Code[50]; ServiceLine: Record \"Service Line\"; ServShptDocNo: Code[20]; ServShptLineNo: Integer; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(var NewServItem: Record \"Service Item\"; FromServItem: Record \"Service Item\"; SerialNo: Code[50]; ServiceLine: Record \"Service Line\"; ServShptDocNo: Code[20]; ServShptLineNo: Integer; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnReplacementCreateServItemOnBeforeServItemAutoCreated","sig":"(var Record Service Item, Record Service Item, Record Service Line, var Boolean)","named":"(var FromServItem: Record \"Service Item\"; NewServItem: Record \"Service Item\"; ServiceLine: Record \"Service Line\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(var FromServItem: Record \"Service Item\"; NewServItem: Record \"Service Item\"; ServiceLine: Record \"Service Line\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnAfterReplacementCreateServItem","sig":"(Record Service Item, Record Service Item, var Boolean)","named":"(NewServItem: Record \"Service Item\"; FromServItem: Record \"Service Item\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(NewServItem: Record \"Service Item\"; FromServItem: Record \"Service Item\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnAfterCopyCustFromServiceHeader","sig":"(var Record Customer, Record Service Header)","named":"(var Cust: Record Customer; ServiceHeader: Record \"Service Header\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"18-29","first":18,"last":29,"obsoleteSince":null,"spans":[{"from":18,"to":29,"named":"(var Cust: Record Customer; ServiceHeader: Record \"Service Header\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnInsertServCostOnCostTypeOneOnAfterServCostGet","sig":"(var Record Service Header, var Record Service Cost)","named":"(var ServHeader: Record \"Service Header\"; var ServCost: Record \"Service Cost\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"18-29","first":18,"last":29,"obsoleteSince":null,"spans":[{"from":18,"to":29,"named":"(var ServHeader: Record \"Service Header\"; var ServCost: Record \"Service Cost\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnReplacementCreateServItemAfterNewServItemFilterSet","sig":"(var Boolean, var Record Service Item)","named":"(var IsHandled: Boolean; var NewServItem: Record \"Service Item\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"19-29","first":19,"last":29,"obsoleteSince":null,"spans":[{"from":19,"to":29,"named":"(var IsHandled: Boolean; var NewServItem: Record \"Service Item\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnBeforeCalcServItemDates","sig":"(var Record Service Header, Code[20], var Boolean)","named":"(var ServiceHeader: Record \"Service Header\"; ServItemNo: Code[20]; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"20-29","first":20,"last":29,"obsoleteSince":null,"spans":[{"from":20,"to":29,"named":"(var ServiceHeader: Record \"Service Header\"; ServItemNo: Code[20]; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnLookupServItemNoOnBeforeServItemReset","sig":"(var Record Service Item Line, var Record Service Item, Record Service Header)","named":"(var ServiceItemLine: Record \"Service Item Line\"; var ServiceItem: Record \"Service Item\"; ServiceHeader: Record \"Service Header\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"21-29","first":21,"last":29,"obsoleteSince":null,"spans":[{"from":21,"to":29,"named":"(var ServiceItemLine: Record \"Service Item Line\"; var ServiceItem: Record \"Service Item\"; ServiceHeader: Record \"Service Header\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnUpdateResponseDateTimeOnBeforeNewResponseDate","sig":"(var Record Service Item Line, var Boolean)","named":"(var ServiceItemLine: Record \"Service Item Line\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"22-29","first":22,"last":29,"obsoleteSince":null,"spans":[{"from":22,"to":29,"named":"(var ServiceItemLine: Record \"Service Item Line\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnBeforeLookupServItemNo","sig":"(var Record Service Item Line, var Boolean)","named":"(var ServiceItemLine: Record \"Service Item Line\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"23-29","first":23,"last":29,"obsoleteSince":null,"spans":[{"from":23,"to":29,"named":"(var ServiceItemLine: Record \"Service Item Line\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnCopyCommentLinesWithSubTypeOnBeforeServCommentLineInsert","sig":"(var Record Service Comment Line, var Boolean)","named":"(var ServiceCommentLine2: Record \"Service Comment Line\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"23-29","first":23,"last":29,"obsoleteSince":null,"spans":[{"from":23,"to":29,"named":"(var ServiceCommentLine2: Record \"Service Comment Line\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnBeforeCopyComponentsFromBOM","sig":"(var Record Service Item, var Boolean)","named":"(var ServiceItem: Record \"Service Item\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"(var ServiceItem: Record \"Service Item\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnCreateCustFromTemplateOnBeforeCustInsert","sig":"(var Record Customer, Record Customer Templ., Record Service Header)","named":"(var Customer: Record Customer; CustomerTempl: Record \"Customer Templ.\"; ServiceHeader: Record \"Service Header\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(var Customer: Record Customer; CustomerTempl: Record \"Customer Templ.\"; ServiceHeader: Record \"Service Header\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnBeforeCheckItemServiceBlocked","sig":"(var Record Service Item Line, var Boolean)","named":"(var ServiceItemLine: Record \"Service Item Line\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(var ServiceItemLine: Record \"Service Item Line\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnInsertServCostOnCostTypeZeroOnBeforeTestServiceZoneCode","sig":"(Record Service Header, var Record Service Cost, var Boolean)","named":"(ServiceHeader: Record \"Service Header\"; var ServiceCost: Record \"Service Cost\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"29","first":29,"last":29,"obsoleteSince":null,"spans":[{"from":29,"to":29,"named":"(ServiceHeader: Record \"Service Header\"; var ServiceCost: Record \"Service Cost\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]}]}