on 07-21-2009 6:48 AM
Hi SDNers,
In my current assignment I am required to fetch the SID of the PI system on which the map is running and take some action based on this SID. My mapping is a JAVA Mapping.
How can I fetch SID of the system at runtime?
Using StreamTransformationConstants I can fetch the parameters mentioned [here|http://help.sap.com/saphelp_nw04/helpdata/en/43/09b16006526e72e10000000a422035/frameset.htm]
but these parameters do not include SID.
Kindly throw some light on this.
Regards,
Gautam Purohit
String systemID = java.lang.System.getProperty("SAPSYSTEMNAME");
// Get the SID
String sysNam = (String) System.getProperty("SAPSYSTEMNAME");
if(sysNam.equals("<XID>")){
//your logic
}
else if(sysNam.equals("<XIQ>")){
//your logic
}
...
...
...
that should be the logic.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
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.