---
title: "Codeunit 6261 Sust. ESG Reporting Post. Mgt, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/points/
object: https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/
app: "Sustainability"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-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 6261 Sust. ESG Reporting Post. Mgt, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/points/

7 procedures and triggers with a step in src/Apps/W1/Sustainability/app/src/ESGReporting/SustESGReportingPostMgt.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 16](https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/#L16), trigger.

- [22](https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/#L22) calls `RunWithCheck`

## RunWithCheck

[Line 25](https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/#L25), internal.

- [27](https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/#L27) calls [Table 6217 Sustainability Setup](https://jonas-paprotka.de/ref/table/6217-sustainability-setup/) `GetRecordOnce`
- [33](https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/#L33) calls `CheckAndCreatePostedDocument`

## PostESGReport

[Line 36](https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/#L36), internal.

- [41](https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/#L41) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponseOrDefault`
- [47](https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/#L47) calls `RunWithCheck`
- [50](https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/#L50) calls `UpdateESGReportingName`

## CheckAndCreatePostedDocument

[Line 57](https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/#L57), local.

- [59](https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/#L59) calls `ValidateESGReporting`
- [61](https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/#L61) calls `InsertPostedHeader`
- [62](https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/#L62) calls `ProcessPostLines`

## InsertPostedHeader

[Line 77](https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/#L77), local.

- [83](https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/#L83) calls [Codeunit 310 No. Series](https://jonas-paprotka.de/ref/codeunit/310-no-series/) `GetNextNo`
- [84](https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/#L84) writes [Table 6231 Sust. Posted ESG Report Header](https://jonas-paprotka.de/ref/table/6231-sust-posted-esg-report-header/) Insert

## ProcessPostLines

[Line 87](https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/#L87), local.

- [91](https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/#L91) calls `SetDateFilter`
- [92](https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/#L92) calls [Codeunit 6260 Sust. ESG Reporting Helper Mgt](https://jonas-paprotka.de/ref/codeunit/6260-sust-esg-reporting-helper-mgt/) `InitializeRequest`
- [97](https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/#L97) calls [Table 6232 Sust. Posted ESG Report Line](https://jonas-paprotka.de/ref/table/6232-sust-posted-esg-report-line/) `CopyFromESGReportingLine`
- [100](https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/#L100) calls [Codeunit 6260 Sust. ESG Reporting Helper Mgt](https://jonas-paprotka.de/ref/codeunit/6260-sust-esg-reporting-helper-mgt/) `CalcLineTotal`
- [101](https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/#L101) writes [Table 6232 Sust. Posted ESG Report Line](https://jonas-paprotka.de/ref/table/6232-sust-posted-esg-report-line/) Insert

## UpdateESGReportingName

[Line 105](https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/#L105), local.

- [107](https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/#L107) validates [Table 6229 Sust. ESG Reporting Name](https://jonas-paprotka.de/ref/table/6229-sust-esg-reporting-name/) `Posted`
- [108](https://jonas-paprotka.de/ref/codeunit/6261-sust-esg-reporting-post-mgt/source/#L108) writes [Table 6229 Sust. ESG Reporting Name](https://jonas-paprotka.de/ref/table/6229-sust-esg-reporting-name/) Modify

## Source

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

JOP-AL, 2026-11-20.
