Technical blog
SAP TPM - part II - Data
created by Midjourney
Jiri Fridrich
2. 10. 2024
Integration
As mentioned in the previous post - TPM overview, Data is handled by SAP Integration Advisor and involves Message Implementation Guidelines (MIG) and Mapping Guidelines (MAG).
Let's prepare a very simple scenario, where we will be receiving a Purchase order in IDoc format, and map it 1:1 with a tiny change in the data.
MIG
First we create a MIG for the Purchase order. In the Design menu, we choose MIGs and click Create.
If we are fine with standard IDocs, we keep 'Standard' highlighted and select the type of source system - in our case SAP S/4HANA on-premise IDoc.
Then we get plenty of standard IDoc types to choose from. We select ORDERS.ORDES05 and on the following screen the version. The default values are limited, but it can be overwritten later. We select 1809_FPS02.
On the next screen we can upload our sample IDoc file if we have one, or we can just skip this step.
Finally, this is our summary and we can proceed with creating our MIG. As 'Own Business Context' is a mandatory section, we select a Business Process which best describes our message exchange. In this case - Manage Purchase Order.
After we save our MIG, we activate it in the top right menu.
MAG
In the left Design menu, we choose MAGs and click Create. As source MIG, we select our previously created MIG.
As target MIG, we can actually use the same MIG, as we will be just mapping 1:1. This is a simplified scenario to show the principles, we are not going to deep dive into mapping here. Nevertheless, some basic mapping is necessary, so let's do it.
Note, that we don't name the MAG in our own matter. The name of the MAG is simply 'source MIG to target MIG'.
After we save our MAG, the mapping screen appears automatically and we easily drag a line from the parent element of the source MIG to the parent element of the target MIG. This means that we are mapping all fields.
Now let's map something very trivial. We look for the element CREDAT (date of creation) and just modify the format from CCYYMMDD to DDMMCCYY. Again we drag the line from left to right and the mapping is just a selection from a dropdown list.
Then we need to activate the MAG the same way we did the MIG.
Now our work is done and our data artifacts MIG and MAG are ready to be used in TPM configuration.