Sub topic 13
Executing the migration
This chapter covers the last step of the project lifecycle, the real import into the target system. It assumes you have a migration project with selected migration objects, a prepared data source (file, staging table, or direct transfer), and objects that have passed validation, value conversion, and simulation. It also assumes you know the load sequence of your objects, which is covered in the dependencies chapter.
What execution does
Execution, called "Execute Import" in the cockpit's Migrate Your Data app, takes the validated and converted data of a migration object and creates the real business records in the S/4HANA system. A simulation runs the same logic but never saves anything. An execution saves the result.
The cockpit runs the object's load logic as background jobs, not in your dialog session. Depending on the object, that logic calls released APIs, function modules, or similar standard services. This is why execution can fail on records that passed simulation. Simulation catches most problems, but not all of them. Locks, number ranges, or records created by other users since the simulation can still cause failures.
Where execution fits in the run
Before you press Execute
Run through a short checklist for each object.
- Predecessors are finished. If an object needs data created by another object, such as company codes or business partners, that object must have been migrated successfully first. Otherwise every dependent record fails with a missing reference.
- The simulation is current. If you changed the source data or a mapping after the last simulation, repeat the simulation. The cockpit status shows whether the data was changed.
- The target system is ready. Check that the required configuration exists, such as chart of accounts, plants, and number ranges. Check that the target number ranges can take the incoming keys.
- You know the system state. In a productive run, confirm that nobody else is changing the same master data during the load window.
Running the import
Open the project, choose the migration object, and select the Execute Import step. You can usually start the import for all records or limit it to a subset. After you start it, the cockpit schedules the jobs, and the screen shows progress counters.
Two settings affect throughput.
- Parallel processing. The cockpit splits the records into packages and processes them in parallel background jobs. More jobs shorten the run, but they also load the system and raise the chance of lock conflicts on objects that update shared records.
- Package size. Larger packages reduce overhead but make a single failure costlier to analyze.
Treat both as tuning knobs. Measure them in a test cycle, not in the production run.
Reading the result
When the jobs finish, each object shows how many records were processed, how many succeeded, and how many failed. The following table summarizes the usual states you will see.
| State | Meaning | Next action |
|---|---|---|
| Not started | No import was run for the object | Check dependencies, then execute |
| Running | Background jobs are still processing | Wait. Do not start a second run of the same object |
| Completed | All records were created | Run reconciliation and move to the next object |
| Completed with errors | Some records were created, some failed | Open the messages, fix, re-execute the failed records |
| Failed | The run stopped, often for a technical reason | Check the job log and system messages, then restart |
The exact labels differ slightly between releases and between the file, staging, and direct approaches, so match them to what your system shows.
Re-execution and the source-to-target key link
The cockpit remembers which source records were already migrated successfully, and it links each source key to the key that the target system assigned. When you re-execute an object after fixing errors, it processes only the records that are still open. It does not create the successful ones a second time.
This behavior shapes how you correct errors.
- Fix failed records in the source (the file or staging table) and reload or reprocess them.
- Do not "fix" a successfully migrated record by changing the source and re-running. The cockpit treats it as done, so the change never reaches the target. Correct it in the target system with normal maintenance transactions or apps, or delete and re-migrate only if the object supports it.
- When a later object needs the new target key of an earlier one, for example open items that reference migrated customers, it can rely on this link. That only works if the earlier object really was migrated through the cockpit.
Common failure causes
Most execution errors fall into a few groups. Recognizing the group tells you where to look first.
- Missing predecessor data. Message text such as "does not exist" for a referenced business partner, material, or account. Check the load sequence and the status of the earlier object.
- Customizing gaps. A value is valid in your mapping but not configured in the target, such as a payment term or a plant. Fix the configuration or the value mapping.
- Locks. Parallel jobs or other users hold a lock on the same record. Reduce the number of parallel jobs and re-execute.
- Number range problems. An external key falls outside the allowed range, or an internal range is exhausted.
- Authorization or technical failures. The executing user lacks a permission, or a job was cancelled. These show up in the job log and short dumps, not always in the object's message list.
For the messages themselves, including filtering and downloading them, see the next chapter on error handling.
Executing in a productive cutover
A production run follows the same steps, but you control the risk with preparation.
- Run the objects in the agreed order, and record start time, end time, and record counts for each one. These numbers feed the cutover plan.
- Pause after each object to reconcile counts: source records, records migrated, records rejected with a known reason. Do not start the next object while a predecessor still has unexplained errors.
- Set an error threshold before the run. For example, agree that a customer load is accepted with a few documented rejections, but not with a dependency failure that blocks later objects.
Putting it together
A reliable execution routine for each object looks like this:
- Confirm the predecessors are complete.
- Confirm the simulation was clean and is still current.
- Execute the import.
- Compare the counts of the result with your source count.
- Fix failed records and re-execute until the open count is zero or accepted.
- Spot-check a few migrated records in the target application.
Exercise
You executed a customer object. 9,400 of 10,000 records succeeded and 600 failed because a payment term is missing in the target configuration. After you add the payment term, a colleague suggests changing the source file for all 10,000 records and re-running the whole object. What do you do instead, and why?
Show answer
Fix the cause (add the payment term in the target configuration, or correct the value mapping) and re-execute only the failed records. The cockpit has already linked the 9,400 successful source keys to their new target records and processes only the open ones, so it will not create them again. Changing the source for the successful records would have no effect on the target, and loading them under changed keys would create duplicates. Afterward, reconcile the counts: 9,400 plus the re-executed records should equal 10,000, minus any records you deliberately reject.
Exercise
Simulation of an open-item object was clean, but execution produces many "customer does not exist" errors. Name two likely causes.
Show answer
The predecessor object (the customers) was not migrated before the open items, so the referenced keys do not exist in the target. Or the customers were migrated under different keys than the ones the open-item data references, so the source-to-target key link does not match. Check the status and load sequence of the customer object first, then compare the keys.