‎2008 May 13 10:30 AM
Hi,
I am uploading a file in module pool..I customized a creen..In tht i am designed a browse button to get a file..after getting tht file i need to check whether the entered file is word document..
help me whether any function module or class there..(Code)
‎2008 May 13 10:59 AM
Hi.
You can use the function module PC_SPLIT_COMPLETE_FILENAME as follows:
in the COMPLETE_FILENAME pass the variable with your file's path and name (for exmample: c:\temp\test.doc)
after the function module has run, the exporting parameter EXTENSION will have the file's extension (in this case, .doc)
so, if EXTENSION = 'DOC' or 'DOCX', it is an MS Word document.
Please reward points if it helps.
Regards,
George