Skip to Content
0
Former Member
Jul 21, 2008 at 06:49 AM

To create Heading line in an excel sheet

150 Views

To create Heading line in an excel sheet, the parameter "fieldnames " works fine if the internal table is created like :

DATA : BEGIN OF itab OCCURS 0,

field_name(20),

END OF itab.

but we are restricted to use internal tables without header line, we have to use external work area... Is the anyother way to pass the contents for ' filednames' parameter of TABLES type?

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

filename = l_path

filetype = 'ASC'

append = 'X'

write_field_separator = 'X'

  • HEADER = ' '

write_lf = 'X'

dat_mode = 'X'

confirm_overwrite = 'X'

TABLES

data_tab = i_output

fieldnames = itab