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 conversion

mohan_subramania
Explorer
0 Likes
390

Hai experts please help for this issue.

i want to print feet and inches output like 2 ' 10" for this in non unicode i am using the following code

CONSTANTS: c_feet TYPE msehi VALUE 'FT',
             c_inches TYPE msehi VALUE 'IN'.

* Create a display UOM for XXX'XX" output.
  DATA: l_hex(4) TYPE x VALUE '27',
        l_ft_sym(1),
        l_in_sym(1).
  FIELD-SYMBOLS: <l_fs>.
  ASSIGN l_hex TO <l_fs> TYPE 'C'.
  l_ft_sym = <l_fs>.
  WRITE c_inches TO l_in_sym.

in that above code l_ft_sym gives ' symbol

and l_in_sym gives " symbol

but after unicode conversion of the system it gives instead of ' symbol it gives some carbage

value .so need code for getting ' symbol in unicode system.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
347

Hi,

you could try this coding:


* write ' four times in a row => outputs '
write '''' to l_ft_sym. 

Afterwards, l_ft_sym should contain the ' character.

Kind Regards

Thomas Langen

1 REPLY 1
Read only

Former Member
0 Likes
348

Hi,

you could try this coding:


* write ' four times in a row => outputs '
write '''' to l_ft_sym. 

Afterwards, l_ft_sym should contain the ' character.

Kind Regards

Thomas Langen