Transaction Data
Greenhouse Gas Emissions
The Analytic Model Green Ledger: Emission KPI (RL) (SAP_GRL_RL_EmissionKPI) is one of the basic objects of the reporting layer and provides greenhouse gas emissions reporting functionality within SAP Datasphere. For example: reporting emission amounts among given periods, by company code, by segment, as well as by different GHG scopes, energy classifications, modes of transport. The business logic of the analytic model is to be exposed to SAP Analytics Cloud to provide a GHG overview report to customers.
The transactional data model Emission KPI (HL) (SAP_GRL_HL_EmissionKPI), on which the analytic model is based, is inherited from two parts:

-
In the harmonization layer view Green Ledger: Journal Entry Emission - Leading Ledger Unit Conversion (HL)(SAP_GRL_HL_JrnlEntrEmissionLdngLdgrUntCnvrsn), the emission amount is converted according to the given Unit of Measure.
-
The harmonization layer view Green Ledger: Journal Entry Emission - Leading Ledger (HL) (SAP_GRL_HL_JournalEntryEmissionLeadingLedger) includes Journal Entry Emission Items in the leading ledger. The inbound layer view Green Ledger: Journal Entry Emission (IL) (SAP_GRL_IL_JournalEntryEmission) is from the local table Green Ledger: Journal Entry Emissions (LT) (SAP_GRL_SRC_JournalEntryEmissions), and filters emission transaction data in the leading ledger using an inner join with the view Ledger (SAP_FI_Ledger) from the Finance Foundation package.

Greenhouse Gas Emissions Combined with Other Financial KPIs
The Analytic Model Green Ledger: G/L Account Semantic Tag (RL) (SAP_GRL_RL_GLAccountSemTagKPI) is also one of the basic objects of the reporting layer and provides greenhouse gas emission figures combined with financial amounts functionality within SAP Datasphere. The business logic of the analytic model is to be exposed to SAP Analytics Cloud to report greenhouse gas emissions KPIs combined with financial KPIs to customers.
The transactional data model Green Ledger: G/L Account Semantic Tag (HL) (SAP_GRL_HL_GLAccountSemTagUnion), on which the analytic model is based, contains two union nodes that union the three sources of data marked in different colors.

Therefore, we obtain transaction data from three sources including the following three measures:

-
Emission Amount
The measure Emission Amount is from the harmonization layer view Green Ledger: Journal Entry Emission - Leading Ledger Unit Conversion (HL) (SAP_GRL_HL_JrnlEntrEmissionLdngLdgrUntCnvrsn), which has been explained in the previous section.
-
Emission Amount by Semantic Tag G/L Account
The measure Emission Amount is from the harmonization layer view Green Ledger: Journal Entry Emission - Leading Ledger Unit Conversion (HL) (SAP_GRL_HL_JrnlEntrEmissionLdngLdgrUntCnvrsn) joined with an inbound layer view G/L Account with Semantic Tag (IL) (SAP_FI_IL_SemTagGLAccount) from the Finance Foundation package, so that all emission transaction data would include semantic tag information. These semantic tags are used for calculating measures and KPIs for analytical reports. Find more information in Semantic Tags. Thus, we can calculate later emissions from given financial positions.
-
Amount in Currency Role Currency
The measure Amount in Currency Role Currency is from the harmonization layer view G/L Account Semantic Tag Currency Role Currency (HL) (SAP_FI_HL_GLAccountSemTagRoleCurrency) from the Finance Foundation package. It contains financial figures of each G/L Account tagged with semantic tags in currency role currency. Thus, we can calculate later finance KPIs from given financial positions.
Comparison to the Period of Previous Year
The analytic model Green Ledger: Emission Comparison KPI (RL) (SAP_GRL_RL_EmissionComparisonKPI) is based on the analytic model Green Ledger: Emission KPI (RL) (SAP_GRL_RL_EmissionKPI), providing additional functionality enabling comparison KPIs to the period of the previous year. The same logic also applies to the analytic model Green Ledger: G/L Account Semantic Tag Comparison Union KPI (RL) (SAP_GRL_RL_GLAcctSemTagCmpUKPI) based on the analytic model Green Ledger: G/L Account Semantic Tag (RL) (SAP_GRL_RL_GLAccountSemTagKPI).
The transactional data model Green Ledger: Emission Comparison KPI (HL) (SAP_GRL_HL_EmissionComparisonKPI), on which the analytic model Green Ledger: Emission Comparison KPI (RL) (SAP_GRL_RL_EmissionComparisonKPI) is based, is from a harmonization layer view Green Ledger: Emission Comparison (HL) (SAP_GRL_HL_EmissionComparison).

The harmonization layer view Green Ledger: Emission Comparison (HL) (SAP_GRL_HL_EmissionComparison) is an SQL view. The key logic is to let the harmonization layer view Green Ledger: Journal Entry Emission - Leading Ledger Unit Conversion (HL) (SAP_GRL_HL_JrnlEntrEmissionLdngLdgrUntCnvrsn) self-join on "FiscalYear = ( FiscalYear + 1)", so that we get comparison KPIs for the period of previous year.

The same logic also applies to the analytic model Green Ledger: G/L Account Semantic Tag Comparison Union KPI (RL) (SAP_GRL_RL_GLAcctSemTagCmpUKPI). So we skip the details here.
CO2e Flow Statement
The Analytic Model Green Ledger: SAP_GRL_RL_Co2eFlowStatement_V2 (RL) is one of the objects of the reporting layer that provides greenhouse gas CO2e flow amounts functionality within SAP Datasphere. The business logic of the analytic model is to be exposed to SAP Analytics Cloud to provide a CO2e Flow statement with a CO2e quantities report to customers. Calculate the FSV of Asset, Cost of Goods Sold, P&L result + Cost of Goods Sold, the initial emissions, emissions during the period, and end-of-period emissions combined into one table.
|
Change in CO2e during period |
CO2e acquired from suppliers + CO2e directly produced through operations +/- CO2e transferred to/from customer |
|
Opening CO2e |
Calculation from previous period |
|
Closing CO2e |
For current period |
|
CO2e Transferred to customers |
This is carbon only account (GHG Liabilities Transferred to Customers), Carbon-Only Accounts but as for the balance sheet report – before the balance carry forward happens, this number needs to be taken from the revenue/COGS position of the P&L |
|
CO2e capitalized on asset positions |
This is calculated from what was added to all B/S accounts sitting on the asset side of the balance sheet |
|
CO2e from OPEX not allocated to asset options |
This is carbon only account (GHG Liabilities from OPEX Not Transferred to Customers) but as for the balance sheet report – before the balance carry forward happens, this number needs to be taken from the non-revenue/COGS related section of the P&L |

Financial Statement with CO2e Quantities
The analytic model Green Ledger: Carbon Account G/L Account KPI (RL) (SAP_GRL_RL_AccountGLAccountKPI_V2) is one of the objects of the reporting layer that provides greenhouse gas emission figures combined with financial amounts functionality within SAP Datasphere. The business logic of the analytic model is to be exposed to SAP Analytics Cloud to provide a financial statement with the CO2e quantities report to customers.
The harmonization layer view Green Ledger: Account and G/L Account Union - Closing (HL) (SAP_GRL_HL_AccountGLAccountUnionClosing), on which the analytic model is based, is a thin projection layer over a parameterized view Green Ledger: Account and G/L Account Union - Opening (HL) (SAP_GRL_HL_AccountGLAccountUnionOpening), adding only the closing-amount calculations, combining GL account line-item movements with an opening balance to produce both a changing amount (period movements) and a derived closing amount for emissions and financials.
The harmonization layer view Green Ledger: Account and G/L Account Union - Opening (HL) (SAP_GRL_HL_AccountGLAccountUnionOpening) consumes Green Ledger: Account and G/L Account Union – Changing (HL) (SAP_GRL_HL_AccountGLAccountUnionChanging), a parameterized table function — provides period-level changing amounts. What it computes:
|
Output Column |
Logic |
|---|---|
|
EmissionChangingAmount |
Direct alias of EmissionAmount — the period's emission delta |
|
EmissionOpeningAmount |
Running sum of all prior periods' EmissionAmount via window function (cumulative up to, but not including, current period). Defaults to 0.0 for the first period. |
|
AmountChangingAmount |
Direct alias of AmountInCurrencyRoleCurrency — the period's financial delta |
|
AmountOpeningAmount |
Same window logic for financial amounts, but FiscalYear is also included in the PARTITION (emission opening omits FiscalYear, amount opening includes it — opening balance resets per year for amounts). |
|
Partition key for window functions |
|
|
Both use: FiscalYearVariant, CompanyCode, ProfitCenter, CostCenter, ControllingArea, ChartOfAccounts, Segment, UnitOfMeasure, CurrencyRoleCurrency, GLAccount, Supplier, TradingPartner, WBSElementInternalID, Currency AmountOpeningAmount additionally partitions by FiscalYear (resets annually) |
|
|
Filter |
|
|
FiscalPeriod != '000' — excludes the special opening-balance carry-forward period. |
|
Notable difference between emissions and amounts: The emission opening balance accumulates across fiscal years (no FiscalYear in partition). In contrast, the opening balance resets each fiscal year — suggesting emissions are tracked on a cumulative/stock basis while financials are period-based.

EU CBAM Carbon Liability
The analytic model Green Ledger: CBAM G/L Account Semantic Tag KPI (RL) (SAP_GRL_RL_CbamGLAccountSemTagKPI) is one of the objects of the reporting layer and provides EU CBAM carbon liability figures combined with greenhouse gas emission figures and financial amounts within SAP Datasphere. The analytic model's business logic will be integrated with SAP Analytics Cloud to produce the EU CBAM Overview – KPIs and Trends report for customers. This report will provide a comprehensive view of the EU CBAM carbon liability exposure and its impact on profitability. It will include key metrics such as carbon liability costs, the total cost of goods sold (including carbon liability costs), and the carbon certificates that need to be surrendered. Additionally, the report will compare these figures to the previous year's data, allowing for the visualization of trends through charts.
-
G/L Account Semantic Tag (emissions and financials): The harmonization layer view Green Ledger: G/L Account Semantic Tag Currency Role Currency Comparison (HL) (SAP_GRL_HL_GLAccountSemTagCrcyRoleCrcyComp) provides the financial amount in currency role currency by semantic tag G/L account, each already enriched with the comparison to the period of the previous year. This is the same semantic-tag logic described in sections "Greenhouse Gas Emissions Combined with Other Financial KPIs" and "Comparison to the Period of Previous Year" and lets finance KPIs be calculated from the given financial positions.
-
CBAM Carbon Collection Liabilities: The harmonization layer view Green Ledger: CBAM Carbon Collection Liabilities Comparison (HL) (SAP_GRL_HL_CbamCarbonCollectionLiabilitiesComparison) provides the CBAM carbon collection liability figures, including imported embedded emissions and the carbon certificates to surrender, also with the comparison to the previous year. It is built from the CBAM transaction data in the leading ledger, the inbound layer view Green Ledger: CBAM Carbon Collection Liabilities (IL) (SAP_GRL_IL_CbamCarbonCollectionLiabilities), which reads from the local table Green Ledger: CBAM Carbon Collection Liabilities (LT) (SAP_GRL_SRC_CbamCarbonCollectionLiabilities). The data is then successively processed through :
-
(SAP_GRL_HL_CbamCarbonCollectionLiabilitiesAddLeadingZeros) the harmonization layer views to add leading zeros
-
(SAP_GRL_HL_CbamCarbonCollectionLiabilitiesLeadingLedger) to filter to the leading ledger
-
(SAP_GRL_HL_CbamCarbonCollectionLiabilitiesLdngLdgrUntCnvrsn) to convert the emission unit of measure
-
(SAP_GRL_HL_CbamCarbonCollectionLiabilitiesComparison) to derive the previous-year comparison
-
By grouping these two sources, the analytic model exposes carbon liability, emissions, and financial measures (and their previous-year counterparts) side by side, so SAP Analytics Cloud can show how carbon costs affect margins over time. The ETS-price simulation on the EU CBAM Overview – KPIs and Trends page is applied on top of these figures in the SAP Analytics Cloud story. The analytic model is parameterized with the display weight unit (P_DISPLAYWEIGHTUNIT), the currency role currency (P_CURRENCYROLECURRENCY), and the G/L account hierarchy (P_GLACCOUNTHIERARCHY).