---
id: object/tableextension/6212
type: object
title: Table extension 6212 "Sustainability Purch. Header"
summary: Table extension 6212 "Sustainability Purch. Header" in Sustainability (Microsoft.Sustainability.Purchase), extends "Purchase Header". 11 fields. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - tableextension
  - sustainability
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 9e74cf654f5b5c7e2768fe0a637cc0735d62b79eb0c3577e32bfea8721b7af01
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Sustainability/app/src/Purchase/SustainabilityPurchHeader.TableExt.al
    title: src/Apps/W1/Sustainability/app/src/Purchase/SustainabilityPurchHeader.TableExt.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/table/38
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: tableextension
object_id: 6212
name: Sustainability Purch. Header
namespace: Microsoft.Sustainability.Purchase
app: Sustainability
extends: Purchase Header
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 11
  procedures: 0
  events: 0
  subscribers: 0
relations:
  out: 12
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table extension 6212 "Sustainability Purch. Header"

> Table extension 6212 "Sustainability Purch. Header" in Sustainability (Microsoft.Sustainability.Purchase), extends "Purchase Header". 11 fields. Introduced in BC29, still in BC30.

Sustainability · Microsoft.Sustainability.Purchase · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Sustainability/app/src/Purchase/SustainabilityPurchHeader.TableExt.al) · facts from BC29

Extends [Purchase Header](../table/38.md).

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 6210 | Sustainability Lines Exist | Boolean | — | FlowField: exist("Purchase Line" where("Sust. Account No." = filter('<>'''''), "Document No." = field("No."))); not editable |
| 6211 | Emission C02 | Decimal | Specifies the Emission C02 for Purchase Order <small>via [Page extension 6217 "Sust. Purch. Order Stats."](../pageextension/6217.md)</small> | FlowField: sum("Purchase Line"."Emission CO2" where("Document Type" = field("Document Type"), "Document No." = field("No."))); not editable |
| 6212 | Emission CH4 | Decimal | Specifies the Emission CH4 for Purchase Order <small>via [Page extension 6217 "Sust. Purch. Order Stats."](../pageextension/6217.md)</small> | FlowField: sum("Purchase Line"."Emission CH4" where("Document Type" = field("Document Type"), "Document No." = field("No."))); not editable |
| 6213 | Emission N2O | Decimal | Specifies the Emission N2O for Purchase Order <small>via [Page extension 6217 "Sust. Purch. Order Stats."](../pageextension/6217.md)</small> | FlowField: sum("Purchase Line"."Emission N2O" where("Document Type" = field("Document Type"), "Document No." = field("No."))); not editable |
| 6214 | Posted Emission C02 | Decimal | Specifies the Posted Emission C02 for Purchase Order <small>via [Page extension 6217 "Sust. Purch. Order Stats."](../pageextension/6217.md)</small> | FlowField: sum("Purchase Line"."Posted Emission CO2" where("Document Type" = field("Document Type"), "Document No." = field("No."))); not editable |
| 6215 | Posted Emission CH4 | Decimal | Specifies the Posted Emission CH4 for Purchase Order <small>via [Page extension 6217 "Sust. Purch. Order Stats."](../pageextension/6217.md)</small> | FlowField: sum("Purchase Line"."Posted Emission CH4" where("Document Type" = field("Document Type"), "Document No." = field("No."))); not editable |
| 6216 | Posted Emission N2O | Decimal | Specifies the Posted Emission N2O for Purchase Order <small>via [Page extension 6217 "Sust. Purch. Order Stats."](../pageextension/6217.md)</small> | FlowField: sum("Purchase Line"."Posted Emission N2O" where("Document Type" = field("Document Type"), "Document No." = field("No."))); not editable |
| 6217 | Energy Consumption | Decimal | Specifies the Energy Consumption for Purchase Order <small>via [Page extension 6217 "Sust. Purch. Order Stats."](../pageextension/6217.md)</small> | FlowField: sum("Purchase Line"."Energy Consumption" where("Document Type" = field("Document Type"), "Document No." = field("No."))); not editable |
| 6218 | Posted Energy Consumption | Decimal | Specifies the Posted Energy Consumption for Purchase Order <small>via [Page extension 6217 "Sust. Purch. Order Stats."](../pageextension/6217.md)</small> | FlowField: sum("Purchase Line"."Posted Energy Consumption" where("Document Type" = field("Document Type"), "Document No." = field("No."))); not editable |
| 6219 | Total Emission Cost | Decimal | Specifies the Total CBAM Cost for Purchase Order <small>via [Page extension 6217 "Sust. Purch. Order Stats."](../pageextension/6217.md)</small> | FlowField: sum("Purchase Line"."Total Emission Cost" where("Document Type" = field("Document Type"), "Document No." = field("No."))); not editable |
| 6220 | Posted Total Emission Cost | Decimal | Specifies the Posted Total Emission Cost for Purchase Order <small>via [Page extension 6217 "Sust. Purch. Order Stats."](../pageextension/6217.md)</small> | FlowField: sum("Purchase Line"."Posted Total Emission Cost" where("Document Type" = field("Document Type"), "Document No." = field("No."))); not editable |

## Relations

- extends [Table 38 "Purchase Header"](../table/38.md)
- Emission C02: CalcFormula [Table 39 "Purchase Line"](../table/39.md)
- Emission CH4: CalcFormula [Table 39 "Purchase Line"](../table/39.md)
- Emission N2O: CalcFormula [Table 39 "Purchase Line"](../table/39.md)
- Energy Consumption: CalcFormula [Table 39 "Purchase Line"](../table/39.md)
- Posted Emission C02: CalcFormula [Table 39 "Purchase Line"](../table/39.md)
- Posted Emission CH4: CalcFormula [Table 39 "Purchase Line"](../table/39.md)
- Posted Emission N2O: CalcFormula [Table 39 "Purchase Line"](../table/39.md)
- Posted Energy Consumption: CalcFormula [Table 39 "Purchase Line"](../table/39.md)
- Posted Total Emission Cost: CalcFormula [Table 39 "Purchase Line"](../table/39.md)
- Sustainability Lines Exist: CalcFormula [Table 39 "Purchase Line"](../table/39.md)
- Total Emission Cost: CalcFormula [Table 39 "Purchase Line"](../table/39.md)

## Across versions

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

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). 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: "tableextension", object_name: "Sustainability Purch. Header")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
