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

Lesson 5 of 6

Event-based test design

10 min

Listen to this lesson

0:00 / 7:11

HR data changes through events: hire, rehire, transfer, promotion, data change, leave, termination. Each event changes different EC entities with an effective date, and each has a different footprint in S/4HANA. Test design for this integration is therefore event-based: for each event in scope, define the EC entry, the expected S/4HANA result field by field with dates, and the downstream check in a finance or logistics process.

The event matrix

EventEC entry (illustrative)Expected in S/4HANADownstream check
HireAvery Kim, Detroit, 17101101, start Nov 2Personnel number, 0000 hire, 0001 with 17101101 from Nov 2; BP with BUP003Time confirmation on an order posts labor to 17101101
Transfer (future-dated)Entered Nov 20, effective Dec 1, Chicago, 172011010001 split on Dec 1; position and manager change on Dec 1Expense on Nov 28 posts to 17101101; on Dec 2 to 17201101
Data changeNew business email0105 updated; BP communication updated after syncWorkflow notification goes to the new address
TerminationLast day Jan 310000 termination action from Feb 1; BP marked accordinglyNo time recording after Jan 31; open expenses settled, no new reimbursements
RehireRehired Apr 1, same personSame personnel number or new one per design; history keptExpenses pay to the correct supplier role
Retroactive correctionCost center for October corrected on Nov 150001 corrected for OctoberControlling sees the correction; reposting decided by Dan

Contoso's event matrix with field-level and downstream expectations.

The employee life cycle as events; each transition is a test case with an effective date.
The Sign-Off Table · thesignofftable.com/academy/sap-int-303

Step by step: running one event test

  1. Prepare: confirm the test employee exists in the EC test instance and CMQ with matching key mapping; note the current infotype 0001 records.
  2. Enter the event in EC with the agreed effective date and save; capture the EC job history.
  3. Wait for the scheduled run or start the query program manually in CMQ; record the run time.
  4. Check the Data Replication Monitor entry: success, warning or error.
  5. In CMQ, check the infotype records with their validity dates against the expected values, then the OM relationships, then the business partner after sync.
  6. Run the downstream check: post a time confirmation or an expense on dates before and after the effective date; check the cost center on the journal entries.
  7. File the evidence: EC screenshot, monitor entry, infotype overview with dates, journal entries.
An event test passes four gates; the gate that fails tells you which team owns the defect.
The Sign-Off Table · thesignofftable.com/academy/sap-int-303

Test data and privacy

HR data is personal data. Test employees in the EC test instance should be synthetic, with names and identifiers that cannot be confused with real people, and the S/4HANA test system must not receive real employee data unless masked. Contoso's CMR pre-production system is a masked copy of production for exactly this reason. Nadia reviews which infotypes are replicated at all: Contoso keeps to a minimal set (0000, 0001, 0002, 0105) because no S/4HANA process needs more.

Rare, low impactName change: one test per release
Rare, high impactRehire and retroactive correction: full test each release
Frequent, low impactEmail change: sample test
Frequent, high impactHire, transfer, termination: full tests with downstream postings every cycle
Where to spend test effort among HR events.
The Sign-Off Table · thesignofftable.com/academy/sap-int-303

Worked example: a transfer across month-end

Avery is transferred from Detroit Assembly (17101101, profit center CMC-FLEET) to Chicago Assembly (17201101, profit center CMC-AFTMKT), entered on November 20, effective December 1 (illustrative course data). Expected in CMQ after replication: infotype 0001 has one record to November 30 with 17101101 and one from December 1 with 17201101; the position and manager change on December 1; the business partner reflects the new assignment after sync. Downstream, Avery confirms 6 hours on a Detroit maintenance order on November 28 and 6 hours on a Chicago order on December 2. The labor postings must show 17101101 for November 28 and 17201101 for December 2, with the matching profit centers.

DateActivityExpected cost centerExpected profit center
Nov 286 h confirmed on a Detroit order17101101 Detroit AssemblyCMC-FLEET
Dec 26 h confirmed on a Chicago order17201101 Chicago AssemblyCMC-AFTMKT
Dec 3Travel expense submitted17201101 Chicago AssemblyCMC-AFTMKT

Downstream assertions for the month-end transfer.

What would you do?

A termination entered in EC on February 10 with last day January 31 replicates successfully. A travel expense dated January 20 is submitted on February 12. What should happen, and what should the test check?

Key points
  • Design tests by HR event, each with EC entry, expected infotypes with dates, and a downstream check.
  • Four gates: monitor, infotypes, business partner, downstream posting.
  • Fix a test calendar with future-dated, retroactive and month-end cases.
  • Use synthetic or masked employees and a minimal infotype set.

Check your understanding · not graded

Lesson check

  1. 1. A transfer is entered Nov 20 effective Dec 1. When should infotype 0001 change?

  2. 2. Which gate comes after a successful entry in the Data Replication Monitor?

  3. 3. Why does Contoso replicate only infotypes 0000, 0001, 0002 and 0105?

  4. 4. Which test-calendar rule did Contoso adopt?