Since my last post regarding LTMC, I was inclined to write about LTMOM too. Now we have the capability to use the function modules to upload data. Less ABAP work it seems… SAP may have just hit the jackpot with this move.
To be properly able to use LTMOM, you’ll need 3 authorization objects.
Just assign them into related roles you expect to use.
Let’s say that we have a clean-sheet system and we are about to make a brand new entry to data migration for related system. We need to create a project -as in LSMW-. For that, we need to go to LTMC.
Now we are ready to move to LTMOM.
Create User-Defined Data Migration Object
Since we’ve got our new project, let’s create a user-defined object. User-defined objects mostly help us to migrate custom data that we don’t have at standard. In our example, I have chosen to upload new production orders. Over here, each structure will inherit an excel tab to upload.
Now, one of the LTMOM’s most important part. It just asks you which function to use. With this approach, SAP just gives flexibility to incorporate every possible action in mass. In absence of developer.
After you’ve created the user-defined object, it’ll bring the object tree on the left. First you need to create a source structure. I know it’s kinda weird but right click on “Source Structure” and choose “Append Structure to lower level” this will give you first structure to you. So that you can provide it as an Excel -XML to be more precise-. If you are in need of multi-level structures, you can also create lower level or higher level
Just as it was in LSMW, we will enter the column names into the structure.
You can use the buttons to add line or to remove.
Data Structure Mapping
As it was in LSMW, we are bound to match the source structures with target structures. Just simple drag-drop will work.
Our drag-drop operations also work in here. Just drag and drop over the field you’d like to match.
If you are tend to use constant values, just double click over the target field.
This part is important due to the fact that rules gets inbound to our work process. A rule can be easily fed from segments, idocs or directly fields.
Rules, Rules, Rules…
This place is also relevant from custom rules. You can create event-based or field-based rules which you can support with additional ABAP coding. By defining import and export parameters. Which i am not going to use in this example. You can also use event based rules to make starting objects or ending objects.
End of Modeling Process
After we are done with all application, just move to top, and generate the program.
After you’ve successfully generate the model, you can proceed to LTMC to start data upload.
If you don’t know how, you can use my previous post regarding LTMC.