Revenue minus COGS over revenue. The single best margin-health number for the executive view.
At a glance
Gross margin percentage = (Revenue minus COGS) / Revenue, period-window. The single best margin-health number for the executive view. Sources revenue from S/4HANA Cloud Universal Journal revenue accounts and COGS from the matching cost-of-goods-sold posting created at goods issue (movement type 601 + automatic offsetting cost posting via OBYC tables).
| What it counts | (SUM(revenue postings) minus SUM(COGS postings)) / SUM(revenue postings) for the period, computed inside the Universal Journal ACDOCA filtered to the relevant GL account hierarchy nodes. Revenue node typically 4xxxxx range, COGS node typically 5xxxxx range. Each Billing Document creates both a revenue line (credit) and a COGS line (debit) at posting; the card uses both sides per period. |
| Tax treatment | Net of tax on both sides. |
| Shipping | Revenue side includes freight if pricing-procedure freight conditions map to revenue. COGS side typically includes inbound freight loaded onto material standard or moving-average price; outbound freight is operating expense, not COGS. |
| Discounts | Revenue side is net of discounts. COGS side is net of procurement discounts loaded onto valuation. |
| Refunds | Both sides netted. |
| Cancelled / voided orders | Excluded. |
| Currency | Group Currency for consolidated views; Company Code currency for single-CC views. |
| Company Code scope | Respects dashboard filter. |
| COGS basis | Standard (S) or moving-average (V) per material. SAP Material Ledger / Actual Costing tenants: actual cost where available. |
| Time window | 30D vsP |
| Alert trigger | drop >2pp vsP, sentiment margin |
| Roles | owner, finance |
Calculation
Calculated automatically from your SAP data. See the At a glance summary above for what the metric tracks and the worked example below for a typical reading.Worked example
A US enterprise B2B distributor on S/4HANA Cloud. 30-day window 04 Apr 26 to 03 May 26.| Component | Value (USD, Group Currency) |
|---|---|
| Revenue (booked into GL) | $20,140,000 |
| COGS (matching goods-issue postings) | $14,820,000 |
| Gross margin | $5,320,000 |
| Gross Margin Percentage (this card) | 26.4% |
| This period | Prior 30D | vsP | |
|---|---|---|---|
| GM % | 26.4% | 28.7% | -2.3pp |
- GM% at 26.4% is below the 28.7% prior period, a 2.3pp drop. Card fires the
drop >2pp vsPalert. - What drives a 2.3pp drop? Three usual causes (in order of frequency): (a) standard-price changes on key materials with cost increases not yet passed through to selling price, (b) mix shift toward lower-margin products, (c) increased discounting / promotional activity.
- Drill into Margin Erosion Alerts for the per-SKU breakdown. Typically a handful of materials drive most of the change.
- Drill into Margin by SKU for the full table sorted by margin contribution. The top 50 SKUs typically explain 70 to 80% of total gross profit.
- Multi-Company-Code GM% comparison. US 28.1%, CA 24.6%, MX 21.8%. The MX margin is structurally lower (smaller deals, more competitive market), but if MX dropped 4pp this period that is a localised problem worth investigating separately.
Sibling cards merchants should reference together
| Card | Why pair it with Gross Margin Percentage |
|---|---|
| Margin Erosion Alerts | Per-SKU drilldown of which materials drove the margin drop. |
| Margin by SKU | Full margin-by-SKU table. |
| Total COGS | The denominator-adjacent figure. |
| Average Landed Cost per Unit | Cost trend that erodes margin from below. |
| Landed Cost Variance vs Standard | When actual cost exceeds standard, margin compresses. |
| Revenue Booked into GL | The revenue side of the calculation. |
| Margin Compression | The alert variant of this card for trend-watch. |
Reconciling against the vendor’s own dashboard
Where to look in S/4HANA Cloud:Income Statement Fiori app (Direct deep-link:F0708) showing Revenue and COGS lines Margin Analysis Fiori app, profitability segment view (CO-PA / Margin Analysis) SAP Analytics Cloud Profitability story Embedded Analytics: CDS viewI_OperatingProfit
https://my{tenant}.s4hana.cloud.sap/sap/bc/ui2/flp#MarginAnalysis-display
Why our number may legitimately differ from SAP’s Income Statement / Margin Analysis:
| Reason | Direction | Why |
|---|---|---|
| COGS account scope | Either | SAP’s chart varies; the card uses the COGS hierarchy node (typically 5xxxxx). If your chart maps freight or warehousing to COGS, the card includes it. |
| Material Ledger / Actual Costing | Small | If your tenant uses Actual Costing, period-end revaluation can adjust historical COGS retroactively. The card uses each material’s price-control source live; differences settle at month-end revaluation. |
| CO-PA Margin Analysis | Either | SAP’s CO-PA view of margin can include cost components (labour, overhead) that this card excludes. The card is gross margin (revenue - direct COGS only); CO-PA can show contribution margin or net operating profit. |
| FX rate type | Small | Card uses TCURR rate type M; SAP reports may use different rate types per period. |