Sub topic 15
Adapting Objects with the Migration Object Modeler
This chapter assumes you know what a migration object is, how a project selects objects, and how value mapping and validation work in the cockpit. It covers when to adapt an object and how the migration object modeler (transaction LTMOM) supports that.
When to adapt an object
Predefined migration objects cover the common cases. Adapt one only when a requirement cannot be met by templates, value mapping, or the fields the object already offers. Typical reasons:
- You need a field that the predefined object does not expose.
- You must change how a source field is converted or defaulted.
- You want to hide fields you never use, so the template is shorter.
- You need a custom object for data that no delivered object covers.
Try simpler options first. Every change creates a copy you must maintain, and upgrades can bring new SAP versions of the delivered object that your copy does not contain.
What the modeler works with
The modeler edits the definition of an object, not its data. For a selected object, it shows three connected layers.
| Layer | What you can do |
|---|---|
| Source structures | Add or remove fields, and change field properties such as length. |
| Target structures | Review the structures that the load will fill. |
| Field mapping | Define the rule that connects each target field to source fields. |
A field rule can map a source field directly, assign a fixed value, or call a conversion rule. Rules for value conversion are the same kind you use in value mapping, so mapped values stay consistent.
Working in a safe order
- Open the modeler and choose the object. Work on a copy of the delivered object, not on the original.
- Add or change source fields in the source structure.
- Map the new fields to target fields in the field mapping.
- Generate the object so the runtime artifacts match your changes.
- Return to the cockpit, update your project, and download a new template.
- Run a test migration with a small data set and compare the result with the source.
Flow of an adaptation
Common errors
- Old template after a change. Source structures changed, but users still fill the earlier file. Download the template again and share it.
- Unmapped target field. A required target field has no rule, so the load reports missing values. Check the field mapping for empty required fields.
- Forgotten generation. The definition is saved but not generated, so the cockpit behaves as before.
- Editing the delivered object. You lose a clean reference and complicate upgrades. Keep the original untouched.
Exercise
A team needs one extra legacy field in the customer template. Value mapping cannot supply it. List the steps from the modeler to a confirmed result.
Show answer
Copy the delivered object in the modeler, add the field to the source structure, map it to the target field, and generate the object. Then update the project in the cockpit, download the new template, and run a test migration with a small data set. If the result matches the source, transport the changed object to the other systems.