Skip to Content
0

Mapping reuse with minor changes

Mar 24, 2017 at 08:51 PM

63

avatar image

Hello all,

I have done the following graphical message mapping in SAP PI. Most of the mapping remains the same for other target elements except for a few differences as shown below:

screen-shot-2017-03-24-at-112619-am.png

For e.g. only the constant value and target value marked in the screenshot would change. Is there a way the below mapping can be re-used with only the required changes in them?

Input structure is as follows:

<ItemData>
<Attribute name="VENDOR_ACCOUNT_NUMBER">
<Value>12345678</Value>
</Attribute>
<Attribute name="VENDOR_ACCOUNT_GROUP">
<Value>XYZ</Value>
</Attribute>
<Attribute name="LEGAL_ENTITY">
<Value>1234</Value>
</Attribute>
<Attribute name="NAME1">
<Value>PC Store STA EOOD</Value>
</Attribute>
</ItemData>

Output structure is as follows:

<CREMAS05>
<E1LFA1M>
<LIFNR/>
<NAME1/>
<KTOKK/>
</E1LFA1M>
</CREMAS05>

Regards,

Mustafa

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Harish Mistri Mar 31, 2017 at 12:42 AM
0

Hi Mustafa,

One of the possible options is to create mapping template and apply the template to reuse the mapping. After applying the template you can change the constant or mapping of few fields which are scenario specific.

If you really want to reuse the same mapping object across interface then use the value mapping instead of constant in fields. But then you need the identifier of different scenarios from the source message.

regards,

Harish

Share
10 |10000 characters needed characters left characters exceeded