2006 Jun 15 1:44 PM
Hi gurus,
Can anyone provide the replacement for hexadecimal value '1F' in a Unicode system? Is there any table available?
Regards,
Lijo Joseph
2006 Jun 15 1:51 PM
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
2006 Jun 15 1:50 PM
Hi Lijo,
See this Link:
http://www.loc.gov/ead/practices/technical/unicode.html
Thanks & Regards,
Joseph.
2006 Jun 15 1:51 PM
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
2006 Jun 15 1:54 PM
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
2006 Jun 15 2:04 PM
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
2006 Jun 15 1:55 PM
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.
2006 Jun 15 2:08 PM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |