‎2011 Mar 01 5:45 AM
Hi All,
I have a requirement to download 10 different TXT files download to desktop. I can do it by using FM 'GUI_DOWNLOAD', but before downloading, we need to add two lines of information regarding the file.
for example: first_line = ' This file describes about the candidate information'.
The string first_line should be added to the file. In the same manner first_line string will have different content for different files.
I guess, my explanation is clear.
If you have any ideas, please share with me.
Thanks,
Anil
‎2011 Mar 01 6:02 AM
Well you are downloading the data to desktop from an internal table using GUI_DOWNLOAD. why not append the internal table with the 2 lines that u need to add before passing it to GUI_DOWNLOAD
‎2011 Mar 01 6:06 AM
Hi,
If my understanding is correct,
you want to display some text in file along with the data ,
suppose you hav data in ITAB1 declare one more internal table ITAB2
ITAB2 will hav same fields as ITAB1 but first field will be the text field for ur puspose
Example :
suppose ITAB1 contains A
B
C
D fields
ITAB2 will be T
A
B
C
D fields.
ITAB1 has all the required data.
ITAB2-T = 'First Line of the file'
Move-corresponding fields of ITAB1 to ITAB2.
So now ur ITAB2 contains erquired text and data.
Please let me know if you hav any queries on this.
Thanks and regards,
Sree.
‎2011 Mar 01 6:22 AM
‎2011 Mar 02 4:38 AM
Hi Sree,
I have a query here: as i said,i have to download 10 different files. So using perform 'sub_get_download' I am trying to download.
For a single file download your logic will work, but here i have to download multiple files.
I hope you got my point.
Thanks,
Anil