Application Development 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: 

convert binary text to ASCII

Former Member
0 Kudos

Hi all,

can anyone tell me how to convert binary text to ASCII.

what are the classes i need to use.

pls let me know.

thanks & regards,

Shake sha vali

3 REPLIES 3

former_member182426
Active Contributor
0 Kudos

hi,

try this.....

CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB

Regards,

shankar.

former_member182426
Active Contributor
0 Kudos

hi,

u can try this way also.....

DATA: str1 TYPE string,
      str2 TYPE string,
      str3 TYPE string,
      itab TYPE TABLE OF string,
      text TYPE string.

text = `What#a#drag#it#is#getting#old`.

translate text using '#,'.

SPLIT text AT ',' INTO: str1 str2 str3,
                          TABLE itab.

loop at itab into str1.
write:/ str1.
endloop.

Regards,

shankar.

Former Member
0 Kudos

Sorry to OP, but this is not an answer to your question. But i have to post seeing the double reply: you missed the target by 10 light years... twice!