HI ,
I have lots of countryCurrency from R3 side let say 10. I want to pass only 6 from xi to target .
for this I have Wriiten the UDF.
taking input as a queue:
UDF is below
public void filterUDF(String[] curr,ResultList result,Container container){
//write your code here
for(int i=1;i<=curr.lenght();i++)
if(curr<i>.equals("USD"))
{
reuslt.addValue(curr<i>);
}
else if(curr<i>.equals("IND"))
{
reuslt.addValue(curr<i>);
}
else if(curr<i>.equals("DE"))
{
reuslt.addValue(curr<i>);
}
else
{
reuslt.addValue(ResultList.SUPPRESS);
}
}
}
when I am using this UDF I am getting the below error
Activation of the change list canceled Check result for Message Mapping Exchange_Rate_CEZH_MM | .com:ExchangeRate_CRM: Starting compilation Source code has syntax error: E:/usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map71a412f0625311df85c8005056af4450/source/com/sap/xi/tf/_Exchange_Rate_CEZH_MM_.java:113: 'class' or 'interface' expected public static void main(String[] args) throws Exception{/!_$ClNRep_/_Exchange_Rate_CEZH_MM_ st = new /!_$ClNRep_/_Exchange_Rate_CEZH_MM_(); st.testExecute(); } ^ E:/usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map71a412f0625311df85c8005056af4450/source/com/sap/xi/tf/_Exchange_Rate_CEZH_MM_.java:114: 'class' or 'interface' expected } ^ E:/usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map71a412f0625311df85c8005056af4450/source/com/sap/xi/tf/_Exchange_Rate_CEZH_MM_.java:115: 'class' or 'interface' expected ^ 3 errors
IS there anything in synrax I am missing?
Regards