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

Problem in downloading binary values from application server

Former Member
0 Likes
382

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?

2 REPLIES 2
Read only

Former Member
0 Likes
352

Hi raj,

Please go thru the below link .... it may useful for u....

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0901cba-f49e-2910-748c-d7ce4c0c...

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.

Read only

Former Member
0 Likes
352

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.