{"title":"Codeunit 5901 ServLoanerManagement, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5901-servloanermanagement/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":5901,"name":"ServLoanerManagement","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5901-servloanermanagement/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5901-servloanermanagement/source/","path":"src/Layers/W1/BaseApp/Service/Loaner/ServLoanerManagement.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":{"table:5914":{"name":"Loaner Entry","url":"https://jonas-paprotka.de/ref/table/5914-loaner-entry/"},"codeunit:5906":{"name":"ServLogManagement","url":"https://jonas-paprotka.de/ref/codeunit/5906-servlogmanagement/"},"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:5989":{"name":"Service Shipment Item Line","url":"https://jonas-paprotka.de/ref/table/5989-service-shipment-item-line/"}},"procs":[{"name":"LendLoaner","line":32,"kind":"procedure","params":1,"steps":[[47,"ext","table",5914,"GetNextEntryNo",0],[49,"ext","table",5914,"GetDocTypeFromServDocType",1],[61,"event","OnLendLoanerOnBeforeInsertLoanerEntry",0],[62,"write",5914,"Insert"],[64,"ext","codeunit",5906,"LoanerLent",1]]},{"name":"ReceiveLoaner","line":69,"kind":"procedure","params":1,"steps":[[78,"event","OnBeforeReceiveLoaner",1],[81,"ext","codeunit",27,"GetResponseOrDefault",2],[85,"ext","table",5914,"GetDocTypeFromServDocType",1],[93,"write",5914,"Modify"],[95,"write",5901,"Modify"],[97,"ext","codeunit",5906,"LoanerReceived",1],[98,"call","ClearLoanerField",3],[106,"event","OnAfterReceiveLoaner",0]]},{"name":"ReceiveLoanerShipment","line":109,"kind":"procedure","params":1,"steps":[[119,"ext","codeunit",27,"GetResponseOrDefault",2],[132,"write",5914,"Modify"],[134,"write",5989,"Modify"],[136,"ext","codeunit",5906,"LoanerReceived",1],[137,"call","ClearLoanerField",3]]},{"name":"ClearLoanerField","line":144,"kind":"procedure","access":"local","params":3,"steps":[[154,"write",5901,"Modify"],[166,"write",5989,"Modify"]]},{"name":"Receive","line":171,"kind":"procedure","params":1,"steps":[[188,"ext","table",5914,"GetServDocTypeFromDocType",0],[189,"call","ReceiveLoaner",1],[196,"call","ReceiveLoanerShipment",1],[198,"ext","codeunit",27,"GetResponseOrDefault",2],[203,"write",5914,"Modify"]]}]}