‎2007 Mar 08 11:17 AM
I had uploaded a Binary file Using GUI_UPLOAD , File type was 'BIN'.
but the data i got in Internal Table was in 0's and 1's.
whereas i tried the same thing on a different server but the same Version it gave me the data as text in Internal Table.
what could be reason..or wat could be done to resolve this.
‎2007 Mar 08 11:24 AM
Hi,
May be there is something like File Converter (BIN to TXT) on that server where you got Texts uploaded.
Regards,
Anji
‎2007 Mar 08 11:26 AM
Did you declare the internal table used to upload the binary file as TYPE X ?
begin of itab,
raw(255) type x,
end of itab occurs 0.
CALL FUNCTION 'GUI_UPLOAD'
exporting
filetype = 'BIN'
filename = 'C:DOWNLOAD.BIN'
tables
data_tab = itab.
Always remember to reward snippets you find useful!
‎2007 Mar 08 11:41 AM
‎2007 Mar 08 11:46 AM
file type as 'BIN'
A binary representation of the internal table is read from the file.
No conversion or interpretation is carried out. Usually, this produces
meaningful results only if the internal table consists of a<b> single
column of type 'X'.</b>
‎2007 Mar 08 12:47 PM
try this
DATA:it_upload TYPE STANDARD TABLE OF solisti1 WITH HEADER LINE.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = temp1
filetype = 'BIN'
header_length = 0
read_by_line = 'X'
replacement = '#'
TABLES
data_tab = it_upload.
‎2007 Mar 08 11:57 AM
hi,
Convert Data type to '<b>DAT</b>'.
Reward helpful answers,
Regards,
Tejas