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 error for type x value '0A'

Former Member
0 Likes
1,450

Hi whats the replacement of the above code in unicode environment? can I use type string instead?

thanks !

Chika

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
985

Hello,

0A is the hex-representation for Line Feed.

0A -> cl_abap_char_utilities=>newline.

The UC replacement will be:

DATA: v_lf TYPE char1.

  v_lf = cl_abap_char_utilities=>newline.

BR,

Suhas

Edited by: Suhas Saha on Jan 20, 2010 3:30 PM

4 REPLIES 4
Read only

faisalatsap
Active Contributor
0 Likes
985

Hi,

Please, can you be more clear with your Question..

Regards,

Faisal

Read only

Former Member
0 Likes
985

Hi Chika,

declare this class: CLASS CL_ABAP_CONV_IN_CE DEFINITION LOAD.

then use : CL_ABAP_CONV_IN_CE=>UCCP( '000A' ).

check this link for more information 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

kesavadas_thekkillath
Active Contributor
0 Likes
985

Check this.

CONSTANTS: lv_hex(2) TYPE x VALUE '0A'.

DATA: lv_out TYPE Char01.

CALL METHOD CL_ABAP_CONV_IN_CE=>UCCP

EXPORTING

UCCP = lv_hex

RECEIVING

CHAR = lv_out .

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
986

Hello,

0A is the hex-representation for Line Feed.

0A -> cl_abap_char_utilities=>newline.

The UC replacement will be:

DATA: v_lf TYPE char1.

  v_lf = cl_abap_char_utilities=>newline.

BR,

Suhas

Edited by: Suhas Saha on Jan 20, 2010 3:30 PM