on 06-27-2008 8:30 AM
Hi all,
I have to do a runtime check wether I am running on D, Q or P.
In that context i have created a UDF with the following code:
String a = System.getProperty("SAPSYSTEMNAME");
return a;
I get this error when I try to activate: "Mapping not sufficiently defined"
So my guess is that the UDF is not correctly defined, since the UDF-box in my mapping-overview is yellow.
Do I need to import a package? or is the coding wrong?
Thanks!
/Thomas
I guess there is a mandatory field in the target structure which was not mapped by you ....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Did you tried something like this
String systemID = java.lang.System.getProperty("SAPSYSTEMNAME");
try this logic in a UDF and assign the values to the target nodes;
// Get the system name
String sysName = (String) System.getProperty("SAPSYSTEMNAME");
if(sysName.equals("<XIDEVSERVER>")){
//your logic
}
else if(sysName.equals("<XIQASERVER>)){
//your logic
}
Regards
Aashish Sinha
PS : reward points if helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.