cancel
Showing results for 
Search instead for 
Did you mean: 

Value Mapping to update the getChannel Function Service parameter name

Former Member
0 Kudos

Hi All,

Currently the scenario is, we are using a Function Library to call the BRFPlus service using the SOAP Adapter channel containg the SOAP URL of the service to be called. It is working properly.

But the issue is with the getChannel function, In this function, the parameters used are Service and the channel name.

The channel name is same across all the systems i.e Dev, Quality and Production, But the Service name is different. It is a little tedious to go in every environment and change the service name.

So, 1 option that we thought of was to use Value Mapping and check if the PI system is Dev system then use the Dev system Service for BRF call and similarly for Quality and Production i.e put in 3 conditions.

I being new to PI have not used Value Mapping till date.

Request you to please help me with how I can use the Value Mapping to satisfy the above issue. Please tell me if there are any questions.

Thanks and Regards,

NehaSingh

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

Hi Neha,

At first you should know in mapping runtime where PI enviroment is executing and later to use the value mapping to decide the service. You could check this wiki http://wiki.sdn.sap.com/wiki/display/XI/Value+mapping

To know your PI enviroment you can use PI constants if you for example change any parameter in each enviroment. There are some ways to access http://scn.sap.com/docs/DOC-3530

To know the machine you can use the next java code:


InetAddress addres = InetAddress.getLocalHost();

String host = addres.getHostAddress();

Regards,

Message was edited by: Iñaki Vila

Answers (1)

Answers (1)

Former Member
0 Kudos

We used value mapping and the constant for PI system to satisfy the requirement.

Thanks and Regards,

NehaSingh