SAP BLOG S4/HANA Migration Cockpit: How to modify migration object template file

SAP Blog

Kayıtlı Üye
Katılım
22 Ara 2017
Mesajlar
1,925
Tepki puanı
7
Puanları
6
In this post, we’ll try to have an idea how to add a field to the standard data migration template file.

We’ll take as example the quality inspection plan. It will be a simple example without any ABAP coding.



  1. Issue

Standard migration template of inspection plan does not provide the field SPC criteria, which is an obligatory field for Characteristics relevant for SPC.



Details:

To download and display the standard template

  • Open the migration cockpit

13-11-2018-08-44-15.png


  • Open the migration Project.Take note of the “Mass Transfer ID”. We’ll see later how to use it.

13-11-2018-08-47-23.png


  • Then open the migration object.

13-11-2018-08-49-01.png


  • Download the template

13-11-2018-08-41-15.png


If you check the field list and the relevant sheet, you’ll not find the required field.

13-11-2018-08-42-46.png






  1. How to

To add a new field and map it:

  • Open the object modelizer

13-11-2018-08-45-00.png


  • Search the required object. Here, you’ll check the object name terminated by the “Mass Transfer ID” already mentioned above

13-11-2018-08-52-33.png


26-11-2018-16-56-13.png


The object contains several sub objects. We’ll focus on what is useful for the topic of this post.

The source structure is the structure of the template (the sender).

13-11-2018-09-06-33.png


The target structure is the “receiver”. It contains all possible fields required by the BAPI executed during the creation of the master data. In our example, it’s BAPI_INSPECTIONPLAN_CREATE.

13-11-2018-09-08-47-1.png


We could find that in the target structure, we have already the required field. Then our task will be to enhance the source structure and provide the correct mapping.

We’ll proceed as follow :

  • Check the data element as per in the standard table

13-11-2018-09-11-59.png


13-11-2018-09-13-16.png


For this field we don’t have any specification/domain/conversion. It will not be required to link it to a specific one.

For other fields, and if it’s the case, it will be better to refer to such specification (standard data element) in order to not explicitly add a rule and write the conversion routine.

As example the supplier code: you need to choose a field name referencing the standard domain, in order to inherit the “ALPHA” conversion.

13-11-2018-09-16-47.png


  • Add the filed it in the source structure

13-11-2018-09-14-53.png


  • Go to “Field mapping”

13-11-2018-09-20-24.png




  • Drag and drop the SPC criterion field from the source structure to the destination field in the target structure.

26-11-2018-09-40-58.png


26-11-2018-12-44-07.png


The mapping is done, but we still need to generate the object after the modification.

After each modification the status of the object will be set set to not “generated”

13-11-2018-09-22-52.png


  • Now Regenerate the object

23-11-2018-16-58-41.png


Status will be “Generated”

13-11-2018-09-26-56.png




We’ve completed the new mapping!

You could verify it by downloading again the template, and check the existence of the new field in the template.

26-11-2018-09-38-29.png


26-11-2018-09-39-35.png




You could use the above steps with any migration object. The prerequisite is to have the required field in the target structure.



Conclusion

In this post, we had an overview how to manipulate the migration cockpit, the object modeler and some of its components.

It’s not the hardest step in your project. It’s simpler than “how to fill the migration file with the right data ”.

You could continue the migration and good luck for the rest!

Okumaya devam et...
 
Üst