Professional Documents
Culture Documents
Unit 1: Getting Started With The Migration Object Modeler
Unit 1: Getting Started With The Migration Object Modeler
SAP S/4HANA
Migration objects *Available for on-premise as of 1709 FPS02, available for cloud on request
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 2
Getting Started with the Migration Object Modeler
Introduction
Typical Questions:
▪ How can I adapt the delivered content to my customers' needs?
▪ Is it possible to adjust the existing SAP migration objects? SAP S/4HANA
▪ I am missing a field in my Excel template or staging table – how can I add this field?
▪ How can I adjust the selection of data for the direct transfer approach?
▪ How can I create my own migration objects to transfer customer-specific data?
Migration Object Modeler: Modeling Environment of the SAP S/4HANA Migration Cockpit
Easily integrate custom objects and enhancements into the migration project SAP S/4HANA
▪ Customer-specific enhancements to SAP standard objects delivered with the SAP S/4HANA
migration cockpit
– Easily adjust input structure (file/staging)
▫ Add new fields
▫ Hide a field in the template
– Add or change migration object selection criteria (direct transfer)
– Map structures and fields
▪ Integration of newly created objects:
– Custom objects Transaction:
– SAP standard objects that are not yet in the scope of the SAP S/4HANA migration cockpit LTMOM
– Use standard APIs or code your function module
▪ Available for SAP S/4HANA and included in this license
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 4
Getting Started with the Migration Object Modeler
Focus of this week – file and staging approach
NOTE:
To run the necessary transaction, your user needs the following role:
SAP_CA_DMC_MC_DEVELOPER
NOTE:
To run the necessary transaction, your user needs the following role:
SAP_CA_DMC_MC_DEVELOPER
Under Source Structures, you can 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.
Choose ‘Insert Field’
The XML template file can be downloaded via LTMOM as well (in source structure definition).
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 check 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).
Under 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.
If a field from a source structure has been mapped to a target field, the system displays a green icon, and a
red icon if it has not been mapped.
Filter for mapped/ unmapped fields
Information
▪ 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.
Information button
open@sap.com
Follow all of SAP
www.sap.com/contactsap
▪ You can choose the following options: visible, not visible, required
▪ At least one field must be visible if the corresponding structure is visible
▪ A warning is shown if a key field is set to not visible
The foreign key relationship models how the structures in a migration object relate to each other.
For each primary key field in the foreign key (child) table, at least one relationship to the check (parent) table
must exist (either to a key field or to a non-key field).
▪ Reason: Improves performance during design time when dealing with a complex object and makes
modeling easier
▪ Exclude target structures, which are optional in the corresponding function module and which are not
mapped to any source structure. These target structures no longer appear in the UI of LTMOM.
You can add projects and migration objects to favorite lists, which are available when you
start transaction LTMOM.
open@sap.com
Follow all of SAP
www.sap.com/contactsap
Good to know
Good to know
▪ As a starting point, read the attachment for SAP Note 2590165 to create your own function module.
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 migration object modeler.
▪ 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.
Good to know
Expert function available to have an automated rule proposal for the target fields in the field mapping
screen. This feature is intended to help you with the creation of 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 screen, 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
The system displays the information about where the field-based rule was created in brackets:
▪ (S): Subproject-Specific; the rule was created at subproject level and can be used by all migration objects
in that subproject.
▪ (M): Migration-Object-Specific; the rule was created at migration object level and can only be used by that
migration object.
open@sap.com
Follow all of SAP
www.sap.com/contactsap
You can use rules to change the values that are migrated from source fields to target fields.
A translation object defines how values from a specific field in the source system must be translated to target
values during the data migration. You need to assign a translation object to a field-based rule; it cannot be
assigned directly to a target field.
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
In this case, you create a translation object called Country
and assign it to a field-based rule, and assign the rule to the
corresponding target field.
open@sap.com
Follow all of SAP
www.sap.com/contactsap
You need to download a file template using ▪ The migration object was generated successfully
either transaction LTMC or transaction LTMOM
(possible as of 1909). You can then enter
▪ A simulation parameter is defined in activity
values in the file that you want to simulate or Target Structures API
debug. ▪ The migration object is not locked by any other
user
▪ If the migration object is copied from a template, it
must not have any outdated objects (Update
Available No)
Program: DMC_MC_MIGOBJ_EXEC_FILE
Program: DMC_MC_MIGOBJ_EXEC_FILE
To debug the saved record in the target system, you can choose
Goto → Debug Error (program DMC_MC_MIGOBJ_EXEC_SINGLE_OLO)
To delete the saved simulation run choose
Goto → Delete Run (program DMC_MC_MIGOBJ_EXEC_OLO_DELETE)
Program: DMC_MC_MIGOBJ_EXEC_STAGING
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 9
Simulating and Debugging a Migration Object
Migration object modeler – Simulate import / downport for lower releases
Migration object modeler: modeling environment of the SAP S/4HANA migration cockpit
Transaction:
LTMOM
Easily integrate custom objects and enhancements into the migration project
▪ Adapt the delivered content (SAP migration objects) to your needs
▪ Add a field in the Excel template or staging table
▪ Create your own migration objects to transfer customer-specific data
▪ Create your own rules to add customer-specific messages or masking/pattern rules
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 11
Simulating and Debugging a Migration Object
Outlook
open@sap.com
Follow all of SAP
www.sap.com/contactsap