‎2008 Mar 28 5:59 AM
I Have a file a file on Application in which few fileds are Binary.
I am loading the contents of this file into a custom table and these binary fileds are to be stored as 'Char'
When I download this file, the spaces in these Binary fields are converted to '#'.
Anyway to solve this problem to get the appropriate entry?
‎2008 Mar 28 9:21 AM
Hi raj,
Please go thru the below link .... it may useful for u....
You can only download file to Application Server while the program is running in Background, downloading to Presentation server you can say cannot be done or is not supported.
Downloading to Appliction can be done by Open Data set and then loop at your internal table and write the file to the Application Server location.
Download to Presenation Server: After the file is loaded into Application Server it can be downloaded to Presentation Server by using Transaction CG3Y.
All the very best....
Regards,
Sreenivasa sarma K.
‎2008 Mar 28 9:29 AM
Hi,
Do like this.
syntax:
Open dataset <filename>
for input in binary mode.
Do.
read dataset <filename> into itab.
"itab can be work area.
if sy-subrc = 0.
append itab.
else.
exit.
endif.
enddo.
close dataset <filename>.
Reward.