Hi Lucho,
The UDF you wrote returns first 40 characters instead of last 40. The statement
if (sValue.length >= 40)
sValue = sValue.substring(0,40);
would return first 40 characters.
I think the graphical mapping too will also produce first 40 characters instead of last 40 ones.
Please correct me if i am wrong.
Regards
Anupam