Sub topic 6
Dependencies and the order in which to load objects
This chapter assumes you know what a migration project and a migration object are, and that you can tell master data from transactional data. Here you will learn why load order matters and how to plan it.
Why order matters
Many migration objects refer to data that another object creates. A customer-related object needs the business partner to exist. An open purchase order needs the supplier, the material, and the company code setup. If you load the dependent object first, the referenced record is missing and the migration reports an error for every affected row.
Loading in the wrong order does not damage the system. It produces avoidable errors, and you spend time on the second run fixing messages that a better sequence would have prevented.
Two kinds of dependency
- Configuration dependency. The object needs customizing to be in place. Examples are company codes, plants, or payment terms. Check these before any migration starts.
- Data dependency. The object needs records created by another migration object. Examples are materials before inventory balances, or G/L accounts before open items.
Configuration dependencies are solved by the system setup. Data dependencies are solved by your load sequence.
A typical sequence
The usual pattern runs from organizational and master data to transactional data.
- Organizational structures and configuration-based data
- Foundation master data, such as G/L accounts, business partners (customers and suppliers), and materials
- Master data that builds on the foundation, such as bills of materials and pricing conditions
- Transactional data, such as open purchase orders, open items, and balances
The diagram is an example. The exact predecessors depend on the objects you selected and on the release you use.
Where to find the dependencies
The cockpit shows the objects in your project. Use the object documentation and the SAP-delivered migration object list for your release to see which objects a given object relies on. Do not assume the sequence from one project applies to another, because the selected objects and the system setup differ.
Write the result down as a load plan. A simple table works.
| Step | Migration object | Depends on |
|---|---|---|
| 1 | G/L account | Chart of accounts, company code |
| 2 | Business partner | Number ranges, partner roles |
| 3 | Material | Plants, material types |
| 4 | Open purchase order | Business partner, material |
Common errors
- Messages about missing references. A predecessor object has not been migrated, or it was migrated with errors. Check the predecessor's status first.
- Partial predecessor loads. If only some business partners loaded, the orders for the others fail. Fix the predecessor before you retry the dependent object.
- Loading in parallel by habit. Objects with no relationship can run together. Objects that depend on each other cannot.
- Retesting out of sequence. After you correct and reload a predecessor in a test cycle, check whether dependent objects need to be reloaded too.
Tying it to the project
Dependencies affect simulation and execution. Simulate the predecessors, execute them, and only then simulate the dependent objects. A simulation of a dependent object cannot find records that have only been simulated and not yet created. The same sequence feeds into cutover planning in a later chapter.
Exercise
You plan to migrate open purchase orders, materials, and business partners. In which order do you load them, and what do you check if the purchase orders fail with missing-reference messages?
Show answer
Load business partners and materials first (they are independent of each other and can run in either order), then open purchase orders. If the orders fail with missing-reference messages, check whether the business partners and materials migrated completely. Fix the errors in those objects, reload them, and then retry the purchase orders.