---
id: object/codeunit/5869
type: object
title: Codeunit 5869 "Derogatory Posting Mgt."
summary: Codeunit 5869 "Derogatory Posting Mgt." in Base Application (Microsoft.FixedAssets.Posting). 13 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-11-24T00:56:51.308Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 8442344ce44886c699c4ef017e0eea0ef460cd38bfdfc1b430f4748ad9cf4ab4
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/b42f520c380a64062ca700b5f5450acc436e5b05/src/Layers/W1/BaseApp/FixedAssets/FixedAsset/DerogatoryPostingMgt.Codeunit.al
    title: src/Layers/W1/BaseApp/FixedAssets/FixedAsset/DerogatoryPostingMgt.Codeunit.al (releases/29.x)
    date: null
    commit: b42f520c380a64062ca700b5f5450acc436e5b05
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/12160
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/France/how-to-set-up-accelerated-depreciation
      title: Set Up Accelerated Depreciation
      label: possibly related
      why: Documents accelerated depreciation setup including derogatory posting groups.
      by: model
object_type: codeunit
object_id: 5869
name: Derogatory Posting Mgt.
namespace: Microsoft.FixedAssets.Posting
app: Base Application
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 13
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 2
  called_by: 8
  implements: 0
---

# Codeunit 5869 "Derogatory Posting Mgt."

> Codeunit 5869 "Derogatory Posting Mgt." in Base Application (Microsoft.FixedAssets.Posting). 13 public procedures. Introduced in BC29, still in BC30.

Base Application · Microsoft.FixedAssets.Posting · BC29-30 · [source at b42f520c](https://github.com/microsoft/BCApps/blob/b42f520c380a64062ca700b5f5450acc436e5b05/src/Layers/W1/BaseApp/FixedAssets/FixedAsset/DerogatoryPostingMgt.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |

## Procedures

- `CheckDateCompressionAllowed(var FALedgerEntry: Record "FA Ledger Entry")`
- `CheckDateCompressionAllowed(var MaintenanceLedgerEntry: Record "Maintenance Ledger Entry")`
- `GetDerogatoryBookCode(SourceDepreciationBookCode: Code[10]; var DerogatoryDepreciationBookCode: Code[10]): Boolean`
- `GetDerogatoryBook(SourceDepreciationBookCode: Code[10]; var DerogatoryDepreciationBook: Record "Depreciation Book"): Boolean`
- `IsEligible(FANo: Code[20]; SourceDepreciationBookCode: Code[10]; PostingRole: Enum "Derogatory Posting Role"; var DerogatoryDepreciationBookCode: Code[10]): Boolean`
- `MakeDerogatoryJournalLine(var DerogatoryFAJournalLine: Record "FA Journal Line"; SourceFAJournalLine: Record "FA Journal Line"; PostingRole: Enum "Derogatory Posting Role"): Boolean`
- `MakeDerogatoryJournalLine(var DerogatoryFAJournalLine: Record "FA Journal Line"; SourceGenJournalLine: Record "Gen. Journal Line"; PostingRole: Enum "Derogatory Posting Role"): Boolean`
- `MakeDerogatoryJournalLine(var DerogatoryFAJournalLine: Record "FA Journal Line"; SourceGenJournalLine: Record "Gen. Journal Line"; SourceAmount: Decimal; PostingRole: Enum "Derogatory Posting Role"): Boolean`
- `PrepareAcquisitionCostAdjustment(var AdjustmentFAJournalLine: Record "FA Journal Line"; SourceFAJournalLine: Record "FA Journal Line"): Boolean`
- `PrepareAcquisitionCostAdjustment(var AdjustmentGenJournalLine: Record "Gen. Journal Line"; SourceGenJournalLine: Record "Gen. Journal Line"; var IntegrationGLDerogatory: Boolean): Boolean`
- `ValidateDerogatoryLink(DerogatoryFALedgerEntry: Record "FA Ledger Entry")`
- `ValidateDerogatoryLink(DerogatoryMaintenanceLedgerEntry: Record "Maintenance Ledger Entry")`
- `LogIntegrityError(LedgerTableId: Integer; ErrorMessage: Text)` (internal)

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 5613 "Calculate Acq. Cost Depr."](../codeunit/5613.md) (1 call: `PrepareAcquisitionCostAdjustment → DerogatoryCalculation`)
- [Codeunit 8711 "Telemetry"](../codeunit/8711.md) (1 call: `LogIntegrityError → LogMessage`)

## Called by

- [Codeunit 5600 "FA Insert Ledger Entry"](../codeunit/5600.md) (4 calls: `InsertFARevEntryForDerog → IsEligible`, `InsertFARevEntryForDerog → LogIntegrityError`, `InsertMaintRevEntryForDerog → IsEligible`, …)
- [Codeunit 12 "Gen. Jnl.-Post Line"](../codeunit/12.md) (2 calls: `CreateAndPostDerogEntry → MakeDerogatoryJournalLine`, `CreateAndPostDerogEntry → PrepareAcquisitionCostAdjustment`)
- [Codeunit 5633 "FA Jnl.-Post Batch"](../codeunit/5633.md) (2 calls: `CreateAndPostDerogEntry → PrepareAcquisitionCostAdjustment`, `MakeDerogatoryFAJnlLine → MakeDerogatoryJournalLine`)
- [Codeunit 5611 "Calculate Normal Depreciation"](../codeunit/5611.md) (1 call: `TransferValues → GetDerogatoryBook`)
- [Codeunit 5632 "FA Jnl.-Post Line"](../codeunit/5632.md) (1 call: `PostDerogatoryCounterpart → MakeDerogatoryJournalLine`)
- [Report 5605 "Fixed Asset - Book Value 01"](../report/5605.md) (1 call: `OnPreReport → GetDerogatoryBook`)
- [Report 5606 "Fixed Asset - Book Value 02"](../report/5606.md) (1 call: `OnPreReport → GetDerogatoryBook`)
- [Report 5692 "Calculate Depreciation"](../report/5692.md) (1 call: `OnPreReport → GetDerogatoryBook`)

## Recent changes

- 2026-10-20 [#12160 Deliverable 617319: Move French accelerated depreciation to W1 base application](../../changes/bcapps/12160.md) (main, BC30, feature, added)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Set Up Accelerated Depreciation](https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/France/how-to-set-up-accelerated-depreciation) — possibly related: Documents accelerated depreciation setup including derogatory posting groups. (model-linked)

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Derogatory Posting Mgt.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
