on 06-10-2009 1:39 PM
Hi,
Does anyone have an idea how we can get XI host name & IP address dyanamically in our mapping.
Thanks in advance.
Regards,
Sarvesh
Hi,
Please find the code below for the UDF which serves the function: to check value for the PI system id (probably use System.getProperty("SAPSYSTEMNAME")) - if the system name is PIP then the function returns u201CPu201D; otherwise the function should return u201CTu201D
String SystemID = null;
SystemID = System.getProperty("SAPSYSTEMNAME");
if (SystemID.equals("PIP"))
result.addValue("P");
else result.addValue("T");
No input is required for the UDF and also no import packages required apart from the default ones in UDFs..
regards,
Kishore
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
java.net.InetAddress
getHost()
getAddress()
http://java.sun.com/j2se/1.5.0/docs/api/java/net/InetAddress.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.