30.11.
2020 Part 2: SAP S/4HANA migration cockpit – Using SAP Data Services to load data to the staging tables | SAP Blogs
Community
Ask a Question Write a Blog Post
Technical Articles
Markus Andres
November 29, 2019 6 minute read
Part 2: SAP S/4HANA migration cockpit – Using SAP Data
Services to load data to the staging tables
Follow RSS feed Like
26 Likes 9,266 Views 2 Comments
This blog post is the second part of a series, and explains step-by-step how to load data to the staging
tables of the SAP S/4HANA migration cockpit (on-premise) using SAP Data Services. In this example, the
data load is done using MySQL database as a source but, there are many other possible sources of data
including di erent databases and SAP ERP systems. Furthermore, the example that will be presented in this
blog is only a simple case, however, it can be used as a reference to build more complex data ows.
SAP Data Services is a data integration and transformation software application. It allows users to develop
and execute work ows that take data from prede ned sources called data stores (applications, Web
services, at- les, databases, etc.) and then allows the user to combine, transform, and re ne that data, and
then output the results back to the same source or to di erent data stores.
For more information about SAP Data Services, see:
https://www.sap.com/germany/products/data-services.html
Prerequisites:
SAP Data Services has been installed. The installation guide it is available in the following link (depending
on the target platform).
https://help.sap.com/viewer/product/SAP_DATA_SERVICES/4.2.12/en-US
SAP Data Services Designer has been installed and con gured. The installation guide it is available in the
following link (available for Windows only).
https://help.sap.com/viewer/product/SAP_DATA_SERVICES/4.2.12/en-US
A migration project has been created using the SAP S/4HANA migration cockpit’s approach “Migrate
Data Using Staging Tables”.
https://blogs.sap.com/2019/11/29/sap-s-4hana-migration-cockpit-using-sap-data-services-to-load-data-to-the-staging-tables/# 1/14
30.11.2020 Part 2: SAP S/4HANA migration cockpit – Using SAP Data Services to load data to the staging tables | SAP Blogs
See Blog “SAP S/4HANA migration cockpit – Migrating data using staging tables and methods for
populating the staging tables”
Migration objects has/have been selected/added to the migration project and the staging tables have
been generated in the SAP HANA database by the SAP S/4HANA migration cockpit.
Before you start:
The rst step will be the creation of the required Data Stores. For this example, we use MySQL database as a
source (1st Data Store to be created) and SAP HANA as a target (2nd Data Store to be created). In your case
the source system may di er, while the target will always be the SAP HANA database where the staging
tables have been generated.
Create mySQL datastore
Start the SAP Data Services Designer.
Logon to the Data Services repository.
Navigate to Data Store in the bottom left corner.
Create a new datastore for the MySQL database. The following screenshots show the properties for our
example.
https://blogs.sap.com/2019/11/29/sap-s-4hana-migration-cockpit-using-sap-data-services-to-load-data-to-the-staging-tables/# 2/14
30.11.2020 Part 2: SAP S/4HANA migration cockpit – Using SAP Data Services to load data to the staging tables | SAP Blogs
Create a new ODBC connection directly from this screen by using “OBDC Admin…” button. Use the
“System DSN” tab for this so that the connection will also be visible when Data Services executes the job
to load data in background (this may use a di erent windows user and not your own one).
You will need to select the correct driver to connect to the database.
https://blogs.sap.com/2019/11/29/sap-s-4hana-migration-cockpit-using-sap-data-services-to-load-data-to-the-staging-tables/# 3/14
30.11.2020 Part 2: SAP S/4HANA migration cockpit – Using SAP Data Services to load data to the staging tables | SAP Blogs
In the next screen, you specify the connection details.
You can test the connection directly from this screen to be sure that it works before con rming the entry.
Create SAP HANA datastore
Create a new datastore. In our example, we refer to this with the name “DS_HANA”. Create a new ODBC
connection from the resulting screen.
https://blogs.sap.com/2019/11/29/sap-s-4hana-migration-cockpit-using-sap-data-services-to-load-data-to-the-staging-tables/# 4/14
30.11.2020 Part 2: SAP S/4HANA migration cockpit – Using SAP Data Services to load data to the staging tables | SAP Blogs
On the “System DSN” tab, create the new ODBC.
Select the proper driver
https://blogs.sap.com/2019/11/29/sap-s-4hana-migration-cockpit-using-sap-data-services-to-load-data-to-the-staging-tables/# 5/14
30.11.2020 Part 2: SAP S/4HANA migration cockpit – Using SAP Data Services to load data to the staging tables | SAP Blogs
Fill the required information for your SAP HANA database. The following screenshot is just an example
based on our landscape.
Test the connection.
Now back to the previous screen con rm and save the properties to create the Data Store.
The required Data Stores have now been created.
Filling the staging tables
Start Data Services Designer
Navigate to the Projects tab.
Open the folder in which you want to create your new job.
In the Project Area, right-click and create a new batch job.
https://blogs.sap.com/2019/11/29/sap-s-4hana-migration-cockpit-using-sap-data-services-to-load-data-to-the-staging-tables/# 6/14
30.11.2020 Part 2: SAP S/4HANA migration cockpit – Using SAP Data Services to load data to the staging tables | SAP Blogs
Name the new job (for example mySQL_to_Staging)
Add a new DataFlow.
Double-click the DataFlow.
Add a Query operation
https://blogs.sap.com/2019/11/29/sap-s-4hana-migration-cockpit-using-sap-data-services-to-load-data-to-the-staging-tables/# 7/14
30.11.2020 Part 2: SAP S/4HANA migration cockpit – Using SAP Data Services to load data to the staging tables | SAP Blogs
Navigate to Datastores.
Select your MySQL datastore
Select from the menu the option “Import By name”.
https://blogs.sap.com/2019/11/29/sap-s-4hana-migration-cockpit-using-sap-data-services-to-load-data-to-the-staging-tables/# 8/14
30.11.2020 Part 2: SAP S/4HANA migration cockpit – Using SAP Data Services to load data to the staging tables | SAP Blogs
Enter a table name.
Drag the selected table to the data ow (in our example the table is called “banks”).
https://blogs.sap.com/2019/11/29/sap-s-4hana-migration-cockpit-using-sap-data-services-to-load-data-to-the-staging-tables/# 9/14
30.11.2020 Part 2: SAP S/4HANA migration cockpit – Using SAP Data Services to load data to the staging tables | SAP Blogs
De ne it as source by right-clicking the table name and then selecting “Make Source”.
Select your SAP HANA datastore.
Import the table by right-clicking “Tables” and then selecting the option “Import by Name”.
Enter the name of your staging table (example “/1LT/DXX12000123”, no double quotes (“”) needed) or
alternatively the name of the synonym if you want to make the ow reusable also in the following
environment in your landscape (for example quality and production).
(To learn more about the usage of synonyms, please see “Creating and using synonyms for
renaming staging tables” as explained in the blog from Udo Matthias Sommer.)
Specify the owner, for example STAGING_MASTER (this is the user used by the database connection).
Click Import.
Drag the newly added table to the data ow.
Note: You can nd the names of the staging tables for your migration project on the Migration Object Details
screen → Staging Tables. The table names are shown in the column called “Staging Table”.
For detailed information, see:
https://help.sap.com/viewer/81152a97f8394fb6b d19a5632be2e3/latest/en-
US/a9dceda5804042b0a49ea9f61c49233a.html
https://blogs.sap.com/2019/11/29/sap-s-4hana-migration-cockpit-using-sap-data-services-to-load-data-to-the-staging-tables/# 10/14
30.11.2020 Part 2: SAP S/4HANA migration cockpit – Using SAP Data Services to load data to the staging tables | SAP Blogs
De ne the new table as a target by right-clicking the table symbol and then selecting “Make Target” from
the menu.
Link all elements.
Double-click the Query operation.
Complete the mapping from source to destination.
IMPORTANT:
A mapping should be speci ed for every single eld in the target structure. The mapping could be either
based on a source eld or, in case you don’t have the source, it should be mapped to an empty value (for
empty value specify 2 single quotes ‘’). For example, for the target eld “/1LT/PROCESSED” that is
https://blogs.sap.com/2019/11/29/sap-s-4hana-migration-cockpit-using-sap-data-services-to-load-data-to-the-staging-tables/# 11/14
30.11.2020 Part 2: SAP S/4HANA migration cockpit – Using SAP Data Services to load data to the staging tables | SAP Blogs
technically used to determine the processing status of this record you should specify a xed mapping value
with ‘’ (2 single quotes).
Save and execute the job.
After the job has been executed successfully, you can switch back to the tab containing the data ow you
just created and using the magni er button in the source and target table you can preview the content to
check the result.
Alert Moderator
Assigned tags
SAP S/4HANA migration cockpit | SAP Data Services | staging tables approach |
Related Blog Posts
Part 1: SAP S/4HANA migration cockpit - Migrating data using staging tables and methods for populating the staging tables
By Iliana Olvera , Dec 02, 2019
SAP S/4HANA Migration Cockpit – tips&tricks
After completing
By Sybille this ,last
Lackermeier Decstep, we have successfully loaded data in the staging table using SAP Data
04, 2017
Services.
Part 4: SAP S/4HANA migration cockpit – Using SAP HANA Studio to load data to the staging tables
By Iliana Olvera , Dec 02, 2019
Now the next step will be to access the Migration Cockpit and start the data transfer so that the records
available in the staging tables can be selected for the data load into SAP S/4HANA.
Related Questions
See the full list of this four-parted blog series and additional options to ll staging tables:
How to connect tables in Migration Cockpit?
Part 1: Migrating data using staging tables and methods for populating the staging tables
By chandra koduri , Mar 12, 2018
The entries in the SAP S/4 HANA staging tables aren't visible in SAP S/4 HANA Migration Cockpit.
(Part 2 is this blog post)
By Bogdan Popescu-Miclosanu , Dec 12, 2019
S/4HANA
Part MIgration
3: Using SAPCockpit: Delta load
HANA Smart from
Data staging tables
Integration (SDI) to load data to the staging tables
By Adriaan van der Bank , Sep 12, 2019
Part 4: SAP HANA Studio – Data from File option
2 Comments
Olivia Ghebrezghi
May 13, 2020 at 2:07 pm
For more information about SAP Data Management and Landscape Transformation (DMLT) see this
page https://www.sap.com/services/implementation/data-mgmt-landscape-transformation.html or read
the solution brief and the SAPPI Success Story. You can contact the global SAP DMLT team by
https://blogs.sap.com/2019/11/29/sap-s-4hana-migration-cockpit-using-sap-data-services-to-load-data-to-the-staging-tables/# 12/14
30.11.2020 Part 2: SAP S/4HANA migration cockpit – Using SAP Data Services to load data to the staging tables | SAP Blogs
email [email protected]. They provides services for Selective Data Transition, New Implementation
and System Conversion that can also be delivered remotely.
Like (0) | Reply | Alert Moderator
Venkataramana R
August 6, 2020 at 3:35 pm
Hi Markus,
We are in process of new green eld S4hana implementation for a subsidiary company where we need to get
the master and con guration data from S4hana source system 1609.
is it possible to use LTMON/migration objects mechanism direct/staging/ le transfer from S4hana to
S4hana ? or else we need to go for traditional client copy method using sap_con g pro le.
if in case , direct transfer/staging/ le transfer is possible , can i directly go for latest S4hana1909 and do the
data transfer directly from S4hana1609.
Please suggest, appreciate your response.
Thanks,
Venkata R
Add Comment
Find us on
Privacy Terms of Use
Legal Disclosure Copyright
Trademark Настройки параметра cookie
Newsletter Support
https://blogs.sap.com/2019/11/29/sap-s-4hana-migration-cockpit-using-sap-data-services-to-load-data-to-the-staging-tables/# 13/14
30.11.2020 Part 2: SAP S/4HANA migration cockpit – Using SAP Data Services to load data to the staging tables | SAP Blogs
https://blogs.sap.com/2019/11/29/sap-s-4hana-migration-cockpit-using-sap-data-services-to-load-data-to-the-staging-tables/# 14/14