on 02-23-2009 5:49 PM
Hi All,
How can I retrieve the current PI logical system name in my mapping. I need to map it as part of the payload.
Is there a java api that I can use?
Thanks,
Harsh
Hi
you can write a small UDF & use the below to get SID of the system
String sysSID = (String)System.getProperty("SAPSYSTEMNAME");
OR
String sysSID = (String)System.getProperty("user.name");
Hope this helps
Regards
Vishnu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Glad to know that it helped you..
we used this in one of our scenarios earlier.. but I dont know if there is any good doc on this.
check if this helps
Our scenario was something like this.
The customer had only Two systems (one Prod + other for dev/test/QA etc). since we cannot adjust mappings other than Dev, we used the above way & looked up values to generate the exact target location.
I shall update this link for better doc, if I find any. (also for client info)
- just try "SAPSYSTEM" if it works
Cheers
Regards
Vishnu
User | Count |
---|---|
85 | |
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.