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 RAW 255 to String

Former Member
0 Likes
3,898

Hi All,

I have a data in RAW 255 format. I need to convert that RAW string into Character string.

I had tried with few function modules , but notting worked.

String is like this.

A53461323203221413B54471424213322423C55481525223423433D56491626233524443E574A1727243625453F584B18282537264640594C192926382747415A4D1A2A27392848425B4E1B2B283A2949435C4F1C2C293B2A4A445D501D2D2A3C2B4B455E511E2E2B3D2C4C465F521F2F2C3E2D4D47605320302D3F2E4E4861

Thanks in advance.

Regards

Sunil

Hi All,

I have a data in RAW 255 format. I need to convert that RAW string into Character string.

I had tried with few function modules , but notting worked.

String is like this.

A53461323203221413B54471424213322423C55481525223423433D56491626233524443E574A1727243625453F584B18282537264640594C192926382747415A4D1A2A27392848425B4E1B2B283A2949435C4F1C2C293B2A4A445D501D2D2A3C2B4B455E511E2E2B3D2C4C465F521F2F2C3E2D4D47605320302D3F2E4E4861

Thanks in advance.

Regards

Sunil

2 REPLIES 2
Read only

Former Member
0 Likes
1,965

Hi

You can make use of the class "CL_ABAP_CONV_IN_CE" which has a method "CREATE" which will create a Conversion Instance. Then you can call the "READ" method of same class which converts the RAW data to STRING.

Or you can make use of the FM "WSI_RAW_TO_STRING". Call this function module in report program and convert the RAW to STRING. In actual that the FM "WSI_RAW_TO_STRING" also calls the same class "CL_ABAP_CONV_IN_CE" internally.

Hope this help you.

Regards

Vinodh

Read only

Former Member
0 Likes
1,965

Hi!

Try this:


DATA: hash  TYPE raw255,
           aux     TYPE string.

"hash contains A5346132320322(...)20302D3F2E4E4861
 aux = hash.