Pricing
SD / O2Cadvanced

SD Pricing Part 5: Header Conditions, Statistical Conditions and Subtotals

Key takeaway

Use header conditions (percentage, absolute and order-value conditions) and how they are distributed to items, statistical conditions like cost (VPRS) and cash discount, and subtotals that feed reporting, credit management and profitability — with the pitfalls of each.

Explanation

📌 KEY POINTS
✅ Header conditions are entered once for the document and distributed to items — percentage (HA00) applies to each item, absolute amounts (HB00) are distributed by value, weight or volume.

✅ HM00 sets the order value; the difference is distributed across items.

✅ Statistical conditions are calculated but not added to the net value — cost (VPRS) for margin, cash discount for information.

✅ Subtotals copy values into item fields (KZWI1–6, credit price, cost) used by reporting, credit management and profitability.

⚠️ Absolute header conditions that are not group conditions are duplicated per item instead of distributed.

━━━━━━━━━━━━━━━━━━━━
▶ WHERE WE ARE

Part 4 covered records. Now special condition roles inside the procedure.

━━━━━━━━━━━━━━━━━━━━
▶ 1. HEADER CONDITIONS

  • Entered manually on the header conditions screen.
  • Percentage (HA00): same percentage on every item.
  • Absolute (HB00): distributed proportionally (by net value, weight or volume per condition type).
  • Must be group conditions to distribute correctly.

━━━━━━━━━━━━━━━━━━━━
▶ 2. ORDER VALUE (HM00)

  • Enter the desired total; system distributes the difference.
  • Useful for negotiated totals; requires controlled use.

━━━━━━━━━━━━━━━━━━━━
▶ 3. STATISTICAL CONDITIONS

  • VPRS: cost from material valuation (moving/standard price), requirement to avoid pricing errors.
  • SKTO: cash discount as statistical information.
  • Statistical rebate accruals and freight estimates.

━━━━━━━━━━━━━━━━━━━━
▶ 4. SUBTOTALS

  • Subtotal key on a procedure line fills an item field: 1–6 (KZWI1–6), A (credit price for credit management), B (cost WAVWR).
  • Reporting and analytics use these fields; credit uses the credit price.

━━━━━━━━━━━━━━━━━━━━
▶ 5. PITFALLS

  • Changing subtotal assignments breaks reports and credit exposure.
  • Header conditions repriced when items change — decide pricing type for header condition updates.

━━━━━━━━━━━━━━━━━━━━
▶ STEP BY STEP

  1. Add a header discount HA00 and check item distribution.
  2. Add HB00 and check proportional distribution.
  3. Check VPRS and margin in the item.
  4. Identify which subtotal feeds credit (A) and which feeds cost (B).

✅ CHECKPOINT: you can explain how a header discount appears on each item and which subtotal credit management uses.

Code example

ABAP Code
===== STEP 1: header conditions =====HA00 percentage discount (header) → applied as % on each itemHB00 absolute discount (header, group condition) → 300.00 EUR distributed by item net valueHM00 order value → system adjusts items to reach the entered total ===== STEP 2: statistical conditions in the procedure =====Step | CTyp | Stat | SubTo | Reqt | Meaning900  | VPRS | X    | B     | 4    | cost → KOMP-WAVWR, margin = net − cost910  | SKTO | X    |       | 9    | cash discount (information) ===== STEP 3: subtotals =====SubTo 1..6 → KZWI1..KZWI6 (reporting)   A → credit price (credit management)   B → costCheck: V/08 subtotal column; analytics and credit exposure use these fields

Real project scenario

A client configured a header freight surcharge as absolute amount without the group condition flag. A 50 EUR freight charge on a 10-item order appeared as 50 EUR on each item — 500 EUR in total. Customers disputed invoices before anyone noticed. Setting the group condition flag (distribution by value) and correcting open orders fixed the calculation; a test case with multi-item orders was added to the pricing regression suite.

Common mistakes

  • Absolute header conditions without group condition flag.
  • Changing subtotal keys used by credit or reporting.
  • Treating statistical conditions as part of net value.
  • Missing VPRS requirement causing errors for materials without cost.
  • Unrestricted use of HM00.

Best practices

  • Test header conditions with multi-item orders.
  • Document subtotal usage (reporting, credit, cost).
  • Keep VPRS statistical with a requirement.
  • Control authorization for header discounts and HM00.
  • Review distribution basis (value, weight, volume) with business.

Interview angle

Questions: "How are header conditions distributed?", "What is a statistical condition?", "What are subtotals used for?"
Strong answer: HA00 percentage per item, HB00 absolute distributed (group condition), HM00 order value; statistical conditions like VPRS and SKTO not in net value; subtotals fill KZWI1–6, credit price (A) and cost (B) for reporting, credit and margin.

Practice this lesson

Quick check

1. A 50 EUR header freight charge appears as 50 EUR on each of five items. What is wrong?

2. What does condition type VPRS usually represent in the pricing procedure?

3. Which subtotal is typically used by credit management as the credit value of an item?

Interview questions

1. A manual header freight charge of 50 EUR appears on each of five items, and totals don't match what the customer agreed. How do you fix the design?

Answer it in your own words first, then compare.

2. A customer complains that freight charges and tax are calculated inconsistently across delivery plants for the same material and destination. What areas would you investigate in shipping and pricing configuration to diagnose this?

Answer it in your own words first, then compare.

Practice more with Interview AI →

Reference-verified: the steps are checked against official SAP documentation and tutorials, and object and field names in the sample code are checked for consistency. The code has not been compiled or run on an SAP system by ERPClimb. Syntax marked release-dependent varies by SAP release, so check it in your own system.

More lessons in this topic

Interview questions on this topic

Related SAP topics