‎2007 Mar 22 3:57 PM
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
‎2007 Mar 22 4:06 PM
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
‎2007 Mar 22 4:28 PM
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
‎2007 Mar 22 5:38 PM
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
‎2007 Mar 22 6:40 PM
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
‎2007 Mar 22 7:03 PM
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
‎2007 Mar 22 7:07 PM
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