Neler Yeni
Hoş Geldiniz,

SAPOfis Türkiye üzerinde yer alan içeriklere erişim sağlayabilmek, projelerinizde karşılaştığınız sorunlara birlikte çözüm üretebilmek adına üye olunuz. Unutmayalım ki, bilgi paylaşıldıkça değer kazanır.

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
354
Beğeniler
4
Puanları
6
#1
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

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2F13-11-2018-08-44-15.png&hash=17a50b62b7d07eb3955069e3d02a17bd


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

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2F13-11-2018-08-47-23.png&hash=ed3e1554b0458ef9cd6432ca0c84a4d8


  • Then open the migration object.

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2F13-11-2018-08-49-01.png&hash=5563790778a1cb3efdeb503c66919a77


  • Download the template

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2F13-11-2018-08-41-15.png&hash=43493d7e1934eda6b5a0dc5fdeb4a0a1


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

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2F13-11-2018-08-42-46.png&hash=31731ad6af553fb9ad482d40b658e6e6






  1. How to

To add a new field and map it:

  • Open the object modelizer

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2F13-11-2018-08-45-00.png&hash=ad9070a629ab832779320b9febd00cab


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

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2F13-11-2018-08-52-33.png&hash=80ab790b7f373e82ba2aa87a18f9eccf


proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2F26-11-2018-16-56-13.png&hash=6f8fda0394a9e28960b5f6f8b5e2aba6


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).

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2F13-11-2018-09-06-33.png&hash=20ba71f2a162f7698d666361957c8be6


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.

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2F13-11-2018-09-08-47-1.png&hash=04fed675cd7ccf2175d3c0114e527288


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

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2F13-11-2018-09-11-59.png&hash=b93b8c698bbcdbd35aac8497cb31f8a9


proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2F13-11-2018-09-13-16.png&hash=6dda7871006dd4341444b2423d9bf4c8


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.

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2F13-11-2018-09-16-47.png&hash=e654196807421ac13f6e7d85e8a726ec


  • Add the filed it in the source structure

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2F13-11-2018-09-14-53.png&hash=58c1ed840ccada53ba5d3d89d7bdc499


  • Go to “Field mapping”

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2F13-11-2018-09-20-24.png&hash=fbc87a96ccf7dd3a8da7448b43115d4a




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

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2F26-11-2018-09-40-58.png&hash=003b2dfb412fce48899202909603596a


proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2F26-11-2018-12-44-07.png&hash=54ef8f623a09e865625835cea71de7ee


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”

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2F13-11-2018-09-22-52.png&hash=ed957962d16043a164304872913c277d


  • Now Regenerate the object

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2F23-11-2018-16-58-41.png&hash=b7879c7ee8a27552c3f5aaa194cf1a06


Status will be “Generated”

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2F13-11-2018-09-26-56.png&hash=aef37e4776973b894a0230db43dfe126




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.

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2F26-11-2018-09-38-29.png&hash=7de52eb62dd51d3b0b9a111da0b491c0


proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2F26-11-2018-09-39-35.png&hash=690fb7752cf8b8c074b08fb7834e4873




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