2010 Nov 01 10:39 AM
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
2010 Nov 01 11:10 AM
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
2010 Nov 03 12:11 PM
Hi!
Try this:
DATA: hash TYPE raw255,
aux TYPE string.
"hash contains A5346132320322(...)20302D3F2E4E4861
aux = hash.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |