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

JOP-AL, https://jonas-paprotka.de/ref/report/6216-sust-prod-bom-calculate-co2e/points/

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

## Production BOM Header.OnAfterGetRecord

[Line 20](https://jonas-paprotka.de/ref/report/6216-sust-prod-bom-calculate-co2e/source/#L20), trigger.

- [28](https://jonas-paprotka.de/ref/report/6216-sust-prod-bom-calculate-co2e/source/#L28) calls `OpenDialog`
- [31](https://jonas-paprotka.de/ref/report/6216-sust-prod-bom-calculate-co2e/source/#L31) calls `UpdateCO2ePerUnit`
- [32](https://jonas-paprotka.de/ref/report/6216-sust-prod-bom-calculate-co2e/source/#L32) calls `UpdateDialog`
- [34](https://jonas-paprotka.de/ref/report/6216-sust-prod-bom-calculate-co2e/source/#L34) calls `CommitRecord`
- [37](https://jonas-paprotka.de/ref/report/6216-sust-prod-bom-calculate-co2e/source/#L37) calls `CloseDialog`
- [40](https://jonas-paprotka.de/ref/report/6216-sust-prod-bom-calculate-co2e/source/#L40) calls `ShowCompletionMsg`

## UpdateCO2ePerUnit

[Line 96](https://jonas-paprotka.de/ref/report/6216-sust-prod-bom-calculate-co2e/source/#L96), local.

- [103](https://jonas-paprotka.de/ref/report/6216-sust-prod-bom-calculate-co2e/source/#L103) calls [Codeunit 99000756 VersionManagement](https://jonas-paprotka.de/ref/codeunit/99000756-versionmanagement/) `GetBOMVersion`
- [112](https://jonas-paprotka.de/ref/report/6216-sust-prod-bom-calculate-co2e/source/#L112) validates [Table 99000772 Production BOM Line](https://jonas-paprotka.de/ref/table/99000772-production-bom-line/) `CO2e per Unit`
- [113](https://jonas-paprotka.de/ref/report/6216-sust-prod-bom-calculate-co2e/source/#L113) validates [Table 99000772 Production BOM Line](https://jonas-paprotka.de/ref/table/99000772-production-bom-line/) `CO2e Last Date Modified`
- [115](https://jonas-paprotka.de/ref/report/6216-sust-prod-bom-calculate-co2e/source/#L115) writes [Table 99000772 Production BOM Line](https://jonas-paprotka.de/ref/table/99000772-production-bom-line/) Modify
- [117](https://jonas-paprotka.de/ref/report/6216-sust-prod-bom-calculate-co2e/source/#L117) writes [Table 99000772 Production BOM Line](https://jonas-paprotka.de/ref/table/99000772-production-bom-line/) Modify(true)

## Source

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

JOP-AL, 2026-11-20.
