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

Former Member
0 Likes
818

I only have four fields in itab. What params do I set in the FM so that each field is inits own colomn spreadsheet?

Thank-You.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
692

Set the WRITE_FIELD_SEPARATOR (in ECC6, I think it is different in other versions) to 'X'.

5 REPLIES 5
Read only

Former Member
0 Likes
693

Set the WRITE_FIELD_SEPARATOR (in ECC6, I think it is different in other versions) to 'X'.

Read only

Former Member
0 Likes
692

Just call this FM as below

CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
 FILENAME = 'C:test.xls'
 FILETYPE = 'ASC'
 WRITE_FIELD_SEPARATOR = 'X'
TABLES
 DATA_TAB = itab.

Regards,

Satish

Read only

former_member194669
Active Contributor
0 Likes
692

Hi,

or

Call fm SAP_CONVERT_TO_CSV_FORMAT before calling GUI_DOWNLOAD

a®

Read only

Former Member
0 Likes
692

Hi Tom,

To download to excel you can use like this.


CALL FUNCTION 'GUI_DOWNLOAD'
  EXPORTING
    filename                        = 'c:tst.xls'
   FILETYPE                        = 'DAT'
  tables
    data_tab                        = i_mara.

Note: Please close the other thread ws_download.

Pavan

Read only

Former Member
0 Likes
692

Hi Tom,

Try this code....


CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
 FILENAME = 'C:TEMPTEST.XLS'
 WRITE_FIELD_SEPARATOR = ';'
TABLES
 DATA_TAB = itab.