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

hexadecimal data type field in unicode system

Former Member
0 Likes
1,492

Hi all,

I am doing unicode conversion for a program. I checked Unicode conversion active option in Attributes of my report and checked for compatibility in UCCHECK tcode. There is one field used in this report of data type X. So in UCCHECK , system shows only fields of type C,N,D,T should be used in unicode system. Please suggest which data type I can usein alternate to this hexadecimal type. What is the exact use of Hexadecimal data type fields in ABAP?

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,256

Jaya,

use CL_ABAP_CONV_IN_CE=>UCCP( '002C' ).

check this link for more details..http://help.sap.com/saphelp_nw04/helpdata/en/79/c554d9b3dc11d5993800508b6b8b11/frameset.htm

you will get more information on hexa decimal related.

Thanks and regards.

8 REPLIES 8
Read only

Former Member
0 Likes
1,256

Hello,

What does the hexadecimal value hold? Post how it is declared or check if any of CL_ABAP_CHAR_UTILLITIES methods will help.

Vikranth

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,256

Read first some documentation like [Character String Processing|http://help.sap.com/saphelp_nw2004s/helpdata/en/79/c554d9b3dc11d5993800508b6b8b11/frameset.htm], usually hexadecimal fields contain control characters (line feed, carriage return, tabulations and the like), so use constants of class [CL_ABAP_CHAR_UTILITIES|http://help.sap.com/abapdocu_70/en/ABENCL_ABAP_CHAR_UTILITIES.htm].

Regards,

Raymond

Read only

0 Likes
1,256

Hi ,

I got some idea now. In my program they gave code like this.

data : D_UDF_XCHAR TYPE X.

IF D_UDF_XCHAR EQ '09' OR D_UDF_XCHAR EQ '2C'.

...................

ENDIF.

I found the value of 09 as CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB

but I didn't get any attribute with value 2C.Could you suggest please.

Thanksfor reply.

Read only

0 Likes
1,256

Deleted

Edited by: Vikranth.Reddy on Dec 29, 2009 8:02 PM

Read only

0 Likes
1,256

'2C' is "ASCII comma" character in most western countries (...) look at thread

Regards,

Raymond

Read only

0 Likes
1,256

That's right. [http://msdn.microsoft.com/en-us/library/60ecse8t(VS.80).aspx] this site cheated me though i dint notice the correction at the bottom

Read only

Former Member
0 Likes
1,257

Jaya,

use CL_ABAP_CONV_IN_CE=>UCCP( '002C' ).

check this link for more details..http://help.sap.com/saphelp_nw04/helpdata/en/79/c554d9b3dc11d5993800508b6b8b11/frameset.htm

you will get more information on hexa decimal related.

Thanks and regards.

Read only

Former Member
0 Likes
1,256

I faced similar issue regarding the unicode conversion during the upgrade. The program had X data type defined and after upgrade it was giving dump. I changed that type to data type C and it worked. You can try check this out.

Saurabh.