Hello,
Check this UDF:
Input will be var1
Execution type - All values of a context.
if(!var1[0].equals(""))
{
int len = var1[0].length();
int divide = len/80;
String out = "";
int temp = 0;
if(len%80 == 0)
{
for(int i=0;i<divide;i++)
{
temp = 80*i;
out = var1[0].substring (0+temp,80+temp);
result.addValue(out);
}
}
else
{
for(int j=0;j<divide;j++)
{
temp = 80*j;
out = var1[0].substring (0+temp,80+temp);
result.addValue(out);
}
result.addValue (var1[0].substring (divide*80, len));
}
}
else
result.addSuppress();
For removing special characters u can refer the mapping suggested above...But in case ur input contains different kind of special characaters (which u don't know at design time) then u have to adjust ur mapping...
Thanks
Amit Srivastava