on 07-31-2015 6:37 AM
Hi All,
Can anyone help to write one UDF. I have a requirement to write UDF for counting the number of characters from right to left,if numbers more than 16.
Requirement:
Vendor Invoice number(truncate from right to left if vendor number
is more then 16 charecters..)
Thanks,
Janardhan
Hi Janardhan,
Please use below UDF:
if(input.length()>16)
{
input=input.substring(input.length()-16,input.length());
return input;
}
else
return input;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.