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

Unicode values like OD

Former Member
0 Likes
1,441

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
832

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.

Check this links:

http://www.sapdevelopment.co.uk/upgrade/uccheck_errors.htm

Regards

Adil

4 REPLIES 4
Read only

former_member282823
Active Participant
0 Likes
832

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.

Read only

Former Member
0 Likes
832

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.

Read only

Former Member
0 Likes
833

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.

Check this links:

http://www.sapdevelopment.co.uk/upgrade/uccheck_errors.htm

Regards

Adil

Read only

Former Member
0 Likes
832

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