Skip to Content
0
Aug 05, 2015 at 04:20 AM

CORRECTION IN UDF

14 Views

Hi all,

Actually i have build a logic in the mapping fora field .


In the which the logic is

If Employee Group (P0001-PERSG) = 9 (Non-Employee) & Employee Subgroup (P0001-PERSK) = 0F(Consultant) value should be Consultant

So for this i have written a udf

String tmp = "";

for (int i=0;i<=7;i++)

{

if (persg[i].equals("9")&&persk[i].equals("OF"))
{

tmp = "Consultant";

return tmp;

}
}

please correct me where i have actually missed the logic as it is not working.

Best Regards,

Vijender