---
title: "Report 6218 Sust. Routing Calculate CO2e, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/report/6218-sust-routing-calculate-co2e/points/
object: https://jonas-paprotka.de/ref/report/6218-sust-routing-calculate-co2e/
app: "Sustainability"
major: 29
source: https://jonas-paprotka.de/ref/report/6218-sust-routing-calculate-co2e/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/"
---

# Report 6218 Sust. Routing Calculate CO2e, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/report/6218-sust-routing-calculate-co2e/points/

2 procedures and triggers with a step in src/Apps/W1/Sustainability/app/src/Manufacturing/SustRoutingCalculateCO2e.Report.al, in source order, read from the text, not from a run.

## Routing Header.OnAfterGetRecord

[Line 23](https://jonas-paprotka.de/ref/report/6218-sust-routing-calculate-co2e/source/#L23), trigger.

- [31](https://jonas-paprotka.de/ref/report/6218-sust-routing-calculate-co2e/source/#L31) calls `OpenDialog`
- [34](https://jonas-paprotka.de/ref/report/6218-sust-routing-calculate-co2e/source/#L34) calls `UpdateCO2ePerUnit`
- [35](https://jonas-paprotka.de/ref/report/6218-sust-routing-calculate-co2e/source/#L35) calls `UpdateDialog`
- [37](https://jonas-paprotka.de/ref/report/6218-sust-routing-calculate-co2e/source/#L37) calls `CommitRecord`
- [40](https://jonas-paprotka.de/ref/report/6218-sust-routing-calculate-co2e/source/#L40) calls `CloseDialog`
- [43](https://jonas-paprotka.de/ref/report/6218-sust-routing-calculate-co2e/source/#L43) calls `ShowCompletionMsg`

## UpdateCO2ePerUnit

[Line 99](https://jonas-paprotka.de/ref/report/6218-sust-routing-calculate-co2e/source/#L99), local.

- [105](https://jonas-paprotka.de/ref/report/6218-sust-routing-calculate-co2e/source/#L105) calls [Codeunit 99000756 VersionManagement](https://jonas-paprotka.de/ref/codeunit/99000756-versionmanagement/) `GetRtngVersion`
- [111](https://jonas-paprotka.de/ref/report/6218-sust-routing-calculate-co2e/source/#L111) validates [Table 99000764 Routing Line](https://jonas-paprotka.de/ref/table/99000764-routing-line/) `CO2e per Unit`
- [111](https://jonas-paprotka.de/ref/report/6218-sust-routing-calculate-co2e/source/#L111) calls `GetCO2ePerUnitForRoutingLine`
- [112](https://jonas-paprotka.de/ref/report/6218-sust-routing-calculate-co2e/source/#L112) validates [Table 99000764 Routing Line](https://jonas-paprotka.de/ref/table/99000764-routing-line/) `CO2e Last Date Modified`
- [114](https://jonas-paprotka.de/ref/report/6218-sust-routing-calculate-co2e/source/#L114) writes [Table 99000764 Routing Line](https://jonas-paprotka.de/ref/table/99000764-routing-line/) Modify
- [116](https://jonas-paprotka.de/ref/report/6218-sust-routing-calculate-co2e/source/#L116) writes [Table 99000764 Routing Line](https://jonas-paprotka.de/ref/table/99000764-routing-line/) Modify(true)

## Source

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

JOP-AL, 2026-11-20.
