Skip to Content
0
Former Member
Mar 06, 2009 at 10:45 AM

Using fieldnames table in GUI_DOWNLOAD method

1197 Views

Hi Experts,

I need to download an itab data with field names as headers. I am using this but getting error 'Formal parameter "FIELDNAMES" does not exist. However, the parameter "FILENAME" has a similar name'.

CALL METHOD cl_gui_frontend_services=>gui_download

EXPORTING

filename = w_filenm

filetype = c_filetype

write_field_separator = c_x

CHANGING

data_tab = i_bsak[]

fieldnames = i_field[]

EXCEPTIONS

file_write_error = 1

no_batch = 2

gui_refuse_filetransfer = 3

invalid_type = 4

no_authority = 5

unknown_error = 6

header_not_allowed = 7

separator_not_allowed = 8

filesize_not_allowed = 9

header_too_long = 10

dp_error_create = 11

dp_error_send = 12

dp_error_write = 13

unknown_dp_error = 14

access_denied = 15

dp_out_of_memory = 16

disk_full = 17

dp_timeout = 18

file_not_found = 19

dataprovider_exception = 20

control_flush_error = 21

not_supported_by_gui = 22

error_no_gui = 23

OTHERS = 24.

Please let me know how can i get file header using GUI_DOWNLOAD method.

Thanks in adv

Akash