on 07-18-2009 10:32 AM
Hi Experts,
I have one value like "abcd.txt" in one field.
I need to send the value of file extension "txt" in one field.
How I will map this ?
Study SAP
Hi,
Try with substring function.ther you can give the starting position and number of digits.
Regards,
Raju.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you need to implment a UDF for this case and then perform the substring function....UDF should have the input as Argument..
Suppose your Argument is fileName (type string)
int len = fileName.lastIndexOf("."); //To check where the . appears in the input string
fileName = fileName.substring(len+1); // To perform substring function from one position after that given by above statement
return fileName; //will not have . but will only have txt....or whatever is after .
Regards,
Abhishek.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.