Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

value exists

hi all

I need a favor.

I need a java udf : I will take values in a context function and if second value in array does not exist ,I return a blank ,else I return the second element within the array.

Thnx

replied

Hi,

Try the UDF I have given below. I gues sthis is your requirement.

if(a.length < 2)
{
 result.addValue("");
}
else if(a.length ==2)
{
result.addValue(a[1]);
}

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question