07-20-2005 9:06 AM
Hi,
I want to upload five different tab delimited text file to the respective internal tables. The obvious way to do this is using GUI_UPLOAD function for each and every text file. Is it possible to perform this by using GUI_UPLOAD only once in an subroutine and calling the subroutine five times by passing the internal table name and the file name? Or suggest me is there any other way?
Regards,
Arokiaraj. S
07-20-2005 9:14 AM
hi,
1) collect your itabs in an int.table ztab
2) loop ztab
a) gui_uplod (e.g. with filename = tabname)
b) do your processing
...
-> example for download:
SELECT TABNAME devclass FROM INFO_TABL INTO TABLE itab
WHERE TABNAME IN TABN
AND DEVCLASS = DEVC
AND tabclass = 'TRANSP'.
LOOP AT itab.
create data dyn_tab type standard table of (itab-tabn).
assign dyn_tab->* to <dyn_tab>.
SELECT * FROM (itab-TABN) INTO table <dyn_tab>.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filetype = 'ASC'
filename = filename
TABLES
data_tab = <dyn_tab>.
endloop.
regards Andreas
07-20-2005 9:21 AM
Hi,
You can do that by passing filename and data_tab[internal table] to the subrotine.your datatab should be passed as changing parameter.
07-20-2005 9:43 AM
Hi,
yes i guess u can do that:
PERFORM f100_upload_data USING file name
CHANGING internal table.
Regards,
Anjali.