‎2009 Apr 22 11:04 AM
Hi , want to know how to extract extension of a file eg: c:\mytestdata.xls
The function module/class should give the result as 'xls'
please give me function module/class
‎2009 Apr 22 11:10 AM
‎2009 Apr 22 11:07 AM
Hi,
You can use use SPLIT statement.
You can split the filename at '.' and store whatever is there after . in a variable which will give you the extension.
Press F1 on SPLIT to get syntax details.
‎2009 Apr 22 11:09 AM
thanks 4 ur reply.
we are asked not to use any string fns..
Give me any Function module or class name.
‎2009 Apr 22 11:10 AM
‎2009 Apr 22 11:14 AM
‎2009 Apr 22 11:13 AM
‎2014 Apr 15 12:34 PM
Hi Suhas,
I don't think that function module will work for file extensions with more than 3 characters.
Just a heads up.
Cheers,
Bruno
‎2009 Apr 22 11:14 AM
Check the Function module
PC_SPLIT_COMPLETE_FILENAME
Note:
Always Search before Posting any Question.
‎2009 Apr 22 11:16 AM
HI Deepthi,
Try this
SO_SPLIT_FILE_AND_PATH
Thanks,
Babu Kilari