---
title: "Codeunit 5811 Change Exp. Cost Post. to G/L, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/5811-change-exp-cost-post-to-g-l/points/
object: https://jonas-paprotka.de/ref/codeunit/5811-change-exp-cost-post-to-g-l/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/5811-change-exp-cost-post-to-g-l/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 5811 Change Exp. Cost Post. to G/L, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/5811-change-exp-cost-post-to-g-l/points/

5 procedures and triggers with a step in src/Layers/W1/BaseApp/Inventory/Costing/ChangeExpCostPosttoGL.Codeunit.al, in source order, read from the text, not from a run.

## ChangeExpCostPostingToGL

[Line 40](https://jonas-paprotka.de/ref/codeunit/5811-change-exp-cost-post-to-g-l/source/#L40).

- [58](https://jonas-paprotka.de/ref/codeunit/5811-change-exp-cost-post-to-g-l/source/#L58) calls `EnableExpCostPostingToGL`
- [60](https://jonas-paprotka.de/ref/codeunit/5811-change-exp-cost-post-to-g-l/source/#L60) calls `DisableExpCostPostingToGL`
- [62](https://jonas-paprotka.de/ref/codeunit/5811-change-exp-cost-post-to-g-l/source/#L62) calls `UpdateInvtSetup`

## EnableExpCostPostingToGL

[Line 65](https://jonas-paprotka.de/ref/codeunit/5811-change-exp-cost-post-to-g-l/source/#L65), local.

- [85](https://jonas-paprotka.de/ref/codeunit/5811-change-exp-cost-post-to-g-l/source/#L85) calls `UpdatePostValueEntryToGL`
- [107](https://jonas-paprotka.de/ref/codeunit/5811-change-exp-cost-post-to-g-l/source/#L107) calls `UpdatePostValueEntryToGL`

## UpdatePostValueEntryToGL

[Line 114](https://jonas-paprotka.de/ref/codeunit/5811-change-exp-cost-post-to-g-l/source/#L114), local.

- [132](https://jonas-paprotka.de/ref/codeunit/5811-change-exp-cost-post-to-g-l/source/#L132) raises `OnBeforePostValueEntryToGLInsert`
- [133](https://jonas-paprotka.de/ref/codeunit/5811-change-exp-cost-post-to-g-l/source/#L133) writes [Table 5811 Post Value Entry to G/L](https://jonas-paprotka.de/ref/table/5811-post-value-entry-to-g-l/) Insert

## DisableExpCostPostingToGL

[Line 138](https://jonas-paprotka.de/ref/codeunit/5811-change-exp-cost-post-to-g-l/source/#L138), local.

- [148](https://jonas-paprotka.de/ref/codeunit/5811-change-exp-cost-post-to-g-l/source/#L148) writes [Table 5811 Post Value Entry to G/L](https://jonas-paprotka.de/ref/table/5811-post-value-entry-to-g-l/) Delete

## UpdateInvtSetup

[Line 154](https://jonas-paprotka.de/ref/codeunit/5811-change-exp-cost-post-to-g-l/source/#L154), local.

- [159](https://jonas-paprotka.de/ref/codeunit/5811-change-exp-cost-post-to-g-l/source/#L159) writes [Table 313 Inventory Setup](https://jonas-paprotka.de/ref/table/313-inventory-setup/) Modify
- [163](https://jonas-paprotka.de/ref/codeunit/5811-change-exp-cost-post-to-g-l/source/#L163) calls [Table 377 Object Translation](https://jonas-paprotka.de/ref/table/377-object-translation/) `TranslateObject`

## Source

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

JOP-AL, 2026-11-20.
