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

convert binary text to ASCII

Former Member
0 Likes
563

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
Read only

Former Member
0 Likes
512

hi,

try this.....

CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB

Regards,

shankar.

Read only

Former Member
0 Likes
512

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.

Read only

Former Member
0 Likes
512

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!