Got a little problem by using the function 'GUI_DOWNLOAD'. Tried to append a header line at the top of my .txt file i created. My solution is:
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = lv_file
filetype = 'ASC'
write_field_separator = 'X'
TABLES
data_tab = it_outh. "internal table just with the header line
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = lv_file
filetype = 'ASC'
append = 'X'
write_field_separator = 'X'
TABLES
data_tab = it_output. "internal table with selected data
The code works. But the formatting is crap, cause of the different length (header line and data)
Is the only way to fix that problem, using shorter descriptions in it_outh? Or does anyone of you have a better idea for me?
Have a nice day.
Regards, Dennis

