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

Need help in Conversion

Former Member
0 Likes
784

Hi all,

I need help in converting the raw string to the char. Below i mentioned the data types.

In table<b> crmd_order_index</b> there is a field <b>GUID of data type CRMT_OBJECT_GUID and domain SYSUUID which is RAW 16.</b>

<b>and in the another table a thr is a field SYSUUID of data type char 70.</b>

When i execute the code

<b>SELECT roleid

FROM SRRELROLES

INTO gs_roleid

WHERE objkey = gs_guid

AND objtype = ‘BUS2010020’.</b>

it is throwin an error sayin dat

<b>" GS_GUID and OBJKEY is not mutually convertible in a unicode program.... "</b>

Please Reply me ASAP

Thanks,

Shiva shekar k

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
598

Hi

Try FM <b>SCMS_BINARY_TO_STRING</b>

Refer this thread

Also, check this class CL_ABAP_CHAR_UTILITIES

Refer:

Regards

Raj

Message was edited by:

Rajasekhar Dinavahi

Hi all,

I need help in converting the raw string to the char. Below i mentioned the data types.

In table<b> crmd_order_index</b> there is a field <b>GUID of data type CRMT_OBJECT_GUID and domain SYSUUID which is RAW 16.</b>

<b>and in the another table a thr is a field SYSUUID of data type char 70.</b>

When i execute the code

<b>SELECT roleid

FROM SRRELROLES

INTO gs_roleid

WHERE objkey = gs_guid

AND objtype = ‘BUS2010020’.</b>

it is throwin an error sayin dat

<b>" GS_GUID and OBJKEY is not mutually convertible in a unicode program.... "</b>

Please Reply me ASAP

Thanks,

Shiva shekar k

2 REPLIES 2
Read only

Former Member
0 Likes
598

hi,

please go through the code.

tables SRRELROLES.

data : gs_roleid type SRRELROLES-roleid.

data : gs_guid type SRRELROLES-objkey.

data : obj_type type SRRELROLES-OBJTYPE.

obj_type = 'BUS4498'.

gs_guid = '0000000300002'.

SELECT single roleid

FROM SRRELROLES

INTO gs_roleid WHERE objkey = gs_guid and OBJTYPE = obj_type.

this is working fine with the details u have given.

reward points if helpful.

null

Read only

Former Member
0 Likes
599

Hi

Try FM <b>SCMS_BINARY_TO_STRING</b>

Refer this thread

Also, check this class CL_ABAP_CHAR_UTILITIES

Refer:

Regards

Raj

Message was edited by:

Rajasekhar Dinavahi