Application Development 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: 

download to excel through ESS/MSS

Former Member
0 Kudos
139

Hi All.

I'm using the function GUI_DOWNLOAD to download an internal table to excel, and it works fine when the program is ran from SAPGui, but when ran from the browser (ESS/MSS), the file generated doesn't come with the TAB delimiter, so excel can not open it directly (it opens in a single column).

Any idea on how to fix this?

thanks in advance,

Hermes.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
89

Hi,

Are you passing WRITE_FIELD_SEPARATOR = 'X' when calling the GUI_DOWNLOAD FM..

Thanks,

Naren

3 REPLIES 3

Former Member
0 Kudos
90

Hi,

Are you passing WRITE_FIELD_SEPARATOR = 'X' when calling the GUI_DOWNLOAD FM..

Thanks,

Naren

0 Kudos
89

yes, I am. as I told, it's working fine when ran from Sap gui...

0 Kudos
89

Hi Hermes,

Are u using the tab as delimeter in interal table to seprate the records?

If not use following:

constants: c_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab.

Itab-field1 = 'a'.

Itab-field2 = 'b'.

Itab-field3 = 'b'.

concatenate Itab-field1 Itab-field2 Itab-field3 seprated by c_tab.

Then download the records.

Ashven