---
title: "Codeunit 5987 Serv-Posting Journals Mgt., extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/points/
object: https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
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/"
---

# Codeunit 5987 Serv-Posting Journals Mgt., extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/points/

21 procedures and triggers with a step in src/Layers/W1/BaseApp/Service/Posting/ServPostingJournalsMgt.Codeunit.al, in source order, read from the text, not from a run.

## Initialize

[Line 60](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L60).

- [65](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L65) calls `SetPostingOptions`
- [69](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L69) calls [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `Initialize`

## GetLocation

[Line 121](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L121), local.

- [124](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L124) calls [Table 14 Location](https://jonas-paprotka.de/ref/table/14-location/) `GetLocationSetup`

## PostItemJnlLine

[Line 130](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L130).

- [148](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L148) calls [Table 5900 Service Header](https://jonas-paprotka.de/ref/table/5900-service-header/) `CopyToItemJnlLine`
- [149](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L149) calls [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) `CopyToItemJnlLine`
- [150](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L150) calls [Table 83 Item Journal Line](https://jonas-paprotka.de/ref/table/83-item-journal-line/) `CopyTrackingFromSpec`
- [172](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L172) calls `CheckItemBlocked`
- [246](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L246) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmtFCYToLCY`
- [264](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L264) raises `OnPostItemJnlLineOnBeforeCreateWhseJnlLine`
- [266](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L266) calls [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) `IsInventoriableItem`
- [267](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L267) calls `GetLocation`
- [270](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L270) calls `IsWarehouseShipment`
- [272](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L272) calls `CreateWhseJnlLine`
- [279](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L279) calls [Codeunit 5985 Serv-Item Tracking Rsrv. Mgt.](https://jonas-paprotka.de/ref/codeunit/5985-serv-item-tracking-rsrv-mgt/) `TransServLineToItemJnlLine`
- [281](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L281) calls [Codeunit 5985 Serv-Item Tracking Rsrv. Mgt.](https://jonas-paprotka.de/ref/codeunit/5985-serv-item-tracking-rsrv-mgt/) `TransferReservToItemJnlLine`
- [287](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L287) raises `OnBeforePostItemJnlLine`
- [291](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L291) calls [Codeunit 22 Item Jnl.-Post Line](https://jonas-paprotka.de/ref/codeunit/22-item-jnl-post-line/) `RunWithCheck`
- [293](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L293) calls [Codeunit 22 Item Jnl.-Post Line](https://jonas-paprotka.de/ref/codeunit/22-item-jnl-post-line/) `CollectValueEntryRelation`
- [295](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L295) calls [Codeunit 22 Item Jnl.-Post Line](https://jonas-paprotka.de/ref/codeunit/22-item-jnl-post-line/) `CollectTrackingSpecification`
- [296](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L296) calls [Codeunit 5985 Serv-Item Tracking Rsrv. Mgt.](https://jonas-paprotka.de/ref/codeunit/5985-serv-item-tracking-rsrv-mgt/) `InsertTempHandlngSpecification`
- [302](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L302) calls `PostWhseJnlLines`
- [304](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L304) raises `OnAfterPostItemJnlLine`

## CheckItemBlocked

[Line 309](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L309), local.

- [318](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L318) calls [Table 83 Item Journal Line](https://jonas-paprotka.de/ref/table/83-item-journal-line/) `DisplayErrorIfItemIsBlocked`
- [322](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L322) calls [Table 83 Item Journal Line](https://jonas-paprotka.de/ref/table/83-item-journal-line/) `DisplayErrorIfItemVariantIsBlocked`

## CreateWhseJnlLine

[Line 326](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L326), local.

- [331](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L331) calls [Codeunit 7302 WMS Management](https://jonas-paprotka.de/ref/codeunit/7302-wms-management/) `CheckAdjmtBin`
- [332](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L332) calls [Codeunit 7302 WMS Management](https://jonas-paprotka.de/ref/codeunit/7302-wms-management/) `CreateWhseJnlLine`
- [336](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L336) calls [Codeunit 5775 Whse. Management](https://jonas-paprotka.de/ref/codeunit/5775-whse-management/) `GetWhseJnlSourceDocument`

## PostWhseJnlLines

[Line 353](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L353), local.

- [357](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L357) calls [Codeunit 5985 Serv-Item Tracking Rsrv. Mgt.](https://jonas-paprotka.de/ref/codeunit/5985-serv-item-tracking-rsrv-mgt/) `SplitWhseJnlLine`
- [360](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L360) calls [Codeunit 7301 Whse. Jnl.-Register Line](https://jonas-paprotka.de/ref/codeunit/7301-whse-jnl-register-line/) `RegisterWhseJnlLine`

## PostSalesTaxLines

[Line 369](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L369).

- [371](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L371) raises `OnPostSalesTaxLines`

## PostResJnlLineShip

[Line 384](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L384).

- [390](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L390) raises `OnBeforePostResJnlLineShip`, IsHandled
- [395](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L395) calls [Codeunit 6451 Serv. Time Sheet Mgt.](https://jonas-paprotka.de/ref/codeunit/6451-serv-time-sheet-mgt/) `CheckServiceLine`
- [397](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L397) calls `PostResJnlLine`
- [403](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L403) calls [Codeunit 6451 Serv. Time Sheet Mgt.](https://jonas-paprotka.de/ref/codeunit/6451-serv-time-sheet-mgt/) `CreateTSLineFromServiceLine`

## PostResJnlLineUndoUsage

[Line 406](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L406).

- [410](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L410) calls `PostResJnlLine`

## PostResJnlLineSale

[Line 417](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L417).

- [421](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L421) calls `PostResJnlLine`

## PostResJnlLineConsume

[Line 427](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L427).

- [433](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L433) raises `OnBeforePostResJnlLineConsume`, IsHandled
- [438](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L438) calls [Codeunit 6451 Serv. Time Sheet Mgt.](https://jonas-paprotka.de/ref/codeunit/6451-serv-time-sheet-mgt/) `CheckServiceLine`
- [440](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L440) calls `PostResJnlLine`
- [445](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L445) calls [Codeunit 6451 Serv. Time Sheet Mgt.](https://jonas-paprotka.de/ref/codeunit/6451-serv-time-sheet-mgt/) `CreateTSLineFromServiceLine`

## PostResJnlLine

[Line 448](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L448), local.

- [453](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L453) raises `OnPostResJnlLineOnAfterResJnlLineInit`
- [454](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L454) calls [Table 207 Res. Journal Line](https://jonas-paprotka.de/ref/table/207-res-journal-line/) `CopyDocumentFields`
- [455](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L455) calls [Table 5900 Service Header](https://jonas-paprotka.de/ref/table/5900-service-header/) `CopyToResJournalLine`
- [456](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L456) calls [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) `CopyToResJournalLine`
- [465](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L465) raises `OnBeforeResJnlPostLine`
- [466](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L466) calls [Codeunit 212 Res. Jnl.-Post Line](https://jonas-paprotka.de/ref/codeunit/212-res-jnl-post-line/) `RunWithCheck`
- [467](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L467) raises `OnAfterPostResJnlLine`

## InitServiceRegister

[Line 470](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L470).

- [472](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L472) calls [Codeunit 5912 ServLedgEntries-Post](https://jonas-paprotka.de/ref/codeunit/5912-servledgentries-post/) `InitServiceRegister`

## FinishServiceRegister

[Line 475](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L475).

- [477](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L477) calls [Codeunit 5912 ServLedgEntries-Post](https://jonas-paprotka.de/ref/codeunit/5912-servledgentries-post/) `FinishServiceRegister`

## InsertServLedgerEntry

[Line 480](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L480).

- [483](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L483) calls [Codeunit 5912 ServLedgEntries-Post](https://jonas-paprotka.de/ref/codeunit/5912-servledgentries-post/) `InsertServLedgerEntry`

## InsertServLedgerEntrySale

[Line 486](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L486).

- [488](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L488) calls [Codeunit 5912 ServLedgEntries-Post](https://jonas-paprotka.de/ref/codeunit/5912-servledgentries-post/) `InsertServLedgerEntrySale`

## CreateCreditEntry

[Line 492](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L492).

- [494](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L494) calls [Codeunit 5912 ServLedgEntries-Post](https://jonas-paprotka.de/ref/codeunit/5912-servledgentries-post/) `CreateCreditEntry`

## InsertWarrantyLedgerEntry

[Line 497](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L497).

- [500](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L500) calls [Codeunit 5912 ServLedgEntries-Post](https://jonas-paprotka.de/ref/codeunit/5912-servledgentries-post/) `InsertWarrantyLedgerEntry`

## CalcSLEDivideAmount

[Line 504](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L504).

- [506](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L506) calls [Codeunit 5912 ServLedgEntries-Post](https://jonas-paprotka.de/ref/codeunit/5912-servledgentries-post/) `CalcDivideAmount`

## CollectValueEntryRelation

[Line 527](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L527).

- [536](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L536) writes [Table 6508 Value Entry Relation](https://jonas-paprotka.de/ref/table/6508-value-entry-relation/) Insert
- [539](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L539) writes [Table 6508 Value Entry Relation](https://jonas-paprotka.de/ref/table/6508-value-entry-relation/) DeleteAll

## PostJobJnlLine

[Line 542](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L542).

- [558](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L558) raises `OnBeforePostJobJnlLine`, IsHandled
- [572](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L572) calls [Table 210 Job Journal Line](https://jonas-paprotka.de/ref/table/210-job-journal-line/) `DontCheckStdCost`
- [573](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L573) validates [Table 210 Job Journal Line](https://jonas-paprotka.de/ref/table/210-job-journal-line/) `Job No.`
- [574](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L574) validates [Table 210 Job Journal Line](https://jonas-paprotka.de/ref/table/210-job-journal-line/) `Job Task No.`
- [575](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L575) validates [Table 210 Job Journal Line](https://jonas-paprotka.de/ref/table/210-job-journal-line/) `Line Type`
- [576](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L576) validates [Table 210 Job Journal Line](https://jonas-paprotka.de/ref/table/210-job-journal-line/) `Posting Date`
- [596](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L596) raises `OnPostJobJnlLineOnBeforeValidateNo`
- [598](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L598) validates [Table 210 Job Journal Line](https://jonas-paprotka.de/ref/table/210-job-journal-line/) `No.`
- [604](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L604) validates [Table 210 Job Journal Line](https://jonas-paprotka.de/ref/table/210-job-journal-line/) `Quantity`
- [612](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L612) validates [Table 210 Job Journal Line](https://jonas-paprotka.de/ref/table/210-job-journal-line/) `Unit Cost (LCY)`
- [614](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L614) validates [Table 210 Job Journal Line](https://jonas-paprotka.de/ref/table/210-job-journal-line/) `Unit Cost (LCY)`
- [616](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L616) validates [Table 210 Job Journal Line](https://jonas-paprotka.de/ref/table/210-job-journal-line/) `Unit Cost (LCY)`
- [618](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L618) calls [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `Initialize`
- [621](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L621) validates [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) `Unit Price`
- [624](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L624) validates [Table 210 Job Journal Line](https://jonas-paprotka.de/ref/table/210-job-journal-line/) `Unit Price`
- [626](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L626) raises `OnPostJobJnlLineOnBeforeCalcCurrencyFactor`
- [627](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L627) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeRate`
- [629](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L629) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmtFCYToLCY`
- [631](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L631) validates [Table 210 Job Journal Line](https://jonas-paprotka.de/ref/table/210-job-journal-line/) `Unit Price (LCY)`
- [633](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L633) validates [Table 210 Job Journal Line](https://jonas-paprotka.de/ref/table/210-job-journal-line/) `Unit Price (LCY)`
- [635](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L635) validates [Table 210 Job Journal Line](https://jonas-paprotka.de/ref/table/210-job-journal-line/) `Line Discount %`
- [651](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L651) raises `OnAfterTransferValuesToJobJnlLine`
- [653](https://jonas-paprotka.de/ref/codeunit/5987-serv-posting-journals-mgt/source/#L653) calls [Codeunit 1012 Job Jnl.-Post Line](https://jonas-paprotka.de/ref/codeunit/1012-job-jnl-post-line/) `RunWithCheck`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
