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

Gui_download issues

ankit_doshi
Participant
0 Likes
577

Hi Gurus,

I am using the FM 'GUI_DOWNLOAD' to download the contents of an internal table to an Excel file.

The data in the internal table is in tab limited form(I don't want to convert it into comma separated) .

Now the issue is that after after the data gets downloaded to the Excel file all the data for a particular row appears in a single column.

The parameters that i have passed to the FM are

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

filename = w_file "Contains the File path and the file name C:\temp\ABC.xls

filetype = c_asc " ASC

write_field_separator = c_x " X

TABLES

data_tab = ts_out " Internal table which contains the tab limited data.

for Example:

the data in the excel file appears this way:

Z V Z00001 Pricing Brackets 010 00 Z000 price bracket 1st 000 000 000 000 000 price bracket 1st

all in the single column(A).

How can i put the tab limited data into different columns of excel file?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
521

HI

Please refer the below link,

it may help you.

http://an-abaper.blogspot.com/2009/07/download-tab-delimited-file-using.html

Thanks,

K.Tharani.

Hi Gurus,

I am using the FM 'GUI_DOWNLOAD' to download the contents of an internal table to an Excel file.

The data in the internal table is in tab limited form(I don't want to convert it into comma separated) .

Now the issue is that after after the data gets downloaded to the Excel file all the data for a particular row appears in a single column.

The parameters that i have passed to the FM are

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

filename = w_file "Contains the File path and the file name C:\temp\ABC.xls

filetype = c_asc " ASC

write_field_separator = c_x " X

TABLES

data_tab = ts_out " Internal table which contains the tab limited data.

for Example:

the data in the excel file appears this way:

Z V Z00001 Pricing Brackets 010 00 Z000 price bracket 1st 000 000 000 000 000 price bracket 1st

all in the single column(A).

How can i put the tab limited data into different columns of excel file?

2 REPLIES 2
Read only

Former Member
0 Likes
522

HI

Please refer the below link,

it may help you.

http://an-abaper.blogspot.com/2009/07/download-tab-delimited-file-using.html

Thanks,

K.Tharani.

Read only

Former Member
0 Likes
521

Hi,

Is ur internal table having single column with total length of the fields including the delimiter.

If dat is the case system GUI_DOWNLOAD will take the data in single column of the XLS.

Pls let me now the structure of ur internal table.

Anil