Application Development and Automation 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: 
Read only

GUI_DOWNLOAD

Former Member
0 Likes
355

Hi,

I'm using GUI_DOWNLOAD with parameter FILETYPE = BIN and I use the carriage_return with class cl_abap_char_utilities=>cr_lf, the file downloaded on the presentation server is in the format:

0 0 0 1 0 0 9 1 1 9 P E R R I G I A N C A R L O

Only charachter separeted with space. WHY????

The table Statement that transfer to FM is:

data: begin of send_table occurs 1000,

line(1022) type c,

end of send_table.

Thanks

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
332

Try this way


loop at send_table.
 concatenate send_table-line space into send_table-line 
    separated by cl_abap_char_utilities=>cr_lf.
 modify send_table.
endloop.

 CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
      filename              = p_file
      filetype              = 'BIN'
" commend this line
"*     write_field_separator = cl_abap_char_utilities=>cr_lf 
    TABLES
      data_tab              = send_table.

1 REPLY 1
Read only

former_member194669
Active Contributor
0 Likes
333

Try this way


loop at send_table.
 concatenate send_table-line space into send_table-line 
    separated by cl_abap_char_utilities=>cr_lf.
 modify send_table.
endloop.

 CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
      filename              = p_file
      filetype              = 'BIN'
" commend this line
"*     write_field_separator = cl_abap_char_utilities=>cr_lf 
    TABLES
      data_tab              = send_table.