cancel
Showing results for 
Search instead for 
Did you mean: 

A kind of value mapping

Former Member
0 Kudos

I have a normal PI scenario.

SAP -> xi soap -> PI -> soap -> THIRD PARTY SYSTEM

Every request of the third party web service has the element "mandant". But this shouldn't be transparent for the calling SAP system. So I have the following message types:

<request_sap>
	<a></a>
	<b></b>
</request_sap>

<request_ext>
	<a></a>
	<b></b>
	<mandant></mandant>
</request_ext>

Depending on the calling system (DEV, Q/A, PROD) I want assign a specific value to this "mandant" element. But I donu2019t sure which is the right way.

The easiest way is to use the graphical mapping tool. Because I have only 3 systems it would be quite simple. If sender = xx then mandant = yy. I can use a udf for that purpose too bur in general I have the feeling that this isn't a good way.

Second thought was value mapping but here I have two problems. I have no source value but I can use "sender" as sunstitute here. But I have no idea for my second problem. I read this Wiki here:

http://wiki.sdn.sap.com/wiki/display/XI/Value+mapping

But in my scenario I haven't a sender communication channel. So I can't assign Sender Agency and Sender Schema to this channel.

Or is there a better way to reach my goal?

Accepted Solutions (0)

Answers (1)

Answers (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

Use UDF to achive the same, it is good design.

Regards,

Raj