{"title":"Codeunit 5987 Serv-Posting Journals Mgt., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/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":5987,"name":"Serv-Posting Journals Mgt.","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/","path":"src/Layers/W1/BaseApp/Service/Posting/ServPostingJournalsMgt.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:4":{"name":"Currency","url":"https://jonas-paprotka.de/ref/table/4-currency/"},"table:14":{"name":"Location","url":"https://jonas-paprotka.de/ref/table/14-location/"},"table:5900":{"name":"Service Header","url":"https://jonas-paprotka.de/ref/table/5900-service-header/"},"table:5902":{"name":"Service Line","url":"https://jonas-paprotka.de/ref/table/5902-service-line/"},"table:83":{"name":"Item Journal Line","url":"https://jonas-paprotka.de/ref/table/83-item-journal-line/"},"table:330":{"name":"Currency Exchange Rate","url":"https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/"},"codeunit:5985":{"name":"Serv-Item Tracking Rsrv. Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/5985-serv-item-tracking-rsrv-mgt/"},"codeunit:22":{"name":"Item Jnl.-Post Line","url":"https://jonas-paprotka.de/ref/codeunit/22-item-jnl-post-line/"},"codeunit:7302":{"name":"WMS Management","url":"https://jonas-paprotka.de/ref/codeunit/7302-wms-management/"},"codeunit:5775":{"name":"Whse. Management","url":"https://jonas-paprotka.de/ref/codeunit/5775-whse-management/"},"codeunit:7301":{"name":"Whse. Jnl.-Register Line","url":"https://jonas-paprotka.de/ref/codeunit/7301-whse-jnl-register-line/"},"codeunit:6451":{"name":"Serv. Time Sheet Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/6451-serv-time-sheet-mgt/"},"table:207":{"name":"Res. Journal Line","url":"https://jonas-paprotka.de/ref/table/207-res-journal-line/"},"codeunit:212":{"name":"Res. Jnl.-Post Line","url":"https://jonas-paprotka.de/ref/codeunit/212-res-jnl-post-line/"},"codeunit:5912":{"name":"ServLedgEntries-Post","url":"https://jonas-paprotka.de/ref/codeunit/5912-servledgentries-post/"},"table:6508":{"name":"Value Entry Relation","url":"https://jonas-paprotka.de/ref/table/6508-value-entry-relation/"},"table:210":{"name":"Job Journal Line","url":"https://jonas-paprotka.de/ref/table/210-job-journal-line/"},"codeunit:1012":{"name":"Job Jnl.-Post Line","url":"https://jonas-paprotka.de/ref/codeunit/1012-job-jnl-post-line/"}},"procs":[{"name":"Initialize","line":60,"kind":"procedure","params":3,"steps":[[65,"call","SetPostingOptions",2],[69,"ext","table",4,"Initialize",1]]},{"name":"GetLocation","line":121,"kind":"procedure","access":"local","params":2,"steps":[[124,"ext","table",14,"GetLocationSetup",2]]},{"name":"PostItemJnlLine","line":130,"kind":"procedure","params":14,"steps":[[148,"ext","table",5900,"CopyToItemJnlLine",1],[149,"ext","table",5902,"CopyToItemJnlLine",1],[150,"ext","table",83,"CopyTrackingFromSpec",1],[172,"call","CheckItemBlocked",1],[246,"ext","table",330,"ExchangeAmtFCYToLCY",4],[264,"event","OnPostItemJnlLineOnBeforeCreateWhseJnlLine",0],[266,"ext","table",5902,"IsInventoriableItem",0],[267,"call","GetLocation",2],[270,"call","IsWarehouseShipment",1],[272,"call","CreateWhseJnlLine",4],[279,"ext","codeunit",5985,"TransServLineToItemJnlLine",4],[281,"ext","codeunit",5985,"TransferReservToItemJnlLine",4],[287,"event","OnBeforePostItemJnlLine",0],[291,"ext","codeunit",22,"RunWithCheck",1],[293,"ext","codeunit",22,"CollectValueEntryRelation",2],[295,"ext","codeunit",22,"CollectTrackingSpecification",1],[296,"ext","codeunit",5985,"InsertTempHandlngSpecification",6],[302,"call","PostWhseJnlLines",2],[304,"event","OnAfterPostItemJnlLine",0]]},{"name":"CheckItemBlocked","line":309,"kind":"procedure","access":"local","params":1,"steps":[[318,"ext","table",83,"DisplayErrorIfItemIsBlocked",1],[322,"ext","table",83,"DisplayErrorIfItemVariantIsBlocked",1]]},{"name":"CreateWhseJnlLine","line":326,"kind":"procedure","access":"local","params":4,"steps":[[331,"ext","codeunit",7302,"CheckAdjmtBin",3],[332,"ext","codeunit",7302,"CreateWhseJnlLine",4],[336,"ext","codeunit",5775,"GetWhseJnlSourceDocument",2]]},{"name":"PostWhseJnlLines","line":353,"kind":"procedure","access":"local","params":2,"steps":[[357,"ext","codeunit",5985,"SplitWhseJnlLine",4],[360,"ext","codeunit",7301,"RegisterWhseJnlLine",1]]},{"name":"PostSalesTaxLines","line":369,"kind":"procedure","params":3,"steps":[[371,"event","OnPostSalesTaxLines",0]]},{"name":"PostResJnlLineShip","line":384,"kind":"procedure","params":3,"steps":[[390,"event","OnBeforePostResJnlLineShip",1],[395,"ext","codeunit",6451,"CheckServiceLine",1],[397,"call","PostResJnlLine",10],[403,"ext","codeunit",6451,"CreateTSLineFromServiceLine",3]]},{"name":"PostResJnlLineUndoUsage","line":406,"kind":"procedure","params":3,"steps":[[410,"call","PostResJnlLine",10]]},{"name":"PostResJnlLineSale","line":417,"kind":"procedure","params":3,"steps":[[421,"call","PostResJnlLine",10]]},{"name":"PostResJnlLineConsume","line":427,"kind":"procedure","params":2,"steps":[[433,"event","OnBeforePostResJnlLineConsume",1],[438,"ext","codeunit",6451,"CheckServiceLine",1],[440,"call","PostResJnlLine",10],[445,"ext","codeunit",6451,"CreateTSLineFromServiceLine",3]]},{"name":"PostResJnlLine","line":448,"kind":"procedure","access":"local","params":10,"steps":[[453,"event","OnPostResJnlLineOnAfterResJnlLineInit",0],[454,"ext","table",207,"CopyDocumentFields",4],[455,"ext","table",5900,"CopyToResJournalLine",1],[456,"ext","table",5902,"CopyToResJournalLine",1],[465,"event","OnBeforeResJnlPostLine",0],[466,"ext","codeunit",212,"RunWithCheck",1],[467,"event","OnAfterPostResJnlLine",0]]},{"name":"InitServiceRegister","line":470,"kind":"procedure","params":2,"steps":[[472,"ext","codeunit",5912,"InitServiceRegister",2]]},{"name":"FinishServiceRegister","line":475,"kind":"procedure","params":2,"steps":[[477,"ext","codeunit",5912,"FinishServiceRegister",2]]},{"name":"InsertServLedgerEntry","line":480,"kind":"procedure","params":6,"steps":[[483,"ext","codeunit",5912,"InsertServLedgerEntry",6]]},{"name":"InsertServLedgerEntrySale","line":486,"kind":"procedure","params":8,"steps":[[488,"ext","codeunit",5912,"InsertServLedgerEntrySale",8]]},{"name":"CreateCreditEntry","line":492,"kind":"procedure","params":4,"steps":[[494,"ext","codeunit",5912,"CreateCreditEntry",4]]},{"name":"InsertWarrantyLedgerEntry","line":497,"kind":"procedure","params":6,"steps":[[500,"ext","codeunit",5912,"InsertWarrantyLedgerEntry",6]]},{"name":"CalcSLEDivideAmount","line":504,"kind":"procedure","params":4,"steps":[[506,"ext","codeunit",5912,"CalcDivideAmount",4]]},{"name":"CollectValueEntryRelation","line":527,"kind":"procedure","params":2,"steps":[[536,"write",6508,"Insert"],[539,"write",6508,"DeleteAll"]]},{"name":"PostJobJnlLine","line":542,"kind":"procedure","params":3,"steps":[[558,"event","OnBeforePostJobJnlLine",1],[572,"ext","table",210,"DontCheckStdCost",0],[573,"validate",210,"Job No."],[574,"validate",210,"Job Task No."],[575,"validate",210,"Line Type"],[576,"validate",210,"Posting Date"],[596,"event","OnPostJobJnlLineOnBeforeValidateNo",0],[598,"validate",210,"No."],[604,"validate",210,"Quantity"],[612,"validate",210,"Unit Cost (LCY)"],[614,"validate",210,"Unit Cost (LCY)"],[616,"validate",210,"Unit Cost (LCY)"],[618,"ext","table",4,"Initialize",1],[621,"validate",5902,"Unit Price"],[624,"validate",210,"Unit Price"],[626,"event","OnPostJobJnlLineOnBeforeCalcCurrencyFactor",0],[627,"ext","table",330,"ExchangeRate",2],[629,"ext","table",330,"ExchangeAmtFCYToLCY",4],[631,"validate",210,"Unit Price (LCY)"],[633,"validate",210,"Unit Price (LCY)"],[635,"validate",210,"Line Discount %"],[651,"event","OnAfterTransferValuesToJobJnlLine",0],[653,"ext","codeunit",1012,"RunWithCheck",1]]}]}