Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How can i get a file header using this method cl_gui_frontend_services=>gui

Hi Experts,

How can i get a file header using this method cl_gui_frontend_services=>gui_download

Thanks

Basu

Former Member
Former Member replied

Hi Kari,

For having the header in the internal table, all the fields must have type C. So, just fill the fields with the header text and insert at index 1.

CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
      filename = <Your file name>
      filetype = 'TXT'
CHANGING
     data_tab = i_data
EXCEPTIONS
     file_write_error = 1
     no_batch = 2

Regards,

Swapna.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question