‎2006 Jan 21 5:03 AM
Hi,
While doing a technical upgrade to ECC 6, i have some problems.
In this program a there is a structure 'trans' which is declared as follows
data: begin of trans occurs 0,
x type x value '00',
c_00 type c value ' ',
soh type x value '01',
c_01 type c value ' ',
stx type x value '02',
c_02 type c value ' ',
etx type x value '03',
c_03 type c value ' ',
eot type x value '04',
c_04 type c value ' ',
enq type x value '05',
c_05 type c value ' ',
ack type x value '06',
c_06 type c value ' ',
bel type x value '07',
c_07 type c value ' ',
bs type x value '08',
c_08 type c value ' ',
ht type x value '09',
c_09 type c value ' ',
lf type x value '0A',
c_0a type c value ' ',
vt type x value '0B',
c_0b type c value ' ',
ff type x value '0C',
c_0c type c value ' ',
cr type x value '0D',
c_0d type c value ' ',
so type x value '0E',
c_0e type c value ' ',
si type x value '0F',
c_0f type c value ' ',
dle type x value '10',
c_10 type c value ' ',
dc1 type x value '11',
c_11 type c value ' ',
dc2 type x value '12',
c_12 type c value ' ',
dc3 type x value '13',
c_13 type c value ' ',
dc4 type x value '14',
c_14 type c value ' ',
nak type x value '15',
c_15 type c value ' ',
syn type x value '16',
c_16 type c value ' ',
etb type x value '17',
c_17 type c value ' ',
can type x value '18',
c_18 type c value ' ',
em type x value '19',
c_19 type c value ' ',
sub type x value '1A',
c_1a type c value ' ',
esc type x value '1B',
c_1b type c value ' ',
fs type x value '1C',
c_1c type c value ' ',
gs type x value '1D',
c_1d type c value ' ',
rs type x value '1E',
c_1e type c value ' ',
us type x value '1F',
c_1f type c value ' ',
end of trans.
Now in order to make it unicode compatible we have to replace all the declarations involving 'type x'
into respective character equivalents. This is usually done using the class 'cl_abap_char_utilities'
But this can be used only for a few attributes like horizontal_tab, vertical_tab,linefeed,form feed
etc. apart from these things the structure also has many declarations which are not maintained in the
above mentioned class.
For example
type x value '1D' group separator
Type x value '1E' record separator
Type x value '1F' unit separator
Type x value '11' etc are not maintained in the attributes of the class.
Can anyone suggest how to proceed in this case.
thanks,
Shobana
Message was edited by: Shobna
‎2006 Jan 21 8:26 PM
DATA tabucc TYPE c.
tabucc = cl_abap_conv_in_ce=>uccp( '0009' ).
best reagards Jack
‎2006 Jan 21 8:26 PM
DATA tabucc TYPE c.
tabucc = cl_abap_conv_in_ce=>uccp( '0009' ).
best reagards Jack
‎2006 Jan 23 6:47 AM
thanks Jack. This works. I would like to award u points but i don t see the buttons to the left ! any idea?