on 05-16-2011 4:34 PM
Hi,
We have a requirement where we need to send the files of an interface to different locations on the same server based on Company Codes. We have used Dynamic configuration to achieve this function.
However the location names also differ based the environment. The values of location differ between the TEST and PRODUCTION environments. I was planning on using SYSTEM ID ( Like in ABAP SYST table ) to achieve this function howvere i cannot find a Java method that can give me access to the System Values.
Can someone help me point to the JAVA method i can use in the UDF Map to acess these values and determine the name of the location.
Regards,
Arunava
Yes as Shabarish pointed use System class in Java. You can fetch any information related to System using this class. You can find whether the environment is TEST or PROD like that...
http://download.oracle.com/javase/tutorial/essential/environment/sysprop.html
String env = System.getProperty("SAPSYSTEMNAME")
If (env.equals("TEST"){
//do something
}else{
// code per requirement
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.