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

Binary to ascii format

Former Member
0 Likes
1,718

Hi all ,

we have two requirments

1. Need to find a FM to convert the binary data that is being read into ASCII format ;

2. Need to write the file to application server and read it from there

Current status u2013 The data from the file is being read but it is filled in an internal table in binary format. This data has to be converted to ASCII format in order to process it further.

Problem we are facing are u2013

Approach 1 :How to convert the data to readable format?

Approach 2 : How to place the file in the application server?

any pointers are appreciated.

3 REPLIES 3
Read only

Former Member
0 Likes
843

Hi,

For converting the binary to ascii, try the function module SRET_BINARY_TO_TEXT. Pass the binary data stream to XBUFFER and the language in the LAISO parameters respectively.

For transfering data to application server, refer to F1 help for OPEN DATASET statement.

regards,

Advait

Read only

Former Member
0 Likes
843

Try searching SE37 with ASCII.

Rob

Read only

former_member156446
Active Contributor
0 Likes
843
How to place the file in the application server?

we use open dataset statement to write file to app server.. or tr: CG3Y or CG3Z

in open dataset you have the option to choose the file format. check the help of open dataset you will find you answer.