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

Replacement for Underscore - Hexadecimal '1F' in Unicode System

Former Member
0 Likes
1,218

Hi gurus,

Can anyone provide the replacement for hexadecimal value '1F' in a Unicode system? Is there any table available?

Regards,

Lijo Joseph

1 ACCEPTED SOLUTION
Read only

Peter_Inotai
Active Contributor
0 Likes
1,087

Hi Lijo,

For special characters for unicode you can use attributes of class CL_ABAP_CHAR_UTILITIES. However there is nothing for underscore, so I guess underscore can be used in any codepage.

Regards,

Peter

Hi gurus,

Can anyone provide the replacement for hexadecimal value '1F' in a Unicode system? Is there any table available?

Regards,

Lijo Joseph

6 REPLIES 6
Read only

Former Member
0 Likes
1,087

Hi Lijo,

See this Link:

http://www.loc.gov/ead/practices/technical/unicode.html

Thanks & Regards,

Joseph.

Read only

Peter_Inotai
Active Contributor
0 Likes
1,088

Hi Lijo,

For special characters for unicode you can use attributes of class CL_ABAP_CHAR_UTILITIES. However there is nothing for underscore, so I guess underscore can be used in any codepage.

Regards,

Peter

Read only

0 Likes
1,087

Peter,

I have checked in the mentioned class. but didnt find anything. So you mean that we can use Undescore directly as a character itself?

Regards,

Lijo Joseph

Read only

0 Likes
1,087

Check include LSCMS_APIF01 in form extract_data there is a constant defined:

 x1f        type x value '1F',

and it's used for statement:

*     check if character must be escaped
      if xstrlen( l_x ) > 1 or l_x(1) < x1f or l_x(1) > x7f or l_c ca unsafe.

Peter

Read only

Former Member
0 Likes
1,087

Lijo,

<b>1F</b> is nothing but a unit seperator in Hexa decimal. I believe you are using this in excel file. If so you can use ','(comma) instead of that and make the outputfile extention as .csv.

So ',' will work as a unit seperator in .csv file which you can open as excel or txt.

Let me know if you have any questions.

rgds,

TM.

Read only

Former Member
0 Likes
1,087

Hai

Check the following Statements

data v_var1 type x value '1F'.

data v_len(5) type n.

constants:

c_ecc6_tab(1) type c value cl_abap_char_utilities=>horizontal_tab.

constants:

c1(3) type c value 333.

data: begin of itab occurs 0,

line(20) type c,

end of itab.

data: begin of itab1 occurs 0,

line1(20) type c,

line2(20) type c,

line3(20) type c,

end of itab1.

concatenate c1 c_ecc6_tab c1 c_ecc6_tab c1 c_ecc6_tab c1

into itab-line.

concatenate c1 v_var1 c1

into itab-line.

open dataset c1 for input in text mode encoding default.

describe field c1 length v_len in character mode.

do 5 times.

append itab.

enddo.

data xtab1 like itab1.

data v_newvar like itab1-line1.

do 10 times.

itab1-line1 = 'abc'.

itab1-line2 = 'def'.

itab1-line3 = 'ghi'.

append itab1.

clear itab1.

enddo.

v_tabix = sy-tabix.

Thanks & regards

Sreenivasulu P