Skip to Content
0
Former Member
Sep 25, 2008 at 10:50 AM

header in 'gui_download'

10266 Views

Hi All,

I use 'GUI_DOWNLOAD' to download data from internal table to excel.I am passing the heading in the header field of function module.

call FUNCTION 'GUI_DOWNLOAD'

EXPORTING

FILENAME = lv_file

FILETYPE = 'ASC'

write_field_separator = 'X'

header = lv_header

TABLES

data_tab = t_output.

header is of type XTRING in the function module.

if i declare my variable as type string it shows a runtime dump due to type mismatch.

I am not able to declare it as type xstring.can anyone advice on how to declare a variable as type xstring or any other way to solve my problem.

Thanks & Regards,

Subasree