‎2009 Jan 19 12:20 PM
Hello,
I have a binary file (format 0 and 1) and I need to convert it to a text format.
I surch this forum and I tryed some solutions and I didn't have good results.
For example, in the bin file I have '00110001 00110010 00110011' and I should return '123'... but I am not to obtain the expected result.
Can you help me, please.
Best Regards,
Joana Leitner Gaspar
‎2009 Jan 19 12:23 PM
Use FM
SCMS_BINARY_TO_TEXT
SRET_BINARY_TO_TEXT
Hope this helps...
‎2009 Jan 19 12:23 PM
Use FM
SCMS_BINARY_TO_TEXT
SRET_BINARY_TO_TEXT
Hope this helps...
‎2009 Jan 19 12:26 PM
Hi Joana,
try below,
DATA rec TYPE string.
CALL FUNCTION 'SCMS_BINARY_TO_STRING'
EXPORTING
input_length = 32000
FIRST_LINE = 1
LAST_LINE = 28
MIMETYPE = ' '
IMPORTING
text_buffer = rec
OUTPUT_LENGTH =
TABLES
binary_tab = l_pdf
EXCEPTIONS
FAILED = 1
OTHERS = 2
hope this may useful.
Regards!
‎2009 Jan 19 1:08 PM
Hi ,
To convert Binary format to text use the Function Module:
SCMS_BINARY_TO_TEXT
Regards,
Radhika.
‎2009 Jan 19 1:12 PM
‎2009 Jan 19 2:35 PM
Thank you all for your help... But... using your ideas I don't obtain correct values.
Any ideas? I'm going to be crazy with this!!
Best Regards,
Joana
‎2009 Jan 19 2:38 PM
try using cg3y and cg3z tr. use appropriate formats BIN and ASC.