2010 Apr 09 7:57 AM
There are several files within a folder . i will just mention the folder path and program will retreive data from all the files within that flder .
2010 Apr 09 8:11 AM
You can try
CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
EXPORTING
directory = p_pres
IMPORTING
file_count = file_count
TABLES
file_table = it_file
dir_table = dir_table
EXCEPTIONS
cntl_error = 1
OTHERS = 2.
LOOP AT it_file .
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = it_file-pathname
TABLES
data_tab = gt_upload
endloop.
a®
2010 Apr 09 8:11 AM
You can try
CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
EXPORTING
directory = p_pres
IMPORTING
file_count = file_count
TABLES
file_table = it_file
dir_table = dir_table
EXCEPTIONS
cntl_error = 1
OTHERS = 2.
LOOP AT it_file .
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = it_file-pathname
TABLES
data_tab = gt_upload
endloop.
a®
2010 Apr 09 8:30 AM
it is solving my problem ....but i will be very much helpful if you could tell me whether there is any class and method to meet the same requirement ....
Thanks for the ans