Professional Documents
Culture Documents
OpenSAP s4h35 Week 1 All Slides
OpenSAP s4h35 Week 1 All Slides
Check out the openSAP course “Migrating Data to SAP S/4HANA Cloud, Public Edition”.
This course focuses on SAP S/4HANA Cloud, public edition and deep dives into migrating data using
staging tables.
versus
REENGINEERING SAP S/4HANA Cloud,
with data migration Selective data private edition
Customer tailored Selective business transition SAP S/4HANA
process optimization
versus
REENGINEERING SAP S/4HANA Cloud,
with data migration Selective data private edition
Customer tailored Selective business transition SAP S/4HANA
process optimization
Which data is needed from your source to operate SAP S/4HANA the way you want?
Master data? Open items? Balances?
SAP Activate Methodology SAP Best Practices Data Migration Landing Page
(Roadmap Viewer) via SAP Signavio Process on SAP Help
Navigator
▪ Access implementation guidance for ▪ Access documentation – Application
your digital transformation ▪ Access and download SAP Best Help
▪ View and download SAP Activate Practices content ▪ View additional slide decks and training
methodology assets and accelerators ▪ Power your project with ready-to-run information
▪ https://go.support.sap.com/roadmap business processes ▪ http://help.sap.com/S4_OP_DM
viewer/# ▪ https://me.sap.com/processnavigator
Out-of-the-box, included in
Guidance and simulation
SAP S/4HANA and SAP S/4HANA
for the migration process
Cloud license and shipment
Migrate Data Using Staging Tables Migrate Data Directly from SAP System
(Direct Transfer)
▪ Staging tables are created automatically in the ▪ Connect source system (ABAP-based SAP source systems)
SAP HANA DB (either locally or in a remote system) via RFC connection
▪ Populate these staging tables with business data ▪ Selection
using: – Based on predefined selection criteria (for example,
– XML template files company code for ERP source system) and selected
– CSV template files migration objects
– SAP or third-party ETL tools – Can be adapted with the SAP S/4HANA migration object
modeler
▪ Supports data migration scenarios from
SAP ERP, SAP AFS, SAP APO SPP, SAP CRM, SAP EWM
Designed for:
▪ Initial load of data (master data, open transactional data, no historical data)
▪ Used in the context of a new implementation of SAP S/4HANA, SAP S/4HANA Cloud,
private edition, and SAP S/4HANA Cloud, public edition
▪ Transport projects from DEV-Q-PROD via CTS
▪ Direct Transfer: Source system can also be a non-Unicode system
* For this purpose, SAP products like SAP Master Data Governance, Central Finance, product data replication, SAP
Landscape Transformation Replication Server, or SAP Data Intelligence are available (list does not claim to be complete)
© 2023 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 12
Introduction to data migration
SAP S/4HANA migration cockpit does not migrate historical data
Do you remember the last time you moved house? ▪ SAP S/4HANA migration cockpit is designed for a new
implementation.
▪ No migration objects for historical data in migration
cockpit*:
▪ Only the data necessary for a smooth business start is
migrated.
▪ A comprehensive customer-specific evaluation makes sense.
Solutions like Business Warehouse or side-by-side
extensibility can be considered.
Examples:
▪ The migration of closed documents leads to postings which are already included in the balances; there are no longer
open items for those documents.
▪ For partially open items, only the remaining quantities or values should be migrated.
It is important to determine how data is transferred from the legacy system to the new system as
early as possible.
There are many influencing factors that could drive the appropriate approach for a specific system.
Some factors to consider include, but are not limited to:
open@sap.com
Follow all of SAP
www.sap.com/contactsap
Setup
System Demo
API-based
Staging Tables
API-based
Staging Tables
Video
Migrate Data Using Staging Tables
Video
Using CSV Files to Fill Staging Tables
Link to Click-Through-Tutorial
SAP S/4HANA migration cockpit
Learning Hub Subscription necessary (SAP Learning Hub Solution Editions)
1. Open SAP Fiori app Migrate Your Data – user with necessary roles
2. Create migration project
– Choose the Create button → “Direct Transfer” will be handled in unit 9
– Select Local SAP S/4HANA Database Schema connection
– Choose migration object bank, cost center (add depended object Profit Center), G/L account → check
exercises in Fully Activated Appliance
– Finish creating the migration project
3. Populate migration objects with data
– Download the template for migration object Bank
– Fill template with data manually
– Upload template and follow guided procedure
– Migrate data
4. Verify data in relevant app
NOTE: When you set the migration project to “Finished”, you can specify a retention period for the data.
© 2023 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 9
Getting started with SAP S/4HANA migration cockpit – Staging tables
Create project – General data
1 2
3 4
open@sap.com
Follow all of SAP
www.sap.com/contactsap
Ways to fill the staging tables (XML, CSV and ETL tools)
Correction files
Transport concept
or or
There is a sample code for a file splitter tool that can help splitting big xml files. Details available
in GitHub. (Note that this is a sample code only!)
* The size limit for each file is 100MB. You can upload multiple files at once by using a zip file. Note that the combined size of all the files you
want to add to the zip file must not exceed 160MB. The maximum permitted size of the zip file is 100MB.
See KBA 2719524 for further information.
© 2023 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 3
Focus topics
Filling the staging tables – CSV template file
Introduction
▪ More flexible way to populate the staging tables using CSV files
▪ Widely known and compatible format for sharing, uploading, and migrating data
▪ Faster file creation and modification due to the simple structure and nature of the CSV format
▪ Upload the CSV file that contains only the data that should be migrated (no need to put comma to fill the
empty fields)
▪ Use the naming logic during the CSV upload and the ZIP file will be mapped to the data structures
automatically, e.g. S_MARA#FreeText.csv
▪ Possible to upload several csv files with a ZIP folder
XML CSV
▪ Using XML is a stable option for entering and ▪ You need to use a separate CSV file for each
editing values manually. data structure.
▪ All data is contained in one file. ▪ There is no built-in protection for data formats.
▪ More flexibility: you can upload a CSV file that
only contains the data that should be migrated
▪ It contains detailed information about the (no need to fill the empty fields) and also change
relevant data structures as well as instructions the order of the fields if required.
about how to enter data in the file.
Application Help
Demo videos
XML upload
CSV upload
KBAs
Additional Information about Transferring Data from CSV Template Files to Staging Tables
Migration Cockpit: How to correctly fill data into XML template
Good to know
To fill the staging tables, you can either use an ETL tool or fill the data directly on the SAP HANA database.
There are several blog posts listed below that explain the different methods to load data into the staging
tables:
▪ Migrating data using staging tables and methods for populating the staging tables
▪ Using SAP Data Services to load data to the staging tables
▪ Using SAP HANA Smart Data Integration (SDI) to load data to the staging tables
▪ Using SAP HANA Studio to load data to the staging tables
▪ SAP S/4HANA migration cockpit – creating and using synonyms for renaming staging tables
We recommend that you look at the following materials and decide how you would like to populate the staging
tables:
▪ KBA 2733253 FAQ Migrate Data Using Staging Tables
SAP S/4HANA
6 Status update of
Legacy system record
Data
source(s)
Required Setup
SAP S/4HANA setup
▪ Create secondary database connection (transaction DBCO)
▪ Add the newly created connection to table DMC_C_WL_DBCO_OP
(transaction SM30). This ensures that the connection can be displayed in
the SAP S/4HANA migration cockpit.
Status update
6
of record
Application
5 Insert via API
Extract data and fill staging tables Interface
3
through SAP or third-party tools, or
Microsoft Excel XML/CSV templates files
Application data
* Separate SAP HANA database schema is required, can also be on SAP S/4HANA target system
Data Source(s) ** Prerequisite: established secondary database connection
Connection Staging Tables located SAP HANA Enterprise SAP HANA Runtime
Edition License (REAB)
Local SAP S/4HANA DB Staging tables will be created in same Fill tables via* Fill tables via*
Schema SAP HANA DB schema as ▪ XML/CSV template files ▪ XML/CSV template files
SAP S/4HANA ▪ ABAP programming ▪ ABAP programming
Standard use case
Remote SAP HANA Staging tables will be created in a Tables can be accessed via DB layer Tables can be filled via**
Database Schema separate SAP HANA DB schema or filled via ▪ XML/CSV template files
▪ XML/CSV template files ▪ ABAP programming
Specific customer use ▪ ABAP programming ▪ Data Services
case ▪ Data Services ▪ SLT
▪ SLT ▪ 3rd party tools
▪ 3rd party tools
* This is the recommendation from SAP. However, if your system administrator provides access to the relevant tables, it is also
possible to use the tools listed for the remote schema for the local schema.
** Staging tables cannot be filled directly on database level, for example with SAP HANA Studio (SUR Software Usage Rights).
© 2023 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 11
Focus topics
Legal statement on use of 3rd party tools to fill staging tables in REAB*
In addition to the standard options of using either a full-use-version of SAP HANA (i.e. SAP HANA, enterprise edition) or the
SAP tools provided as Runtime Software with SAP HANA, runtime edition, it is possible to utilize a 3 rd party ETL tool to
populate the staging tables for the SAP S/4HANA migration cockpit.
In this case, the staging tables will be created by the SAP S/4HANA migration cockpit in a dedicated schema, either in the
same database tenant where SAP S/4HANA is installed or a separate dedicated database tenant. Such a schema can then
be configured as a remote database connection enabling connectivity and filled by a 3 rd party ETL tool solely for the purpose
of consumption by the SAP S/4HANA migration cockpit.
For the avoidance of doubt, the tables may not be used for any kind of processing by SAP HANA outside of SAP S/4HANA
migration cockpit, including, but not limited to, calculation view modeling, custom SAP HANA Extended Application Services
(XS) applications, and other processing by SAP HANA engines. Furthermore, the use of such 3 rd party tools to populate
staging tables shall be limited to the timeframe during which a migration project is active in the SAP S/4HANA system
installed in the same SAP HANA database tenant.
* This information is officially published on help.sap.com – Data Migration Landing Page – Further Information (as of 2020 FPS02)
© 2023 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 12
Focus topics
Correction files
After the migration, there is a possibility to generate a correction file that contains all the migration object
instances in the staging tables that have the status Error. You can find it on the Monitoring screen.
Before starting a project, use Note Analyzer to ensure all corrections are implemented –
SAP Note 3016862 (Transaction CNV_NA_MC)
Installation Guide SAP Note for SAP Notes for HotNews SAP
migration cockpit File/Staging S/4HANA 2022 FPS0
(Basis/Tool) (Content) and FPS1
SAP S/4HANA 2022, 2780378 2537549 3291483
Chapter 7
How to implement the latest corrections released for SAP S/4HANA migration cockpit
Check SAP HotNews: KBA 2342391: How to access and use the SAP HotNews application
Recap
This includes project creation, adding a migration object to a project, and all configurations
in the migration object modeler.
Introduction
Individual Adjust
transport manually in
of project DEV if
needed Same release, patch level respectively
SAP Notes level required!
SBX Import change request with project
and objects from DEV
and update DB connection
(NO design time activities*)
DEV: Development System
QAS: Quality System
Execution time activities * Design time activities are allowed in systems which are PRD: Production System
e.g. execute migration, edit mapping open for changes, usually DEV systems SBX: Sandbox System
Development package
cannot be changed at
a later point in time
For older releases, check SAP Note 3104790 and the SAP Community blog post:
SAP S/4HANA migration cockpit – File/Staging – How to get your project into another system
© 2023 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 18
Focus topics
Key takeaways
open@sap.com
Follow all of SAP
www.sap.com/contactsap
Mass changes
Performance measures
Download
migration object list
Use filter options
Documentation available
From time to time, SAP updates migration objects to ensure that they accurately reflect the current state
of the SAP S/4HANA system.
▪ Updates are shipped with new release or by TCI note
▪ The system will prompt you to update the relevant migration object
▪ Updates can be ignored
SAP Note 2537549 – Collective SAP Note and FAQ for SAP S/4HANA Migration Cockpit – File/Staging
Recommendation
▪ Migration objects can be updated, but check the release comparison carefully!
▪ Extensive tests are essential
▪ Use the Check for Custom Fields button to check whether custom fields exist. If custom fields exist, the
system updates the migration object with the custom fields
▪ Find detailed messages on the History tab
Check for Custom Fields
History
Show Messages
For list of available migration objects that support custom fields, see http://help.sap.com/S4_OP_MO
© 2023 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 9
Best practices and challenges
Mass changes
Mass change functionality may be available after an initial data migration for some migration objects
in the respective application.
Mass processing of master data for product, customer, and supplier is available. See Help Portal
for further information.
You find this information in the migration object documentation for Customer, Product, and Supplier
in the Post-Processing section.
In addition, you can check SAP Fiori Apps Reference Library to see if the mass change/maintenance
app is available for a specific application.
KBA 3065607 contains information about performance for the Staging Table approach
Non-technical measures
▪ Verify which data in the source system is required – outdated data, incorrect data, and archives should not be migrated
▪ Close open processes in the source system where possible, e.g. close open items
▪ Consider a phased approach – in case of huge amounts of master data, maybe some can already be migrated during
uptime
▪ Create a detailed cutover plan – which actions shall be started when?
▪ Using several migration projects in parallel does NOT improve performance
▪ Check active processes during downtime – skip or postpone all processes which are not necessary for the migration
▪ Perform at least one test in a production-like environment (no sandbox with bad performance!)
▪ Do not start the migration for all objects in a project in parallel. There is a sequence for migrating objects because of the
dependencies between objects.
Technical measures
The general performance of migration cockpit activities depends on several parameters:
▪ Number of data transfer jobs per migration object and migration project
– For more details about how to modify the data transfer jobs for SAP S/4HANA migration cockpit, see KBA 3066336 and
KBA 2878945
– Even if you assign a higher number of data transfer jobs to run in parallel, the effect in terms of performance depends
on the overall load of the system
– Consider that uploading multiple objects in parallel can flood the job queue
– After the prepare step the system will suggest the maximum number of jobs for a dedicated migration object
– There are some migration objects that cannot be parallelized. You can find the list of these objects in KBA 3294684
▪ System parameters, for example, the number of available batch and dialog processes, available memory, available CPU
or network bandwidth, and latency
▪ The performance of the API used in the respective migration object has also an influence on the performance
▪ Application-specific customizing also influences the performance of the target API
The Migrate Your Data app is available as of SAP S/4HANA 2020. Find below important new features for the approach
“Migrate data using staging tables”.
open@sap.com
Follow all of SAP
www.sap.com/contactsap
Introduction
Typical Questions:
▪ How can I adapt the migration objects to my needs?
▪ Is it possible to adjust the migration objects provided by SAP?
▪ I am missing a field in the staging table – how can I add this field?
▪ There are too many fields in my Excel template that I do not need
– how can I hide these fields?
▪ How can I create my own migration objects to transfer custom-
specific data?
▪ Available for SAP S/4HANA, SAP S/4HANA Cloud, private edition and included in the license
▪ Transaction LTMOM
▪ Available for both approaches
Easily integrate custom objects and enhancements into the migration project
Migration object modeler: migrate data directly from an SAP source Week 3
© 2023 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 5
Getting started with the migration object modeler – Staging tables
Transaction and role
To start the migration object modeler you use transaction LTMOM. Your user needs the following role:
SAP_CA_DMC_MC_DEVELOPER
Rules are used to change the values that are migrated from source fields to target fields.
Field-based rules: can be used to change the value of a target field during the
migration.
Internal rules: can be called by field-based rules or event-based rules. This allows
you to separate code into different modules, which can then also be shared by other
field-based rules or event-based rules.
A translation object defines how values from a specific field in the source system must be translated to target values
during the data migration. If you create your own translation objects, you need to assign a translation object to a field-based
rule; it cannot be assigned directly to a target field. Translation objects reflect the mapping tasks in SAP Fiori.
Example
The following values from the Country field in the source system must be translated to
different target values:
Germany → DE
United Kingdom → GB
America → US
For this case, there is already a translation object called MAP_LAND1 delivered and
assigned to a field-based rule (CVT_LAND1). This rule is assigned to the corresponding
target fields.
Click-through tutorial
migration object modeler –
getting started
Based on SAP S/4HANA 2022
On the Migration Object Details screen you can see for which approach the
migration object was created. Projects created with the old/deprecated
transaction LTMC are classified as “old” as of 2020.
▪ Migrate Data Directly from SAP System (Direct Transfer)
▪ Migrate Data Using Staging Tables
▪ Migrate Data Using Files (old)
▪ Migrate Data Using Staging Tables (old)
Under Source Structures, you can display and adjust the source structure so that your data can be
transferred to the SAP S/4HANA system.
Example: You can add a new field and specify the relevant information for the field or you can view the tooltip of a field.
View information on
a specific source field
Double-click Target Structures to view detailed information about the function module that transfers the
business object instance to SAP S/4HANA. CDS behavior definitions are also supported.
Forward navigation to
SE37/SE38 on target
structure screen possible
© 2023 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 15
Getting started with the migration object modeler – Staging tables
Target structures
Under Target Structures, you can get an overview of the target structures associated with the migration object
Structures can be single fields, multiple fields, or tables.
Example: Before you add a new field to the source structure, you can determine which target structure the source field
should be mapped to.
Under Structure Mapping, you can view how the source structure is mapped to the corresponding target
structure.
As a prerequisite, the source structure must be mapped to a target structure before you can map the fields of
the source to the target structure (see Field Mapping).
In Field Mapping, you can map fields from the source structure to fields in the target structure
Simply drag the relevant field from the left-hand side to the target structure field on the right-hand side.
mapped
not mapped
Information button
Documentation
▪ Generate Runtime Object: In this activity, the application generates the programs required to read data
from the source system and to transfer data to SAP S/4HANA.
▪ If required, you can view the function modules (internal SAP programs) that facilitate the transfer of data to
the SAP S/4HANA system. To view the function modules, choose Display Generated Function Group.
▪ To view additional information and documentation on the migration object modeler you can choose the
Information icon.
You can add projects and migration objects to your favorites list to speed up search.
open@sap.com
Follow all of SAP
www.sap.com/contactsap
1. Add an additional field [Post_Bank (Char, 16); Post office bank current account number] to the migration
object “Bank”
2. Add a custom view to the migration object “Bank” and hide fields [bank branch and bank group]
© 2023 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 6
Adjusting migration objects provided by SAP
Demo
Content update
From time to time, SAP updates migration objects to ensure that they accurately reflect
the current state of the SAP S/4HANA system. If a migration object must be updated, the
system will prompt you to do so. To update a migration object with content from SAP,
choose Update Object. You can do this in the SAP Fiori app or in transaction LTMOM.
▪ Custom modifications will be deleted when objects are updated.
▪ Any rules created at migration object level will be deleted.
Other modifications are not considered, and you should save any modifications that you want to
keep for future use before proceeding.
© 2023 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 8
Adjusting migration objects provided by SAP
Template migration object – Ignore content updates
If you choose this option, the system will permanently ignore content updates for the migration object.
To enable content updates again for the migration object, you can reset a migration object.
If you wish to completely decouple your enhancements from the delivered content you should copy all include
programs to the customer namespace, adjust them if necessary, and then assign them to your migration
object.
If you choose Ignore Content Updates, the migration object is treated as a user-defined migration object.
© 2023 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 9
Adjusting migration objects provided by SAP
Restore custom enhancements after content update
Any rules created at migration object level will be deleted during the content update. This means
that any mapping operations or rule assignments that use these rules cannot be used and will also be
deleted.
We recommend creating your own rules on subproject level. Updating a migration object does not
affect any mapping operations or rule assignments that use rules that are created at subproject level.
Before Update:
Source Field Rule Target Field
Source structure: Keyfield1, Keyfield2, Field3, Field4, ZFIELD
Keyfield1 Move Targetfield1
Field mapping: ZFIELD MOVE Targetfield5
Keyfield2 Move Targetfield2
After Update (your extension is still available): Field3 Move Targetfield3
Source structure: Keyfield1, Keyfield2, Field3, Field4, ZFIELD Field4 Move Targetfield4
Field mapping: ZFIELD MOVE Targetfield5 ZFIELD Move Targetfield5
Unlikely Case: Example where enhancement gets lost as the standard content is taken into account
You have added a ZFIELD to the source structure and mapped this field to Targetfield5 with a MOVE rule.
Now the standard content has a new field Field5 with a field assignment to Targetfield5. What happens after
the update?
Source Field Rule Target Field
Before Update
Before Update: Keyfield1 Move Targetfield1
Keyfield2 Move Targetfield2
Source structure: Keyfield1, Keyfield2, Field3, Field4, ZFIELD
Field3 Move Targetfield3
Field mapping: ZFIELD MOVE Targetfield5
Field4 Move Targetfield4
ZFIELD Move Targetfield5
After Update:
Your field mapping is lost, as it is replaced by the standard content
Source structure: Keyfield1, Keyfield2, Field3, Field4, Field5, ZFIELD Source Field Rule Target Field
After Update
Keyfield2 Move Targetfield2
ZFIELD is no longer used in the field mapping as the new Field3 Move Targetfield3
standard field Field5 is used. Data in ZFIELD is still available Field4 Move Targetfield4
after the update and if needed, the field mapping can be Field5 Move Targetfield5
We recommend that you always use the latest available migration objects for your project. We do not
recommend copying migration objects from older releases, as you will not have the latest content
updates available in the copied migration object.
If the staging tables are filled with data, (e.g. one or more
files have been uploaded for a migration object), then the
migration object cannot be deleted.
Adding new fields is possible, but no changes to existing Changes possible to all fields, structures, rules, and so on
fields
Standard View or Custom View possible Only Custom View possible
Only available once in a project for a dedicated migration Can be available more than once in a project
object (with a different name)
Naming convention: Z_ Naming convention: Z_Z
You can add additional fields. Custom fields will start with ZZ.
If you add an additional field, you need to run the “Adjust Structure” functionality either in the SAP
Fiori app or in transaction LTMOM or generate the runtime object in LTMOM.
© 2023 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 19
Adjusting migration objects provided by SAP
Template migration object – Adding a field (field mapping)
To map the added source field to the target field, simply drag
and drop. Alternatively, you can right-click the target field.
The resulting mapping operation is a simple 'MOVE' operation – that is, the values of the source field will be
moved to the target field. For more complex requirements, you can use rules.
Do not forget to generate your adjusted migration object to check for any error messages.
© 2023 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 20
Adjusting migration objects provided by SAP
Template migration object – Change view (1/2)
SAP provides predefined views for migration objects. You can use these views to adjust the fields that are
available in the template file and in the staging tables.
If you want to change the delivered view, we recommend that you create a custom view and adjust it
to your needs.
© 2023 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 21
Adjusting migration objects provided by SAP
Template migration object – Change view (2/2)
On migration object level you find the active view of a migration object
▪ The view determines the visible and mandatory fields for a migration object.
▪ For template migration objects the standard scope is assigned
▪ To use your custom view, change the active view to custom scope.
Don’t forget to synchronize the structures or generate the runtime object
if you change the active view!
open@sap.com
Follow all of SAP
www.sap.com/contactsap
Example
If you use the migration object CO – Cost center, you can only create the description of the cost center in one
language. See SAP Note 2671476 for more information on migration of text/description in multiple languages.
If you need to add descriptions for additional languages, you can create your own migration object to handle
this. In our example we will create a migration object to add a description in additional languages to an already
created cost center.
Used BAPI for the own migration object: BAPI_COSTCENTER_CHANGEMULTIPLE
If you use standard APIs delivered by SAP, please check that they are released for customers.
As of SAP S/4HANA 2020, a (CDS) behavior definition as well as a function module can be
used to transfer data to SAP S/4HANA.
Good to know
Good to know
If you want to create an own migration API please read the documentation
linked in SAP Note 2590165 as a starting point.
Direct link to user guide documentation.
Important prerequisites
▪ The function module must not execute the COMMIT WORK command.
The SAP S/4HANA migration cockpit handles the COMMIT control.
▪ The function module must use the ABAP Dictionary structure BAPIRET2 as a
structure to return messages to the SAP S/4HANA migration object modeler.
▪ The function module should not throw exceptions. Instead, all error, warning,
and abort messages should be reported back to the calling program.
▪ The function module should provide a test run flag so that it can be run in
test mode to simulate the creation of data in the target system.
▪ If internal numbering is used, the new keys should be returned.
1. Enter a name (must start with Z_Z), select the relevant settings, and confirm your entries.
The Mass Transfer ID will be added automatically.
Enter BAPI_COSTCENTER_CHANGEMULTIPLE
Technical name of user-defined migration objects will start with Z_Z as of SAP S/4HANA 2020.
3. Create the relevant source structure. For a migration object, source structures are organized in a hierarchy.
You can add additional structures to the hierarchy and remove structures from the hierarchy.
Maximal key length: The sum of all field lengths for the keys on the top level source structure,
including separators, must not exceed 200 characters.
© 2023 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 13
Creating your own migration object
Structure mapping
4. Maintain the structure mapping. You can check whether any errors exist for the
mapped structures.
You can check the documentation for more information on the access
type, mapping type, and data path type.
If a field from a source structure has been mapped to a target field, the system displays a green icon
beside the name of the field.
© 2023 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 17
Creating your own migration object
Field mapping: filter
Good to know
An Expert function is available to have an automated rule proposal for the target fields in the field mapping
screen. This feature is intended to help you create your own migration objects.
If you change the rules in delivered migration objects based on the rule proposals, there will be
no content support.
▪ On the Rule Proposals Overview, you can view whether rule proposals exist for the fields in the target
structure.
▪ Matching rule proposals are based on domain and data element assignments in the respective rule.
▪ In addition, if a field in a target structure has the same name as the field in the source structure, the system
proposes a MOVE rule.
Documentation on Rule Proposals available
open@sap.com
Follow all of SAP
www.sap.com/contactsap
Simulation functionality
KBA 3047880 – Analyzing API Calls Triggered by the SAP S/4HANA Migration Cockpit
If required, you can debug errors in the SAP S/4HANA target system.
If all records can be processed successfully, no instance will be saved and the specified simulation run
will be deleted from the system after the simulation run has finished.
© 2023 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 6
Tips and tricks
Add elements to a transport request
Transport functionality
Add projects, migration objects and their elements to a transport request.
If you add a project to a transport request, all assigned migration objects, rules,
fixed values, translation objects, and variables will be added to the transport
request.
If you add a migration object to a transport request, all rules, fixed values,
translation objects, and variables that are used by the migration object will be
added to the transport request.
You can also add single rules, fixed values, translation objects, or variables to a
transport request.
Only the definition of a rule, fixed value, translation object, or variable is added to a transport
request. No values, for example mapping values, are included.
If you transport a project into a system that contains the same mass transfer ID as the imported
project, this could result in inconsistencies.
Transport project
DEV: Development System
PRD: Production System
© 2023 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 8
Tips and tricks
Use project in different client – Basic facts
The transport function for the migration cockpit does not support transports
between clients in the same system.
To use a project within a system in another client, for example for testing purposes,
proceed as follows:
1. Log on to the client where you want to use the project
2. Go to the migration object modeler (transaction LTMOM)
3. Select your project in the object browser
4. Choose Goto → Use Project in Different Client
The project will not be copied to the other client; it is moved to the other client and therefore no longer
available in the old client.
Note that all mapping tasks are deleted. If you want to use the same mapping values, download
them in advance. You can use the download mapping functionality in the SAP Fiori app Migrate Your
Data – Migration Cockpit.
© 2023 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 9
Tips and tricks
Use project in different client – Important considerations
If you want to transfer the same data again to the new client, note:
▪ If the staging tables are located in the local ABAP schema of the SAP S/4HANA system
− populate the staging tables with data again, as the staging tables are client-specific
Technically, the staging tables of the local ABAP schema have an additional client (MANDT) field compared
to the remote schema.
© 2023 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 10
Tips and tricks
Overview of options to transfer projects from one system to another
2022
2021 FPS1
2021 In LTMOM**
2020 In LTMOM**
*
1909 In LTMC
If you want to migrate an instance of a migration object again for test purposes, it is possible to reset the
transfer status.
If you have already transferred an instance
to the target system you get the following
message if you try to migrate it again.
1. Delete the instance in the staging table in the SAP Fiori app Migrate Data – Migration Cockpit (not possible
in production system)
2. Use transaction LTMOM and choose Goto → Reset Transfer Status for the dedicated migration object and
respective instance (only possible in change mode).
Find below important new features in transaction LTMOM for the approach “Migrate data using staging tables”.
* Copy function changed with 2020; below 2020 objects in the copied project can’t be updated with new standard content
** Not applicable for projects created with old transaction LTMC
© 2023 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 14
Tips and tricks
Further information
open@sap.com
Follow all of SAP
www.sap.com/contactsap