on 04-12-2010 6:48 PM
Hello All,
I would like to know if there is any dynamic varibale which can be used in PI message mapping to indenty which env i am currently.
Like Dev, Q or Prod.
Please let me know if anyone can help.
Regards,
Vikrant
Vikrant,
Yes you can. Use the below UDF to achieve the same
String sysname = (String) System.getProperty("SAPSYSTEMNAME");
if(sysname.equals("D05")
{
//statement
}
else if(sysname.equals("Q05")
{
//statement
}
else
{
//statement
}
PS: In my system, I'm getting D05, Q05- You have to first write something like below to see what you are getting from your environment.
String sysname = (String) System.getProperty("SAPSYSTEMNAME");
return sysname;
Hope it helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.