cancel
Showing results for 
Search instead for 
Did you mean: 

Identification Test- and Production-System in Mapping

thorsten_hautz
Participant
0 Kudos

Hi,

we have a Java-function in a mapping step.

There we need an identification if it runs in our Test- or Production-system.

Currently we use a property file in the Java-Package for realizing this.

But this is not a very good solution. The last time we transport the archive to our production system somebody forgot to change this property file and therefore we had some trouble in our production.

Does anybody have an idea how we can identify the system name of the XI-system in a Java-Mapping?

Is there perhaps any constant we can use of the Map input-parameter?

In the documentation I didn't found anything about this.

Best Regards,

Thorsten

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thorsten,

Try using System.getProperty("SAPSYSTEMNAME") in your Java function.

Regards,

Jaishankar

thorsten_hautz
Participant
0 Kudos

Hi Jaishankar,

thanks a lot.

This solves my problem.

Best regards,

Thorsten

Answers (0)