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

Converting raw to char

Former Member
0 Likes
4,507

Hi SDN,

I have to convert raw to char.

data : lv_raw(16) type RAW.

data : lv_char(16) type c.

lv_raw = some value.

i want to convert this value in lv_raw to lv_char in character format.

please let me know.

i tried the FM BANK_API_PP_UT_CHAR16_TO_RAW16 but no use.

Regards,

Rahul Wagh

Hi SDN,

I have to convert raw to char.

data : lv_raw(16) type RAW.

data : lv_char(16) type c.

lv_raw = some value.

i want to convert this value in lv_raw to lv_char in character format.

please let me know.

i tried the FM BANK_API_PP_UT_CHAR16_TO_RAW16 but no use.

Regards,

Rahul Wagh

8 REPLIES 8
Read only

Former Member
0 Likes
2,195

Hi,

Check with this FM RSAB_CONVERT_RAW_TO_CHAR

Vikranth

Read only

0 Likes
2,195

hi vikranth,

it asks for REQUESTID what to put for that.

Regards,

Rahul

Read only

0 Likes
2,195

Hello Rahul,

Check this FM RRXWS_RAW_TO_CHAR.

It wont ask for any request id. Just the RAW data as the import paramter

Vikranth

Read only

0 Likes
2,195

HI Vikranth,

i tried that FM also but it is not giving me correct value.

my hex value = 16D7A4FCA7442DDA3AD93C9A726597E4

the character value for this should come as = test1234

but FM given by u gives me junk values.

is there any other way for this

Regards,

Rahul

Read only

0 Likes
2,195

hi,

I tried below FMs also but no use.

RS_SCRP_FIELDS_RAW_TO_CHAR

RS_SCRP_HEADER_RAW_TO_CHAR

RSAB_CONVERT_RAW_TO_CHAR

RRXWS_RAW_TO_CHAR

Is there any other way to solve this.

Regards,

Rahul

Read only

0 Likes
2,195

what a hell is that encoding (code page) ? 😄

I think your hexa value is completely wrong, it does not correspond to "test1234".

Read only

sravya_ch
Participant
0 Likes
2,195

Hi Rahul Wagh

Covert it RAW into Packed and then to move it Char .It will be done

Sravya

Read only

Former Member
0 Likes
2,195

Hi Sravya,

Thanks for the reply.

can please elaborate.

i didn't get your solution.

Regards,

Rahul