---
id: object/tableextension/6217
type: object
title: Table extension 6217 "Sust. Purch. Inv. Header"
summary: Table extension 6217 "Sust. Purch. Inv. Header" in Sustainability (Microsoft.Sustainability.Purchase), extends "Purch. Inv. Header". 5 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: 7cf60711977a153a365928a52c70f260bbee7c806f643d03abb8f20feac61ba4
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Sustainability/app/src/Purchase/SustPurchInvHeader.TableExt.al
    title: src/Apps/W1/Sustainability/app/src/Purchase/SustPurchInvHeader.TableExt.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/table/122
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: tableextension
object_id: 6217
name: Sust. Purch. Inv. Header
namespace: Microsoft.Sustainability.Purchase
app: Sustainability
extends: Purch. Inv. 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: 5
  procedures: 0
  events: 0
  subscribers: 0
relations:
  out: 6
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table extension 6217 "Sust. Purch. Inv. Header"

> Table extension 6217 "Sust. Purch. Inv. Header" in Sustainability (Microsoft.Sustainability.Purchase), extends "Purch. Inv. Header". 5 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/SustPurchInvHeader.TableExt.al) · facts from BC29

Extends [Purch. Inv. Header](../table/122.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("Purch. Inv. Line" where("Sust. Account No." = filter('<>'''''), "Document No." = field("No."))); not editable |
| 6211 | Emission C02 | Decimal | Specifies the C02 emissions. <small>via [Page extension 6220 "Sust. Purch. Invoice Stats."](../pageextension/6220.md)</small> | FlowField: sum("Sustainability Ledger Entry"."Emission CO2" where("Document No." = field("No."), "Document Type" = filter(Invoice \| "GHG Credit"))); not editable |
| 6212 | Emission CH4 | Decimal | Specifies the CH4 emissions. <small>via [Page extension 6220 "Sust. Purch. Invoice Stats."](../pageextension/6220.md)</small> | FlowField: sum("Sustainability Ledger Entry"."Emission CH4" where("Document No." = field("No."), "Document Type" = filter(Invoice \| "GHG Credit"))); not editable |
| 6213 | Emission N2O | Decimal | Specifies the N2O emissions. <small>via [Page extension 6220 "Sust. Purch. Invoice Stats."](../pageextension/6220.md)</small> | FlowField: sum("Sustainability Ledger Entry"."Emission N2O" where("Document No." = field("No."), "Document Type" = filter(Invoice \| "GHG Credit"))); not editable |
| 6214 | Energy Consumption | Decimal | Specifies the Energy Consumption. <small>via [Page extension 6220 "Sust. Purch. Invoice Stats."](../pageextension/6220.md)</small> | FlowField: sum("Sustainability Ledger Entry"."Energy Consumption" where("Document No." = field("No."), "Document Type" = filter(Invoice \| "GHG Credit"))); not editable |

## Relations

- extends [Table 122 "Purch. Inv. Header"](../table/122.md)
- Sustainability Lines Exist: CalcFormula [Table 123 "Purch. Inv. Line"](../table/123.md)
- Emission C02: CalcFormula [Table 6216 "Sustainability Ledger Entry"](../table/6216.md)
- Emission CH4: CalcFormula [Table 6216 "Sustainability Ledger Entry"](../table/6216.md)
- Emission N2O: CalcFormula [Table 6216 "Sustainability Ledger Entry"](../table/6216.md)
- Energy Consumption: CalcFormula [Table 6216 "Sustainability Ledger Entry"](../table/6216.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: "Sust. Purch. Inv. Header")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
