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

general issue with unicode

Former Member
0 Likes
726

Hi all,

F0(1) type x value 'OD'. -- In NON unicode system it occupies 1 bytes.Ami right?

Iam confused whether we can declare like this in Unicode system or we have to declare using cl_abap_char_utilities.

If we declaring with cl_abap_char_utilities then there would be no declaration with type X in a unicode sytem right?

let me know

thanks

6 REPLIES 6
Read only

suresh_datti
Active Contributor
0 Likes
690

You are correct.. This <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/79/c554d9b3dc11d5993800508b6b8b11/content.htm">SAP Help</a> should clarify any other issues in this context.

~Suresh

Read only

0 Likes
690

Hi all,

can anyone tell me the difference between

CL_ABAP_CHAR_UTILITIES=>MINCHAR.

CL_ABAP_CHAR_UTILITIES=>CR_LF.

CL_ABAP_CHAR_UTILITIES=>horizontal_tab.etc

Thanks

Read only

0 Likes
690

Did you go through the Help link in my previous response? Basically, intead of hardcoding the constants, you are using them from the class CL_ABAP_CHAR_UTILITIES. In pre-unicode days, you would have to declare Type X data & hard code values for the Carriage return,horizontal tab etc.. you can do away with type x data declarations by using constants from this calss. Just remember to laod the definitions with

class CL_ABAP_CHAR_UTILITIES definition load.

before using them.

~Suresh

Read only

0 Likes
690

Hi Suresh,

I ahve gone through the link you provided.

I know cl_abap_char_utilities=>horizontal_tab. can be used for type x value '09'.

i know 09 is for horizontal tab

similarluy can you tell me the rest of the things like

cl_abap_char_utilities=>cr_lf.

'00' --- what is this for

'0D0A'. --- what is this for

how can we know what it is meant for

Thanks

Read only

0 Likes
690

cr_lf & '0D0A' serve the same purpose ie Carriage Return wih line feed ie lines ina file are split with a carriage return

I think 00 is used in color Codes.

~Suresh

Read only

0 Likes
690

Hi Preeti,

(hexadecimal 0A) - \n Line feed

(hexadecimal 0D) - \r Carriage return

(hexadecimal 0C) - \f Form feed

You can find respective attributes from CL_ABAP_CHAR_UTILITIES.

(hexadecimal 0A) - CL_ABAP_CHAR_UTILITIES=>NEWLINE

(hexadecimal 0D) - CL_ABAP_CHAR_UTILITIES=>CR_LF

(hexadecimal 0C) - CL_ABAP_CHAR_UTILITIES=>FORM_FEED

Thanks,

Vinay