Sub topic 2
Dependencies and the Order in Which to Load Objects
Assume you know basic SAP S/4HANA master and transactional data, can work with spreadsheets or CSV files, and understand Fiori authorizations. In the migration cockpit, the load order matters because one migration object may need records created by another object first.
Plan the dependency order
A dependency exists when one object refers to another object. For example, a customer company-code view cannot load successfully until the related business partner and company-code data exist. A material valuation record depends on the material and its valuation settings.
A typical sequence is:
- Organizational structures and foundational configuration.
- Master data, such as business partners, materials, and G/L accounts.
- Dependent master data, such as customer company-code data.
- Open transactional data, such as open items or orders.
Use the migration object's documentation to confirm dependencies. Do not assume that the order in a project list is the required load sequence.
Prepare source data with templates
Download the template for each migration object from the project. The template defines the expected sheets, fields, formats, and relationships. Keep the template structure intact. Add source values to the relevant fields instead of renaming columns or inventing new ones.
Before uploading, check that:
- Required fields are populated.
- Keys are unique where the object requires unique records.
- Dates, currencies, units, and decimal separators use the expected format.
- References use values that exist in earlier loaded objects.
- Text and code lengths fit the target fields.
Choose staging tables or direct transfer
Staging tables are useful when data comes from files or an external transformation process. You load prepared data into temporary tables, review it, and then let the cockpit validate and migrate it. This approach supports repeatable extracts and controlled handoffs.
Direct transfer reads data from a connected SAP source system. Use it when the source is an SAP system and the required connection, authorizations, and extraction content are available. It reduces manual file handling, but source-system connectivity and compatible releases become important.
| Approach | Best fit | Main concern |
|---|---|---|
| Staging tables | File-based or transformed data | Table loading and structure alignment |
| Direct transfer | Connected SAP source | Connectivity and authorizations |
Validate and map values
Run validation after loading the source data. Correct missing fields, invalid references, duplicate keys, and format errors before continuing. Then define value mappings when source codes differ from target codes, such as mapping a legacy company code to its S/4HANA company code. Revalidate after mappings change, and simulate the load before execution.
Exercise
A material extension refers to a plant that has not yet been loaded. What should you do?
Show answer
Load and validate the plant-related foundation data first, map any differing plant values, and then validate or simulate the material extension again.