Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Add string to Internal table

Former Member
0 Likes
521

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

4 REPLIES 4
Read only

mithun_shetty4
Contributor
0 Likes
487

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

Read only

former_member125931
Active Participant
0 Likes
487

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.

Read only

0 Likes
487

Thanks for the reply.

I will try this.

Thanks,

Anil

Read only

0 Likes
487

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