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: 

GUI_DOWNLOAD

Former Member
0 Kudos

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

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member194669
Active Contributor
0 Kudos

Hi,

or

Call fm SAP_CONVERT_TO_CSV_FORMAT before calling GUI_DOWNLOAD

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Tom,

Try this code....


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