{"title":"Codeunit 5920 ServItemManagement, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5920-servitemmanagement/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":5920,"name":"ServItemManagement","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5920-servitemmanagement/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5920-servitemmanagement/source/","path":"src/Layers/W1/BaseApp/Service/Item/ServItemManagement.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:5906":{"name":"ServLogManagement","url":"https://jonas-paprotka.de/ref/codeunit/5906-servlogmanagement/"},"table:5941":{"name":"Service Item Component","url":"https://jonas-paprotka.de/ref/table/5941-service-item-component/"},"table:5940":{"name":"Service Item","url":"https://jonas-paprotka.de/ref/table/5940-service-item/"},"table:336":{"name":"Tracking Specification","url":"https://jonas-paprotka.de/ref/table/336-tracking-specification/"},"codeunit:5900":{"name":"ServOrderManagement","url":"https://jonas-paprotka.de/ref/codeunit/5900-servordermanagement/"},"codeunit:310":{"name":"No. Series","url":"https://jonas-paprotka.de/ref/codeunit/310-no-series/"},"codeunit:5931":{"name":"Resource Skill Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/5931-resource-skill-mgt/"},"codeunit:27":{"name":"Confirm Management","url":"https://jonas-paprotka.de/ref/codeunit/27-confirm-management/"},"table:5901":{"name":"Service Item Line","url":"https://jonas-paprotka.de/ref/table/5901-service-item-line/"},"table:5902":{"name":"Service Line","url":"https://jonas-paprotka.de/ref/table/5902-service-line/"},"table:330":{"name":"Currency Exchange Rate","url":"https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/"},"table:337":{"name":"Reservation Entry","url":"https://jonas-paprotka.de/ref/table/337-reservation-entry/"}},"procs":[{"name":"AddOrReplaceSIComponent","line":57,"kind":"procedure","params":5,"steps":[[71,"event","OnBeforeReplaceSIComponent",1],[78,"call","CheckWholeNumber",1],[92,"ext","codeunit",5906,"ServItemComponentRemoved",1],[93,"write",5941,"Delete"],[98,"write",5941,"Insert"],[102,"write",5940,"Modify"],[106,"call","InitNewServItemComponent",4],[107,"ext","table",336,"SetSourceFilter",5],[114,"event","OnBeforeInsertNewServItemComponent",0],[115,"write",5941,"Insert"],[117,"ext","codeunit",5906,"ServItemComponentAdded",1],[127,"call","InitNewServItemComponent",4],[133,"event","OnBeforeInsertNewServItemComponent",0],[134,"write",5941,"Insert"],[136,"ext","codeunit",5906,"ServItemComponentAdded",1],[141,"call","CheckWholeNumber",1],[151,"ext","table",336,"SetSourceFilter",5],[156,"call","InitNewServItemComponent",4],[163,"event","OnBeforeInsertNewServItemComponent",0],[164,"write",5941,"Insert"],[166,"ext","codeunit",5906,"ServItemComponentAdded",1],[173,"event","OnAddOrReplaceSIComponentPermanentTemporary",1],[176,"ext","codeunit",5900,"ReplacementCreateServItem",5]]},{"name":"InitNewServItemComponent","line":182,"kind":"procedure","access":"local","params":4,"steps":[[197,"event","OnAfterInitNewServItemComponent",0]]},{"name":"InsertServiceItemComponent","line":200,"kind":"procedure","params":5,"steps":[[212,"event","OnBeforeInsertServItemComponent",0],[213,"write",5941,"Insert"]]},{"name":"CreateServItemOnSalesLineShpt","line":216,"kind":"procedure","params":3,"steps":[[228,"event","OnBeforeCreateServItemOnSalesLineShpt",1],[232,"call","DoesSalesLineNeedServiceItemCreation",3],[249,"write",5940,"DeleteAll"],[250,"write",5941,"DeleteAll"],[265,"event","OnCreateServItemOnSalesLineShptOnAfterCalcShouldCreateServiceItem",0],[269,"ext","codeunit",310,"GetNextNo",1],[270,"write",5940,"Insert"],[274,"event","OnCreateServItemOnSalesLineShptOnAfterInsertServiceItem",1],[277,"call","ModifyServiceItem",6],[281,"write",5940,"Insert"],[282,"ext","codeunit",5931,"AssignServItemResSkills",1],[284,"call","AddServiceItemComponents",3],[287,"ext","codeunit",5906,"ServItemAutoCreated",1]]},{"name":"ModifyServiceItem","line":295,"kind":"procedure","access":"local","params":6,"steps":[[305,"validate",5940,"Description"],[310,"validate",5940,"Customer No."],[311,"validate",5940,"Ship-to Code"],[312,"ext","table",5940,"OmitAssignResSkills",1],[313,"validate",5940,"Item No."],[314,"ext","table",5940,"OmitAssignResSkills",1],[319,"validate",5940,"Sales Unit Cost"],[322,"validate",5940,"Sales Unit Price"],[324,"call","CalcAmountLCY",4],[331,"validate",5940,"Sales Unit Price"],[358,"call","CalcServiceWarrantyDates",4],[361,"event","OnCreateServItemOnSalesLineShpt",0],[363,"write",5940,"Modify"],[364,"event","OnAfterModifyServiceItem",0]]},{"name":"AddServiceItemComponents","line":367,"kind":"procedure","access":"local","params":3,"steps":[[375,"event","CreateServItemOnSalesLineShptOnBeforeInsertServiceItemComponents",1],[393,"call","InsertServiceItemComponent",5],[396,"write",5941,"Insert"],[402,"event","OnCreateServItemOnSalesLineShptOnAfterAddServItemComponents",0]]},{"name":"CreateServItemOnServItemLine","line":417,"kind":"procedure","params":1,"steps":[[424,"event","OnBeforeCreateServItemOnServItemLine",0],[431,"event","OnCreateServItemOnServItemLineOnBeforeConfirmCreateServItem",1],[436,"ext","codeunit",27,"GetResponseOrDefault",2],[444,"ext","codeunit",310,"GetNextNo",1],[445,"event","OnCreateServItemOnServItemLineOnBeforeServiceItemInsert",0],[446,"write",5940,"Insert"],[447,"validate",5940,"Description"],[450,"validate",5940,"Customer No."],[451,"validate",5940,"Ship-to Code"],[452,"ext","table",5940,"OmitAssignResSkills",1],[453,"validate",5940,"Item No."],[454,"ext","table",5940,"OmitAssignResSkills",1],[456,"validate",5940,"Serial No."],[473,"ext","codeunit",27,"GetResponseOrDefault",2],[480,"event","OnCreateServItemOnServItemLineOnBeforeServItemModify",0],[481,"write",5940,"Modify"],[482,"ext","codeunit",5931,"AssignServItemResSkills",1],[484,"ext","codeunit",5906,"ServItemAutoCreated",1],[490,"event","OnCreateServItemOnServItemLine",1],[492,"write",5901,"Modify"],[493,"ext","table",5901,"CreateDimFromDefaultDim",1],[496,"ext","codeunit",5906,"ServItemToServOrder",1],[502,"write",5902,"ModifyAll"],[504,"event","OnAfterCreateServItemOnServItemLine",0]]},{"name":"CalcAmountLCY","line":507,"kind":"procedure","params":4,"steps":[[516,"ext","table",330,"ExchangeAmtFCYToLCY",4]]},{"name":"CopyReservationEntry","line":522,"kind":"procedure","params":1,"steps":[[529,"event","OnBeforeCopyReservationEntry",0],[536,"call","DoesSalesLineNeedServiceItemCreation",3],[537,"event","OnBeforeCopyReservationEntryLineAfterCheckSalesLineNeedsServiceItemCreation",0],[539,"call","CopyReservationEntryLine",1]]},{"name":"CopyReservationEntryService","line":543,"kind":"procedure","params":1,"steps":[[562,"write",337,"Insert"]]},{"name":"CreateServItemOnSalesInvoice","line":566,"kind":"procedure","params":1,"steps":[[573,"event","OnBeforeCreateServItemOnSalesInvoice",1],[581,"call","CreateServItemOnSalesLineShpt",3]]},{"name":"ReturnServItemComp","line":593,"kind":"procedure","params":2,"steps":[[595,"write",5940,"DeleteAll"],[599,"write",5940,"Insert"],[601,"write",5941,"DeleteAll"],[605,"write",5941,"Insert"]]},{"name":"DeleteServItemOnSaleCreditMemo","line":609,"kind":"procedure","params":1,"steps":[[621,"event","OnBeforeDeleteServItemOnSaleCreditMemo",1],[641,"ext","table",5940,"CheckIfCanBeDeleted",0],[642,"validate",5940,"Status"],[643,"write",5940,"Modify",1],[645,"write",5940,"Delete",1]]},{"name":"CopyReservationEntryLine","line":654,"kind":"procedure","access":"local","params":1,"steps":[[662,"event","OnBeforeCopyReservationEntryLine",1],[681,"event","OnCopyReservationEntryLineOnBeforeReservationEntryFindSet",0],[686,"write",337,"Insert"]]},{"name":"CopyReservation","line":690,"kind":"procedure","params":1,"steps":[[702,"call","DoesPurchaseLineNeedServiceItemCreation",1],[705,"call","CopyReservationEntryLine",1]]},{"name":"DoesSalesLineNeedServiceItemCreation","line":710,"kind":"procedure","params":3,"steps":[[715,"event","OnBeforeDoesSalesLineNeedServiceItemCreation",1]]},{"name":"DoesPurchaseLineNeedServiceItemCreation","line":733,"kind":"procedure","params":1,"steps":[[740,"event","OnBeforeDoesPurchaseLineNeedServiceItemCreation",1]]},{"name":"ItemVariantOnAfterOnDelete","line":888,"kind":"procedure","access":"local","params":1,"steps":[[916,"write",5941,"ModifyAll"]]}]}