‎2008 Jul 17 5:34 AM
HI,
I facing some problem while iam working on unicode system.
Problem is some hing like this,In my report there is some declaration, type x with values like
09 and 0D.
please help me out.
thanks.
jannat
‎2008 Jul 17 6:24 AM
Hi,
CONSTANTS:
con_cret TYPE x VALUE '0D', "OK for non Unicode
con_tab TYPE x VALUE '09'. "OK for non Unicode
*If you have Unicode check active in program attributes thnen you will
*need to declare constants as follows
CLASS cl_abap_char_utilities DEFINITION LOAD.
CONSTANTS:
con_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab,
con_cret TYPE c VALUE cl_abap_char_utilities=>cr_lf.http://www.sapdevelopment.co.uk/upgrade/uccheck_errors.htm
Regards
Adil
‎2008 Jul 17 5:36 AM
Hi,
Try this one,
Non-Unicode
Data: wa TYPE X VALUE u201809u2019. u201C Tab in Hexa
Unicode
Data: wa TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
Regards,
Ramesh.
‎2008 Jul 17 6:05 AM
Type x value '09' means Horizontal Tab in hexadecimal..it is now replaced by
CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
constants: c_tab type char1 value CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
Type x value '0D' means Carriage Return in hexadecimal..it is now replaced by
CL_ABAP_CHAR_UTILITIES=>CR_LF.
constants: c_return type char2 value CL_ABAP_CHAR_UTILITIES=>CR_LF.
Regards,
Joy.
‎2008 Jul 17 6:24 AM
Hi,
CONSTANTS:
con_cret TYPE x VALUE '0D', "OK for non Unicode
con_tab TYPE x VALUE '09'. "OK for non Unicode
*If you have Unicode check active in program attributes thnen you will
*need to declare constants as follows
CLASS cl_abap_char_utilities DEFINITION LOAD.
CONSTANTS:
con_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab,
con_cret TYPE c VALUE cl_abap_char_utilities=>cr_lf.http://www.sapdevelopment.co.uk/upgrade/uccheck_errors.htm
Regards
Adil
‎2008 Jul 17 6:42 AM
Hi Jannat.
I would like to suggest a reference which is quite similar to your case,
[SDN - Standard Reference - PDF FILE - Requirements of ABAP Program in Unicode systems|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b02d3594-ae48-2a10-83a7-89d369b708e5]
Hope that's usefull.
Good Luck & Regards.
Harsh Dave