Skip to Content
0
Former Member
Jul 15, 2008 at 09:14 AM

UDF error

11 Views

Hi,

I want UDF for getting all the values in a context in a single string each value separated by semi-colen.Iam using the following UDF for that :

public void seperator(String[] a[[]],ResultList result,Container container){

//write your code here

String target="";

for(int i = 0;i<a.length;i++)

target = target+a<i>;

if ( ! i == a.length-1)

{

// if i not equal to a.length -1

target = target+";";

}

result.addValue(target);

}

But it is throwing the syntax error

Source code has syntax error: /usr/sap/YXD/DVEBMGS52/j2ee/cluster/server0/./temp/classpath_resolver/Mapffe57490524d11dd9c650014c2650023/source/com/sap/xi/tf/_Mapping name_.java:610: ']' expected public void seperator$(String[] a[[]],ResultList result,Container container){ ^ /usr/sap/YXD/DVEBMGS52/j2ee/cluster/server0/./temp/classpath_resolver/Mapffe57490524d11dd9c650014c2650023/source/com/sap/xi/tf/Mapping namejava:627: ')' expected } ^

Plz help me on this.Its urgent