‎2008 Nov 13 2:12 PM
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.
‎2008 Nov 13 2:27 PM
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
‎2008 Nov 13 2:28 PM
‎2008 Nov 13 2:29 PM
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.