Now accepting guest editorial from SAP, Oracle, Workday and ServiceNow practitioners.Pitch a guide
The Sign-Off Table

Lesson 2 of 5

Derivation tests

11 min

Listen to this lesson

0:00 / 19:24

Most controlling defects in a new or converted system are not calculation errors. They are derivation errors: the right amount on the wrong object. A purchase posts to the wrong cost center, a billing document gets the default profit center, a market segment is missing the customer group. Each posting balances, nothing errors, and the month-end report is wrong. Derivation tests check, process by process, that each posting lands on the right cost object, profit center and market segment, and that missing information fails safely instead of landing somewhere convenient.

Where objects come from

ObjectTypical sourceProcess example at Contoso
Cost centerAccount assignment on the document, or a default by accountNon-stock PO for workshop tools: cost center 17101101 Detroit Assembly
OrderProduction or internal order on the documentMaterial issue to a CMC-ALT-100 production order
Profit centerMaterial plant data, cost center or order master dataSale of CMC-ALT-100 from plant 1710: profit center Fleet
Market segmentDerived at posting from customer, product, sales area and derivation rulesBilling to Great Lakes Fleet Services: customer, product, sales org 1710, customer group
Where controlling objects come from in the main processes.
The Sign-Off Table · thesignofftable.com/academy/sap-co-304

In S/4HANA margin analysis, market segment characteristics are attached to the journal entry when it posts, so each revenue and COGS line carries them immediately. That makes derivation testable in the same transaction: post the billing document and inspect the journal entry lines. Profit center derivation is just as visible: the profit center sits on every line of the Universal Journal, and document splitting or inheritance carries it to offsetting lines where configured.

  1. Pick the processOrder-to-cash for CMC-ALT-100 to Great Lakes Fleet Services
  2. Predict the objectsProfit center Fleet; sales org 1710; customer group fleet; product CMC-ALT-100
  3. Post the documentsSales order, delivery and goods issue, billing
  4. Inspect the journal entryRevenue and COGS lines show predicted profit center and characteristics
  5. Record evidenceJournal entry number, the lines, and the expected-versus-actual table
A derivation test: predict, post, inspect.
The Sign-Off Table · thesignofftable.com/academy/sap-co-304

Negative tests: failing safely

Every derivation rule has a gap. What happens when the material has no profit center in plant 1720, when a G/L account that needs a cost object is posted without one, or when a new customer has no customer group? A good system either blocks the posting with a clear message or posts to a visible default that someone reviews every day, such as a dummy profit center. A bad system posts quietly to a real object. Negative tests prove which of those happens, and they are often where conversion defects hide, because ECC data that was "always fine" meets stricter S/4HANA validations.

When derivation data is missing, only two outcomes are safe: a blocked posting or a visible default that is reviewed daily.
The Sign-Off Table · thesignofftable.com/academy/sap-co-304
Negative testExpected safe behaviorUnsafe result to look for
Expense to a cost-relevant P&L account with no cost objectPosting blocked: account assignment to a CO object requiredPosting accepted with a default cost center nobody reviews
Sale of a material with no profit center in plant 1720Blocked, or posted to the dummy profit center and reported dailyPosted to profit center Fleet by an old substitution
Billing for a customer without customer groupCharacteristic blank and visible in an exception reportCharacteristic filled with a wrong default from a derivation rule
Order settlement with no settlement ruleSettlement error; order balance stays visibleSettled to a default receiver without approval

Negative derivation tests for Contoso. Each one should fail visibly.

Every ECC substitution that touches a controlling object gets a positive case and a "no match" case before it is trusted in S/4HANA.
The Sign-Off Table · thesignofftable.com/academy/sap-co-304

Derivation tests need deliberate test data. For each process, prepare one record with complete master data and one with a known gap: a material with and without a profit center in plant 1720, a customer with and without a customer group, a G/L account with and without a default cost center. Name the records so their purpose is obvious in the test case, and protect them from being "fixed" by well-meaning data stewards during the test cycle. Run the same cases again after any change to substitutions, derivation rules or master data governance, because derivation is where small changes have wide effects.

  1. Does the posting carry an explicit object (cost center, order) from the user?Yes → test that it is kept · No → next question
  2. Is the object derived from master data (material plant data, cost center)?Yes → test with complete and incomplete master data · No → next question
  3. Is the object derived by a rule or substitution?Yes → test each rule branch, including the "no match" path · No → it should be blocked: test the block
Choosing derivation test cases for a posting.
The Sign-Off Table · thesignofftable.com/academy/sap-co-304

What would you do?

A tester finds that a sale of CMC-ALT-100 from plant 1720 Chicago posts revenue to profit center Fleet, although the design says Aftermarket. The material's plant 1720 data has no profit center. What is the most likely cause, and what should the test record?

Key points
  • Most controlling defects are derivation errors: the right amount on the wrong object.
  • Predict the cost object, profit center and market segment before posting, then inspect the journal entry.
  • Negative tests prove that missing data blocks the posting or lands on a visible default.
  • Test every converted substitution and derivation rule, including its "no match" path.

Check your understanding · not graded

Lesson check

  1. 1. What is a derivation error?

  2. 2. Where does margin analysis store market segment characteristics?

  3. 3. What is the safe outcome when a cost-relevant expense has no cost object?

  4. 4. Why test converted ECC substitutions?