SAP BLOG Create New Custom Migration Object Using LTMOM

SAP Blog

Kayıtlı Üye
Katılım
22 Ara 2017
Mesajlar
1,852
Tepki puanı
7
Puanları
6

INTRODUCTION


As we know, SAP has pre-delivered objects in LTMC, but there is master data or transactional data that does not yet have LTMC objects, such as service master. In this post, we will create a custom LTMC object for uploading the service master data (AC01) using LTMOM with standard BAPI.

Testing is done on S/4HANA 2021.



PREREQUISITES


Since S/4HANA 2020, SAP has deprecated LTMC using the web Dynpro version and moved to the Fiori app Migrate Your Data (F3473). If you are not familiar with the Migrate Your Data app or LTMOM, I recommend you to read these blogs:




How to Create New Custom LTMC Object using LTMOM


we will use Function Module BAPI_SERVICE_CREATE to create a Service Master custom LTMC object.

CREATE A NEW CUSTOM OBJECT


1. Go to T-Code LTMOM

2. Choose the project that you want to create a new custom object.

1.-Choose-The-project-1.png




3. After choosing the project, click in the menu bar Project->Create Migration Object->User-Defined->Migrate Data Using Files/Staging Tables to create a new custom object

2.-Create-Migration-Object.png




4. Enter the object ID and description and choose Function Module as the Target Structure, then click Next

3.-Choose-The-Name-of-Custom-Object.png




5. Enter the name of Function Module, Return Parameter and TestRun parameter so that we can do the simulation before uploading the data, then click continue

4.-Enter-the-Name-of-FM-1.png




CREATE SOURCE STRUCTURE


After successfully creating the new custom object, now we create a source structure.

6. Double click on the source structure at the left sidebar, right click on the source structure on the right sidebar, then choose Append Structure to Lower Level.

5.-Create-Source-Structure.png




7. Enter the name of the source structure, then click continue

6.-enter-the-name-of-source-structure.png




8. Click add field to enter the fields of the source structure, then click the save

7.-Add-Field.png




9. You can also make certain fields to become mandatory by right click the structure and then choosing change view

8.-Change-View2.png


8.-required.png




STRUCTURE MAPPING


After creating the source structure, we map our source to the target structure.

10. Double click on the structure mapping on the left sidebar

11. Drag our source structure to the target structure

9.-Structure-Mapping.png




12. Drag our source structure to the target mapping field, then click the save

9.-Structure-Mapping-Field-Fixed.png




FIELD MAPPING


And the last step is field mapping our source structure to the target structure.

13. Double click the Field Mapping on the left sidebar.

14. Drag the source field to the target field just like we did in the previous step

15. Right click Single-Character Flag Number Range Check, then choose assign rule

10.-Field-Mapping-2.png




16. Choose rule Move and enter parameter ‘X’ to assign a constant value to the field

10.-Field-Mapping-3.png




17. Then click Save and then Generate

11.-Save.png




TESTING​


1. Open Migrate Your Data app

2. Open your migration project

Test-1.png




3. Our new custom migration object is automatically added to the project. Download the template

Test-2.png




4. Complete the template data

Test-3.png




5. Upload the template file

Test-4.png




6. Click Prepare

Test-Prepare.png




7. After the preparation of the staging table is completed, you can click instance to check your data.

Test-5-1.png


Test-6.png




8. Choose Simulate, then click start simulation

Test-Simulate-1.png


Test-7.png




9. If the simulation is successful, you can continue to migrate the data

Test-8.png


Test-9.png




10. The migration data is successfully executed.

Test-10.png


Test-11.png




CONCLUSION


If pre-delivered LTMC objects don’t yet support your migration data requirements, you can create custom objects using LTMOM with a standard or custom Function Module.

please feel free to provide the feedback.

Additional Reading:


Migrating Service Purchase Orders with S/4HANA Migration Cockpit by Alexey Danshin

Okumaya devam et...
 
Üst