Sub topic 9
Transferring data directly from an SAP system
This chapter assumes you have read the chapter on choosing a transfer approach and the one on creating a migration project. You should know what a migration object is, and you should be able to open the migration cockpit in your target SAP S/4HANA system. Exact menu names, supported objects, and prerequisites differ by release and by deployment (on-premise or cloud). Check the current SAP documentation for your release before you plan a project.
What direct transfer is
With direct transfer, the migration cockpit reads data from a source SAP system over a remote connection. It then loads that data into the target S/4HANA system. You do not build CSV or XML files. You do not fill staging tables yourself. The cockpit reads the source tables that the migration object needs and fills the object's structures.
This changes the work in three ways:
- You skip the template step. Data preparation moves into the source system, where you decide which records to select.
- Source data quality problems show up later, during validation and simulation in the cockpit, not in a spreadsheet you can edit.
- The cockpit needs a live technical connection to the source system, so the setup is more infrastructure work than the file approach.
Direct transfer fits best when the source is itself an SAP system (for example SAP ERP or SAP Business Suite), the source data is in reasonable shape, and the volume makes manual file handling impractical.
Comparing it with the other approaches
| Aspect | File upload | Staging tables | Direct transfer |
|---|---|---|---|
| Source of data | Template files you fill | Tables you fill in a database schema | Tables read from a source SAP system |
| Source system type | Any | Any | SAP system |
| Who prepares data | You, in files | You, with ETL or SQL | You, by choosing selection criteria |
| Technical setup | Low | Medium | Higher (connection, authorizations, add-ons) |
| Fixing data before load | Edit the file | Edit staging rows | Fix in the source, or correct with value mapping |
The key trade-off is control. Files and staging tables let you edit every row before the cockpit sees it. Direct transfer gives you less row-level control, but it removes a copying and reformatting step that is itself a source of errors.
How the data flows
The cockpit in the target system calls the source system through an RFC connection (remote function call, SAP's protocol for calling functions in another system). A technical user in the source system lets the cockpit read the data. Depending on your release, a data migration component installed on both systems supports the extraction.
After the data arrives, the normal cockpit steps apply. You validate, map values, simulate, and migrate.
Setting up a direct transfer project
The steps follow the project lifecycle you already know. The differences are in the first steps.
- Prepare the connection. Ask your basis team to create an RFC destination from the target to the source system. Confirm that any required software components are installed on both sides and are at the right levels. Test the connection from the target before you create the project.
- Create the technical user. In the source system, create a user with only the authorizations needed to read the data. Give it the minimum, and do not reuse a dialog user's authorizations. If extraction fails with authorization errors, the source user is the first thing to check.
- Create the project. In the cockpit, choose the option that migrates data directly from an SAP system. Enter the connection you prepared.
- Select migration objects. Pick the objects you need, for example customers or material master. Only objects that SAP has enabled for direct transfer are offered. If an object you need is missing, use a file or staging approach for that object. One project can sometimes mix approaches, depending on the release, but check this before you rely on it.
- Set selection criteria. Limit what the cockpit reads. Typical criteria are company code, plant, or creation date. Narrow selections shorten test runs and keep inactive legacy records out of the target.
- Continue with validation, value mapping, simulation, and migration.
Selection criteria in practice
Selection criteria decide which source records enter the migration. They do not clean the data. A material selected by plant still brings its bad descriptions with it.
Good selection criteria share three traits:
- They reflect a business decision, such as "only active customers with postings in the last 24 months".
- They are written down and reused in every test cycle, so results compare fairly.
- They respect dependencies. If you select customers by company code, the dependent objects (for example open items) must use a consistent selection, or you will migrate records that point at objects you left behind.
Data quality without a file to edit
In the file approach you open the spreadsheet and fix a value. In direct transfer the data comes straight from source tables, so you have three places to correct it:
- In the source system. Best for systematic problems, such as duplicate business partners. Fix them once and every later test cycle benefits. It changes live legacy data, so involve the data owner.
- With value mapping in the cockpit. Best for code differences, such as a legacy unit of measure that has a different key in the target. The mapping is applied during conversion and does not touch the source.
- By excluding records with selection criteria. Best for records you do not want at all.
You cannot fix single field values in a row on the fly the way you can in a file. If one customer has a name that is too long for the target field, you will see the error during validation, and the correction belongs in the source.
Common errors
- Connection test fails. Usually a network, certificate, or RFC destination problem. Check the destination, not the migration object.
- Authorization errors during read. The technical user in the source lacks read access for some tables. Compare the missing authorization in the message with the user's role.
- Object not available. The object is not enabled for direct transfer in your release. Use another approach for it.
- Missing or old data after a rerun. The source changed between test cycles. If you need a fixed baseline for comparison, agree a freeze point in the source, or record the date and time of each extraction.
- Slow runs. Large unrestricted selections. Narrow the criteria or schedule runs outside source system peak hours, because extraction adds load to the source.
When to choose direct transfer
Choose it when the source is an SAP system, the objects you need are enabled, and the team can set up the connection. Choose files or staging tables when the source is not SAP, when you need to edit rows before load, or when security rules forbid a connection between the systems. Many projects pick the approach per object, so decide it during object planning and not at the end.
Exercise
Your legacy system is SAP ERP. During a test cycle, 300 customers fail validation because their names exceed the target field length. You used direct transfer. Name the best place to correct this, and explain why editing a file is not an option.
Show answer
Correct the names in the source system, ideally through the data owner, so every later test cycle and the productive run benefit. With direct transfer the cockpit reads source tables directly and there is no template file to edit. Value mapping does not fit this case because it translates codes, not free-text names. Excluding the 300 customers by selection criteria is possible only if the business does not need them.
Exercise
A project selects customers by company code 1000 but loads open items without that selection. What problem do you expect, and how do you prevent it?
Show answer
Open items may reference customers that were not migrated, so they fail at load time. Apply the same business scope (company code 1000) to all dependent objects, and load objects in the dependency order.