Application Development 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: 

Hexadecimal to character conversion.

Former Member
0 Kudos

HI,

I have a scenario like shown below.


DATA: varx        TYPE X,
            varc(10) TYPE C.

varx = '1C'.
varc = varx.

but in the above piece of code, i m getting unicode check errors(UCCHECK tcode) which says varx and varc are not mutually convertible in a unicode program.

Can somebody help me in this regard.

Thank you in advance.

Regards,

Soumya

7 REPLIES 7

Former Member
0 Kudos

Try with this HR_KR_XSTRING_TO_STRING

Former Member
0 Kudos

<copy&paste_removed_by_moderator> This is not the first time, but it is the last... -> Next time I will drag&drop your user ID! Edited by: Julius Bussche on Oct 29, 2009 11:34 AM

0 Kudos

Hi harini,

Please follow the forum rules

Dont copy the post instead refer the thread link.

link:[;

Former Member
0 Kudos

Hi,

Try this FM also.

STPU1_HEX_TO_CHAR

Thanks,

Harini

Edited by: Harini Gopinath on Oct 28, 2009 4:33 PM

kesavadas_thekkillath
Active Contributor
0 Kudos

check Fm's

STPU1_HEX_TO_CHAR

AIN_EPC_HEX_TO_CHAR

link:[http://www.sapfans.com/forums/viewtopic.php?p=403405&sid=e524cddae19e7ae48a12477e68c6032d]

Former Member
0 Kudos

Hi Sowmya,

u can either do like this..

filed-symbol : <char> type c.

loop at t_tab.

assign t_tab-hexdecimal to <char> casting.

now <char> will have converted value of hexa decimal.

endloop.

Former Member
0 Kudos

The solution for the problem is to use MOVE statement.

MOVE hex to char.

Thanks everybody for replies.

Regards,

Soumya