Forward Deployed AI Engineering · September 23, 2026

Making Railway SAP Customer Data Migration Pay

By , General Manager, aidefi

Illustrative use case. This scenario and its financial assumptions explain an engagement model. They are not reported results from an aidefi client or a completed project. Product developments are sourced separately; the proposed architecture and financial examples are explanatory.

A railway can move freight efficiently and still lose time untangling customer records. One shipper may appear under several names, with separate billing contacts, locations, and payment terms. Moving that confusion into a new SAP environment carries the problem forward.

Put an engineer inside the workflow

Consider a freight railway preparing 50,000 customer records for a new SAP S/4HANA environment. A forward deployed AI engineer works alongside billing staff, customer data owners, and SAP specialists to understand which records represent the same legal customer and which must remain separate.

The team defines the target fields and ownership first. In S/4HANA, the Business Partner is the leading object for customer and supplier master data. The migration method must match the SAP release, configuration, and implementation approach. An existing system conversion and a new implementation need different plans.

Use AI to prepare decisions

The engineer builds a controlled workflow that profiles approved extracts, flags missing fields, proposes name and address standardization, and identifies possible duplicates. Each suggestion includes its source and a reason for review. Similar names alone never authorize a merge.

Customer data owners approve relationships between the party ordering freight, the party receiving it, the billing recipient, and the payer. SAP specialists validate company code and sales area data, payment terms, and required mappings. AI does not invent missing tax identifiers or overwrite approved financial settings.

Approved records go through the supported SAP migration process. Trial loads, source to target reconciliation, and sample billing tests check that the right customer receives the right invoice. The team rehearses cutover, captures changes since the extract, and agrees recovery steps before production approval.

What changed over the past eight months?

Looking back from September 23 to January 23, 2026, the useful change is the growing ability to combine reasoning, coding, and tool execution in one supervised workflow. Here, an Agentic asset means a reusable package of instructions, connectors, validation rules, example decisions, tests, and permissions. Think of it as a trained work procedure that software can carry out, check, and hand back for approval.

These building blocks did not all appear in 2026. Anthropic published tool search and programmatic tool calling in November 2025. The latter lets a model organize tool calls through code. In plain language, the agent can run a sequence of approved checks instead of asking a person to move information between each tool. Source: Anthropic, November 24, 2025.

During this eight month window, Anthropic's February 5 release of Opus 4.6 introduced a larger context option in beta, context compaction, and an agent team preview. A context window is the material an AI can consider at once; compaction summarizes older working material. For a migration engineer, these capabilities can help connect specifications, mappings, code, and test failures across a longer task. That is an engineering inference, not a measured SAP result. Source: Anthropic, February 5, 2026.

On June 30, Anthropic introduced Sonnet 5 and reported stronger planning, tool use, and coding at lower prices than its Opus 4.8 model. This creates another option for routing routine work to a less expensive model and escalating difficult cases. A vendor's general benchmark does not establish a railway's migration speed or accuracy. Source: Anthropic, June 30, 2026.

What is easier? Preparing a first mapping, writing repeatable checks, investigating rejected rows, and assembling review packets can require less manual coordination. What remains difficult is deciding which customer is legally responsible for a bill, resolving contradictory records, and proving the new system behaves correctly. Larger context is useful working space, not a substitute for a database or an audit log.

Inside the railway migration

1. Preserve the original data. Extract through approved interfaces into a restricted staging area, a temporary workbench outside production. Record the source system, customer identifier, extraction time, and file hash. A hash is a digital fingerprint used to detect changes. Preserve identifiers as text so leading zeros survive.

2. Build a canonical schema. This is one agreed record layout for inputs that arrived in different formats. Separate customer identity from company accounting settings, sales settings, and partner relationships. In SAP terminology, FLCU00 is the financial customer role and FLCU01 is the sales customer role. They describe different responsibilities attached to a Business Partner; they are not duplicate people or companies. Source: SAP Business Partner documentation.

3. Generate candidates before asking AI. With 50,000 records, comparing every possible pair means 1,249,975,000 comparisons. Blocking narrows the search using several candidate rules, such as shared identifiers or normalized names and locations. It is like sorting a warehouse before looking for matching boxes. Use overlapping rules and test their coverage so a changed address does not hide a genuine match.

4. Retrieve evidence for ambiguous cases. Retrieval augmented generation, or RAG, means finding relevant approved material before asking the model to reason. Supply the candidate records, mapping rules, and necessary excerpts from authorized customer documents. Embeddings, numerical representations of text meaning, may help find similar names. Similarity is a lead to investigate, not proof of identity.

For example, “Gulf Freight LLC” and “Gulf Freight Terminal 7” might refer to a billing company and a delivery location. An indiscriminate merge could erase the destination relationship. The agent should propose a relationship or flag uncertainty, while a data owner decides.

5. Make proposals machine readable. Require fields such as source ID, proposed target ID, suggested change, evidence references, and review status. This is structured output: a completed form instead of a paragraph. A schema checks the form's shape. Business rules check its contents. Neither makes an unsupported suggestion true, and a model's confidence score is not a verified probability.

6. Keep the write gate outside the model. The orchestration service is the traffic controller. It stores progress, enforces access, limits retries, and sends approved batches to the supported SAP loader. The model cannot grant itself approval. An idempotency key identifies an operation so retrying after a timeout does not blindly create a second customer. Where the target lacks that guarantee, the controller must reconcile target status before retrying.

7. Prove business meaning survived. Keep a crosswalk from every source ID to its approved target ID, including deliberate merges and exclusions. Row counts alone will not reconcile when records are intentionally consolidated. Check required fields, valid reference values, financial and sales roles, partner relationships, rejected rows, and representative billing scenarios. Open invoices and balances are separate migration scope, even when customer links must be tested alongside them.

How much easier should we claim?

There is no defensible universal percentage for the past eight months. Measure an earlier workflow and a current workflow against the same representative records and acceptance criteria. Include engineer setup time, data owner review, corrections, compute, and repeat runs. Track incorrect merges and missed matches separately; a fast wrong merge can be more expensive than a slow review.

As an Illustrative pilot calculation, reducing comparable total work from 120 to 72 hours is a 40% effort reduction and 1.67 times the throughput at equal quality. Those numbers are an example of how to measure improvement, not results from this railway or an eight month industry benchmark. Calendar time may fall less because access approvals and cutover windows still determine the schedule.

Reusable assets improve the economics when a tested mapping framework, exception queue, connector, and reconciliation pack can be adapted to the next engagement. Customer data and confidential rules stay with that customer. Reuse the engineering pattern only where rights and contracts permit, and test it against the next railway's configuration.

Where the economics work

Assume the same preparation and validation scope would otherwise require 3,000 hours of purchased labor at $60 per hour. In this example, a $120,000 engineering engagement replaces most of that work, while the railway retains 400 review hours at the same rate.

Illustrative project economics, USD
ItemAmount
Manual baseline: 3,000 hours × $60$180,000
AI engineering engagement$120,000
Railway review: 400 hours × $60$24,000
Total alternative cost$144,000
Railway cost reduction$36,000 · 20%

If the provider spends $78,000 on delivery labor, tools, compute, and support, its $120,000 fee produces $42,000 in project gross profit, a 35% gross margin before overhead and taxes. The engagement can therefore be profitable for the provider while costing the railway less.

For the railway, the $36,000 becomes a cash saving only if the displaced spending is actually avoided. If salaried employees simply gain time, that is recovered capacity. Faster invoicing may improve cash flow, but it should not be counted as extra profit without evidence. This comparison excludes SAP licensing and wider implementation costs common to both approaches.

The commercial discipline is simple: measure total effort, include review and correction costs, and price a defined scope. Expand when verified savings justify the next step.

Technical references

SAP: Business Partner approach and customer integration
SAP: Data supported by the migration cockpit

Discuss a customer data migration with aidefi · More insights