AM.
Back to Overview

Designing a Replay Test for Multi-ERP Account Mapping

Mandate & Focus

Design study · Fictional manufacturing group · Independent Design study

By Design study

Fictional GBP records and mapping releases. The offline fixture verifies classifications, line movements and exception handling for the supplied examples.

Design feature 01

2 mapping releases

Design feature 02

1 fixed ledger snapshot

Design feature 03

2 exception probes

Executive Summary

A reproducible GBP example that holds the ledger snapshot fixed and compares an accepted account map with a later release.

Architectural Deep Dive

Design study. Consider a fictional manufacturing group with two local ERPs and a monthly group management report in GBP. After the October report is accepted, the group controller approves a maintenance reclassification with October as its effective period. The controller wants the team to reproduce the October report and compare it with a candidate view using the new classification. The two outputs must be recognisable by their run records even if their overall totals agree.

Decide what can change between runs

The proposed test fixes the October ledger snapshot, periods, hierarchy and currency. It changes only the mapping release. Both source systems use the local account code 6100, but one represents maintenance costs and the other represents service revenue. The code collision is intentional. It demonstrates why even a small reporting layer must retain the source ledger identity rather than join solely on an account number.

Microsoft’s account-group documentation illustrates selecting a group when consolidating and assigning local accounts to values in it. Oracle’s mapping-rule documentation describes effective-dated rules. The fixture adds explicit package selection and an original-versus-candidate comparison, without assuming those two capabilities are implemented identically in any ERP.

Give each run its own record

The replay uses package v1 and the comparison uses v2. Both reference the same source snapshot. For this exercise the selection key is ledger, account and accounting month, with inclusive period boundaries. Zero eligible rules means a missing mapping. Two or more means the rule is ambiguous. Both conditions would stop report acceptance until resolved. Each trial row is labelled with an input ID that the reviewer can trace to the expected result.

In the proposed deployment, a manifest for a given run would name the source snapshot and mapping package digests, the rule-selection logic and the identity of the report requested. The original approved output and any candidate comparison would remain individually retrievable. Before promoting a package, a preparer would document the effective period and reason for change, and a controller would review the candidate movement and decide where it should apply. Acceptance and release would be recorded as distinct events.

Walk one amount through the bridge

In v1 the plant’s £12,000 appears in GENERAL_MAINT. In v2 it enters PRODUCTION_MAINT. The service ledger’s £2,500 remains in SERVICE_REVENUE under both versions. The fixture treats both values as positive magnitudes for its simple line comparison. It contains no signed trial balance or journal.

The comparison shows minus £12,000 in general maintenance, plus £12,000 in production maintenance and zero change in service revenue. The sum of movements is zero. In a real comparison the bridge would carry the source identifiers alongside those movements, so a reviewer can tell the difference between a reclassification and a pair of unrelated net changes. Totals would be checked at the grain and sign convention used by the report.

Exercise the two ways a lookup can fail

Alongside the accepted inputs, the fixture includes an unknown account and a candidate account with overlapping rules. They are separate probes and are excluded from the happy-path bridge. The first must surface a missing rule. The second must surface ambiguity, even if the proposed destinations happen to point to the same broader line. A configuration owner resolves the overlap. The replay logic should produce the same exception on the next run with those same bytes.

During a real rehearsal, ask someone who did not create the maps to reproduce v1 and v2, explain the movement, then account for the two held rows. If the report only includes totals, they cannot do that from the output alone. If it includes source IDs but omits the release, they still cannot determine which mapping generated it. Those distinctions turn the exercise into a test of retained evidence as well as arithmetic.

Reproduce the fictional inputs

The fixture and standard-library verifier reproduce the two classifications, the exact movement in integer pence and the two blocked cases. The reproduction guide describes how to run the example offline and interpret the result. The verifier checks the example locally. Production acceptance would need authorised ledger snapshots, signed-balance and currency treatment, actual rules and reporting hierarchies, evidence retention and controller sign-off. The companion essay explains how the reporting architecture preserves the historical recipe.

Proposed approach

Scope
Two fictional ERP ledgers and one GBP reporting month
Evidence
Source IDs, effective periods, rule releases and line differences

Technical FAQ

What remains fixed across the two runs?
The fictional October snapshot, accounting month, currency and reporting lines. Only the mapping release changes.
What happens if two rules match?
The fixture returns an ambiguity for the row. The proposed workflow requires the mapping owner to resolve it before report acceptance.
What did the verifier execute?
It checked the fictional fixtures and exact differences in integer pence using Python. It made no ERP connections and wrote no journals.

Ready to architect operational leverage?

Available for fractional executive leadership, enterprise architecture consulting, and board-level technical advisory.

Initiate Dialogue ↗