This is my second article about Commodity Management area to explain the basics of it. The first article with positioning of SAP Commodity Management for Chemicals is here: Commodity Management in the Chemical Industry: Why… – SAP Community.
Commodity management is one of the most technically rich and financially sophisticated areas of enterprise software. If you are new to this domain – whether as a business analyst, consultant, developer, or someone recently assigned to a commodity management project – the terminology and concepts can be overwhelming.
This article breaks down the key concepts from first principles: what commodities are, how pricing works, where market data comes from, what kinds of risk exist and how they are measured, what Mark-to-Market means and why accountants and risk managers care deeply about it, and how hedging instruments are used to protect company margins.
1. What Is a Commodity?
A commodity is a good that is actively resold on organised global markets, including stock exchanges. Commodities are standardised and globally interchangeable – one tonne of grade-A copper from Chile is effectively identical in value to one tonne of grade-A copper from Zambia, as determined by the global market.
Commodities share a set of defining characteristics that set them apart from manufactured goods:
- Large volumes – traded in tonnes, cubic metres, or barrels
- Global trade – crossing continents on vessels, pipelines, and rail
- Standardisation – specifications defined by exchanges or industry bodies
- Market-driven prices – determined by the balance of global supply and demand, not bilateral negotiation
- High share of forward transactions – contracts are often agreed months before delivery
- Exchange-traded and over-the-counter (OTC) variants – traded both on formal exchanges and directly between parties
For the chemical industry, the most relevant commodity categories are Chemicals (acids, ammonia, monomers, polymers, fertilizers), Energy (crude oil, gas, LPG, fuels), Base Metals (copper, zinc, nickel, aluminium), and Grains and Seeds (corn, wheat, soybeans, palm oil).
The business participants in commodity markets fall into four roles: First Producers (who extract or generate the raw material), Traders (who buy and sell for margin), Converters (who process commodities into higher-value products), and Consumers (end users of the commodity).
2. The Commodity Data Structure in SAP
In SAP's commodity management solution, the data model has a structured hierarchy that reflects the real world of commodity trading. Understanding this structure is essential before diving into pricing or risk.
Abstract Commodity
The highest-level definition of a commodity type (e.g., COPPER, AMMONIA). It defines the category (Energy, Metals, Agro), the unit of measurement, the base currency, and references to the relevant trading venues and derivative contract specifications.
Real Commodity
A commodity defined for a specific market venue. For example, COPPER_FC12_XLME represents copper futures contract 12 months out on the London Metal Exchange (LME). The Real Commodity references both the Abstract Commodity and a specific Market Identifier Code (MIC).
Market Identifier Code (MIC)
A standardised 4-letter code identifying the trading venue (e.g., XLME for the London Metal Exchange, XNYM for NYMEX). In SAP, MICs can also be custom-defined for OTC markets. The MIC includes working hours calendars, country and city links, and references to the venue website.
Derivative Contract Specification (DSC)
The most technically precise element – the DSC defines the exact specifications of a tradeable contract on a commodity exchange. It includes:
- The underlying physical commodity
- Unit of measurement and contract currency
- The MIC of the trading venue
- Contract volume and coding rules
- Contract term determination rules
- Quotation rules (including quotation step)
Market price data (quotations) are stored against the DSC, with records containing pricing date, maturity date, price, currency, and unit of measurement. This is the data that feeds both the Commodity Pricing Engine and the Risk Management module.
3. Formula Pricing: The Commodity Pricing Engine (CPE)
One of the most powerful and complex aspects of commodity management is pricing. Unlike standard business-to-business pricing where a price is agreed and fixed at the time of contract, commodity pricing is formula-driven and market-linked.
Commodity Pricing Engine (CPE)
The CPE is SAP's framework for defining, storing, and calculating sophisticated pricing rules based on market data, quality parameters, delivery terms, and other commercial factors. It allows a single contract to contain pricing that automatically updates as market conditions change.
The CPE supports the following pricing elements:
- Market-data-based pricing – prices directly linked to a commodity index or exchange
- Fixed pricing – a non-market component, for example a logistics surcharge
- Indexed pricing – prices derived from an average of an index over a specified period
- Combination pricing – mixing indexed and fixed elements in a single formula
- Provisional price rules – an estimated price set at the time of shipment, based on available market data
- Final price rules – the binding price calculated after all conditions are met (delivery confirmed, quality results received, pricing period elapsed)
- Differential rules (basis pricing) – a premium or discount applied relative to a benchmark index
- Quality-driven adjustments – bonuses or penalties based on actual chemical composition, moisture content, or purity measured at delivery
- Partial quantity pricing – different rules for different volume bands or delivery tranches
A Real-World Pricing Formula Example
Example: Potassium Chloride Purchase — CPE Formula
Final Price per Tonne =
MIN(
Average LME Copper price over last 30 calendar days,
Average FOREX Kali quote over last 14 calendar days
)
+ EUR 10 / TON (transport differential)
+ Quality Adjustment (based on active substance %)
Quality Adjustment Examples:
Active substance > 40% → adjustment 0%
Active substance > 41% → adjustment +1% + EUR 0.50 / TON
Active substance > 42% → adjustment +1.2% + EUR 0.50 / TON
This example illustrates the multi-dimensional nature of commodity pricing. The system must know the current and historical market quotes, the physical composition of the delivered goods, the applicable averaging period, and the differential — all before it can calculate a final invoice. The CPE automates all of this.
Provisional and Final Invoicing
Because final prices depend on conditions that are not yet known at the time of shipment, commodity contracts typically use a two-stage invoicing process:
- Provisional invoice – issued at the time of shipment, based on estimated market data and provisionally agreed terms. This enables cash flow while the final conditions are being determined.
- Differential and final invoice – issued once all conditions are met. If the final price differs from the provisional price, a credit or debit memo is generated automatically.
4. Market Data Sources
For the CPE and risk management to function, the system needs reliable, timely market price data. SAP integrates with the world's leading commodity price reporting agencies and exchanges.
-
Platts (S&P Global) | Energy commodities: crude oil, refined products, LNG, petrochemicals
-
Argus Media | Energy, fertilizers, chemicals; known for ammonia and fertilizer pricing
-
LME (London Metal Exchange) | Base metals: copper, zinc, nickel, lead, aluminium, tin
-
NYMEX / CME | US energy futures: WTI crude oil, natural gas, heating oil
-
Bloomberg | Broad financial and commodity data: FX rates, interest rates, commodity indices
-
Fastmarkets | Metals, forest products, agricultural inputs; formerly Metal Bulletin
SAP supports three methods for getting market data into the system:
- Manual entry – for smaller operations or non-standard prices
- Predefined format upload – batch imports from price agencies in standard file formats
- Automated data feed – real-time or end-of-day automated integration with price providers
All market data is maintained centrally against commodity quotations, which are then referenced by pricing formulas and risk positions throughout the system.
5. Understanding Risk in Commodity Management
Any company that buys or sells commodities at prices linked to market indices is exposed to financial risk. If the price moves unfavourably between the time a contract is signed and the time it is settled, the company loses money. Managing this risk — identifying, quantifying, and mitigating it – is the core function of commodity risk management.
SAP Commodity Risk Management recognises three primary categories of financial risk:
- FX Currency Risk
- The risk of loss from a change in foreign exchange rates between contract conclusion and payment settlement. Most commodity contracts are denominated in USD, but costs and revenues may be in local currency
- %% Interest Rate Risk
- The risk of financial loss from a change in interest rates on deposits or loans. Relevant when commodity contracts involve deferred payment terms or are financed through floating-rate facilities.
Risk in context: Consider a company that signs a contract in October to purchase 10,000 tonnes of Potassium for delivery in March at the LME price prevailing in February. If Potassium prices fall sharply by February, the company will pay the prevailing lower price – but if it also has a sales contract at a price linked to October prices, it faces a mismatch. The commodity price risk is the financial exposure from this mismatch.
6. How Risk Is Calculated: Exposure Items and Risk Positions
In SAP's risk management model, every commercial transaction that carries price or currency risk is transformed into a risk position. This transformation follows a specific structure:
From Raw Items to Exposure Items
Raw items are the source transactions: trading contracts, sales orders, purchase orders, or financial transactions. Each raw item potentially carries an assumed risk.
The system analyses the pricing formula for each raw item and creates one or more Exposure Items for each risk factor found in the formula. If a contract price is based on 50% of the LME Potassium index for November and 50% of a FOREX rate, two exposure items are created – one for the commodity price risk and one for the currency risk – proportionate to the weights in the formula.
Risk Position Calculation
When a new contract is created or changed, the system automatically creates a new version of the assumed risk, containing the deltas compared to the previous version. The current version (ID “0”) is always the active one used in calculations.
Risk positions can be created in three ways:
- Automatically from SAP GTM, SD, or MM transactions – the most common approach, where the system extracts risk positions from logistics and trading documents without manual intervention
- Via BAPI from external systems – for integration with non-SAP trading systems
- Manually or via Excel upload – for exceptional cases or legacy data migration
The risk percentage applied to each exposure item reflects the weight of the corresponding index in the pricing formula. A contract priced at 60% of one index and 40% of another will generate two exposure items at 60% and 40% of the contract volume respectively.
7. Mark-to-Market (MtM): What It Is and Why It Matters
Key Concept
Mark-to-Market (MtM)
Mark-to-Market is the process of revaluing an open position (a contract, a futures contract, an option) at its current market value on a given date – rather than at its original contracted price.
Put simply: if you have a contract to buy 1,000 tonnes of Potassium at USD 9,000/tonne in December, but today's market price for December copper is USD 9,500/tonne, your position has an unrealised gain of USD 500,000. MtM captures and reports this unrealised gain (or loss) in real time.
MtM Value = Market Price (on valuation date) × Position Volume
Unrealised P&L = MtM Value − Contracted Value
For Futures/Forwards/SWAPs:
MtM = Volume × (Futures index price for fixing period − Fixed contract price)
For options and swaptions, MtM is calculated using the Black-Scholes model (for commodity options) or the Hull-White model (for interest rate options), which account for time value and volatility.
Why MtM Matters for Financial Reporting
Mark-to-Market is not just a risk management tool – it is an accounting requirement. Under IFRS (International Financial Reporting Standards) and US GAAP, companies must disclose the fair value of their financial instruments and commodity derivatives in their financial statements. This requires:
- Regular (usually daily or monthly) revaluation of all open commodity positions
- Recording of unrealised gains and losses through accruals in the general ledger
- Differentiated treatment of positions under Cash Flow Hedge accounting vs. Fair Value Hedge accounting
Without automated MtM, a company has no reliable picture of its true financial exposure on any given day. A commodities business operating without MtM is effectively flying blind from a financial risk perspective.
In SAP, the Market Risk Analyzer (MRA) performs MtM calculations automatically based on DSC-linked quotations, and the results feed directly into the financial accounting module for accrual postings.
8. Derivative Instruments: Tools for Managing Risk
A derivative is a financial contract whose value is derived from the price of an underlying asset – in this case, a commodity. Derivatives are the primary tools used to hedge commodity price risk. They fall into two categories: exchange-traded (ETD) and over-the-counter (OTC).
| Instrument | Type | Description | Use Case |
| Futures | ETD | A standardised exchange contract to buy or sell a fixed quantity of a commodity at a set price on a set future date. All terms except price and delivery date are fixed by the exchange. | Locking in a future purchase or sale price for a commodity; hedging price risk on physical contracts |
| Option | ETD / OTC | A contract giving the buyer the right but not the obligation to buy (Call) or sell (Put) an asset at a pre-agreed price. The buyer pays a premium. The seller is obligated to fulfil the contract if exercised. | Protecting against adverse price moves while retaining the ability to benefit from favourable moves. European options (exercise on expiry) and American options (exercise anytime) are supported. |
| Forward | OTC | The OTC equivalent of a Futures contract – not standardised, negotiated bilaterally between counterparties. Terms are flexible. Risk is reduced by collateral requirements. | Locking in FX rates for future payments; fixing commodity prices in markets where exchange-traded contracts are unavailable |
| Swap | OTC | A transaction where one party agrees to pay a fixed price on a set date and the other party pays the market price on that same date. The net difference is exchanged — not the physical commodity. | Converting floating-rate commodity exposure (index-linked) to a fixed price; converting floating interest rates to fixed rates |
| Swaption | OTC | An option to enter into a Swap transaction in the future at agreed parameters. The buyer pays a premium for the right — not the obligation — to execute the Swap. | Minimising future losses from periodic price fluctuations around an average level; used when the need for a Swap is anticipated but not yet confirmed |
Important note: The price of a derivative is related to the price of the underlying commodity but is not necessarily the same. Futures prices reflect the market's expectation of future spot prices, adjusted for carrying costs, storage, and time value — a relationship known as the “basis.”
9. Hedging: Linking Risk to Instruments
Hedging is the use of a derivative instrument to reduce the risk associated with the adverse impact of market factors on another instrument or transaction – a physical commodity contract, an anticipated future transaction, or a foreign currency payment. The goal is not to generate profit from the hedge itself, but to offset potential losses on the hedged item.
In SAP Commodity Risk Management, hedging is managed through a structured workflow that links physical contracts (the hedged items) to derivative instruments (the hedging instruments):
1 Register physical contracts with pricing formulas
- Commodity contracts are captured in the system with their CPE-based pricing rules, defining what market indices they are exposed to.
2 Identify and assess risks
- The system automatically generates risk positions (Exposure Items) from the contracts, quantifying the price and currency exposure by commodity, period, and amount.
3 Select hedging instruments
- Traders select appropriate derivative instruments (Futures, Forwards, Swaps, Options) to offset the identified exposure. The choice depends on the type of risk, the available exchange contracts, and the desired hedge structure.
4 Link hedged items to hedging instruments
- SAP links the exposure item (the risk position from the physical contract) to the derivative contract, creating the hedge relationship. This can be targeted (one-to-one, for specific contracts) or general (portfolio-level, aggregating all exposures of a given type).
5 Analyse hedging effectiveness
- The system continuously monitors whether the hedge is performing as intended — whether the gain on the derivative is offsetting the loss on the physical contract, and vice versa.
- When a derivative contract expires, is terminated, or the hedged transaction is no longer expected to occur, the hedge relationship is dissolved and the appropriate accounting entries are made.
Hedging Categories Under IFRS
IFRS 9 (and previously IAS 39) defines two primary categories of hedge accounting that companies must comply with when applying hedge accounting treatment:
- Cash Flow Hedge: Hedges the risk of variability in future cash flows. Example: a company has a floating-price commodity supply contract and buys a Swap to convert the variable price to a fixed one. The gain or loss on the Swap is recognised in Other Comprehensive Income (OCI) until the physical transaction occurs and affects profit or loss.
- Fair Value Hedge: Hedges the risk of changes in the fair value of a recognised asset or liability. Example: a company holds a fixed-price commodity contract on its books; it buys a Forward to offset the fair value change. Both the hedged item and the hedging instrument are marked to market through profit or loss each period.
10. Hedge Accounting and Effectiveness Testing
Hedge accounting is an optional — but extremely valuable – accounting treatment that allows a company to recognise the gains and losses of the hedged item and the hedging instrument in the same accounting period, reducing reported profit or loss volatility.
To qualify for hedge accounting, a hedge relationship must pass two types of effectiveness tests:
Hedging Effectiveness Criteria 80% – 125%
A hedge is considered effective if the retrospective effectiveness ratio K falls within this range:
K = MtM(Physical) / MtM(Hedged instrument)
Two testing phases are performed:
- Prospective testing – performed at each reporting date for future periods. It demonstrates that the selected hedge instrument is expected to be effective in offsetting the risk of the hedged item going forward. If this test fails, hedge accounting cannot be applied.
- Retrospective testing – performed for past periods. It confirms that the hedge has actually been effective over the measurement period. The ratio of MtM of the physical position to MtM of the hedge instrument must remain between 80% and 125%. If it falls outside this band, the hedge is considered ineffective and hedge accounting must be discontinued.
The amount of change in fair value determined by retrospective testing is used to calculate how much goes to Other Comprehensive Income vs. profit or loss for Cash Flow Hedge accounting.
11. The Full Commodity Management Workflow
Now that we have covered the key concepts, it helps to see how they connect in a complete end-to-end workflow. The diagram below reflects the integrated process flow in SAP:
- Deal capture: A trading contract is created in SAP GTM or CM for Physical Contracts, with the commodity, volumes, delivery schedule, counterparty, and CPE pricing formula defined.
- Order and call-off: Purchase or sales orders are created from the trading contract, specifying exact delivery dates and quantities.
- Logistics execution: Deliveries are made – by vessel, rail, or truck. Quantity and quality data is captured at loading and discharge. For bulk movements, TSW manages nominations, ticketing, and inventory.
- Risk identification: As contracts are created or modified, the system automatically generates risk positions (Exposure Items) based on the pricing formula.
- Hedging: The risk team links exposure items to derivative contracts (Futures, Swaps, Options) to neutralise the open market exposure.
- Mark-to-Market: Throughout the contract lifecycle, all open positions are regularly revalued against current market prices. Unrealised gains and losses are posted as accruals in the general ledger.
- Provisional invoicing: At shipment, a provisional invoice is generated based on estimated market data.
- Final invoicing: Once the pricing period ends and quality results are in, the final price is calculated by the CPE and the final invoice is issued. Any difference from the provisional invoice results in a credit or debit memo.
- Settlement: Payments are made. All cost components — freight, insurance, inspection fees — are rolled into the final landed cost of the commodity.
This workflow – and every handoff within it – is managed within a single SAP platform, ensuring that logistics actualisations automatically update risk positions, pricing engine inputs, and financial postings without manual reconciliation between systems.
Summary: What Every Newcomer Should Know
Commodity management is fundamentally about managing the financial consequences of market-price-linked transactions for large-volume goods. The core disciplines are: formula-driven pricing using the CPE; market data integration from exchanges and price agencies; risk identification across commodity price, FX, and interest rate dimensions; Mark-to-Market revaluation to maintain an accurate real-time picture of financial exposure; and hedging using derivative instruments to reduce or eliminate that exposure.
SAP's Commodity Risk Management module provides a complete, IFRS-compliant framework for all of these disciplines — integrated directly with the physical contract management, logistics, and financial accounting layers of the platform. The goal is a single, consistent view of positions, exposures, and hedges, updated in real time, with automated settlement and compliant accounting at every step.
If you are new to this area, the best next step is to explore SAP's Commodity Pricing Engine and Risk Analytics dashboards in a system environment — seeing how a contract translates into exposure items, and how those are linked to derivative hedges, will make the architecture concrete very quickly.
This is my second article about Commodity Management area to explain the basics of it. The first article with positioning of SAP Commodity Management for Chemicals is here: Commodity Management in the Chemical Industry: Why… – SAP Community
More Information:
SAP Commodity Management, SAP for Chemicals
Sergey Nozhenko, SAP Industry Business Unit – Chemicals



