‎2008 May 27 7:14 AM
Hello,
I am looking for a function module which reads the size of the input file. I mean it should indicate if the file is empty or not.
Thanks,
Mridu.
‎2008 May 27 7:17 AM
Hi,
Use the function FILE_GET_SIZE of CL_GUI_FRONTEND_SERVICES class.
Hope this helps.
~ Ramanath.
‎2008 May 27 7:25 AM
Hi,
use the function module GUI_UPLOAD.the importing parameter FILELENGTH will give u the number of bytes transferred. if it gives zero then u can say that the file is empty.
rgds,
bharat.
‎2008 May 27 7:28 AM
‎2008 May 27 7:31 AM
Hi
use this FM
call method cl_gui_frontend_services=>file_open_dialog
exporting
initial_directory = ws_f0001_pcpath
changing
file_table = i_file
rc = ws_f0001_rc.
‎2008 May 27 7:40 AM
Hai,
You can use this function module for find the file size.
'GUI_GET_FILE_INFO'
IMPORT
FNAME- file path. (C:\tst.txt)
EXPORT
FILE_SIZE = output
Dont forget for give Points.
Thanks & Regards,
Durai.V