cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Configuration - Values changing depending on System

ADIDAS
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

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
}

Answers (1)

Answers (1)

Shabarish_Nair
Active Contributor
0 Kudos

System.getProperty("SAPSYSTEMNAME");