Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

GUI_DOWNLOAD PROBLEM

Former Member
0 Kudos
63

hI,

By using the GUI_UPLOAD i have converted the word docuement into BIN format and i have saved in cluster table.But while download by using the binary data by using GUI_DOWNLOAD file is created with empty.i have used follwing code could you please check let me know how to convert binary data into word docuemnt.

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

BIN_FILESIZE = 1000

FILENAME = FILE1

FILETYPE = 'BIN'

TABLES

DATA_TAB = IT_TAB

Thanks and regards,

shyla

1 REPLY 1

former_member156446
Active Contributor
0 Kudos
26

call function 'GUI_DOWNLOAD'
exporting
filename = vl_path
filetype = 'ASC' / BIN "<<<<<<<<<<<<<
tables
data_tab = p_gt_output
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
others = 22.

if sy-subrc <> 0.

message e007(zv) with 'Error in Downloading File'(007).

endif.