When you say “a certain spreadsheet that you built.”
What do you mean? Is it a strait vanilla spreadsheet or is it one that you have configured a certain way?
You can download a normal file using method cl_gui_frontend_services=>gui_download.
CALL METHOD cl_gui_frontend_services=>gui_download
filename = file_name
filetype = ‘DAT’
append = p_append ” ‘X’= append; ‘ ‘= overwrite
dat_mode = ‘X’
data_tab = <tb>
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4.