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

Transfering file to application server in binary mode

HussainKarnati
Discoverer
0 Likes
634

Hi Experts,

I am transferring the data to application server in binary mode. I am getting the data which is delimited by # character by character as mentioned below.

#1#0#0#0#2#B# # # #2#0#0#9#

But it should come as ....... #100#02#B#2009

Can anyone tell me what would be the issue here?

Thanks.

3 REPLIES 3
Read only

venkat_o
Active Contributor
0 Likes
545

Hello Reddy, <li>Please provide some code where that binary data is being generated. Thanks venkat.O

Read only

0 Likes
545

Thanks for your reply venkat.

Actually that code is there in the standard program RKETREXT which is used to export data from summarization level to File.

In that standard program, the code is written as mentioned below.

open dataset filename for output in binary mode.

call function 'RKD_TR_LEVEL_READ'

exporting

applclass = applclass

subclass = subclass

tabname = tabname

trcatnr = trcatnr

s_form_name = 'GET_DATA'

s_program_name = repid

read_dirty = ' '

importing

timestmp = timestmp

tables

selection_table = seltab.

they hv written the 'transfer' code in the dynamic form 'GET_DATA' which is there in the export parameter

form get_data

tables ce0_tab

using exit_flag like ceddb-flag.

loop at ce0_tab.

transfer ce0_tab to filename.

add 1 to count.

endloop.

endform.

Thanks.

Read only

apachon
Participant
0 Likes
545

Hello.

The file generated in binary with which tool can be viewed. I have not been able to open it correctly either with notepad++ or with excel.

Thanks.