Application Development 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: 

Unicode Conversion

Former Member
0 Kudos

Hi Guys/Dolls,

We're in the process of converting our programs to make them unicode compliant.

I'm having problem with one of them.

When I run UCCHECK on the program I get the following messages:-

"R_SCLAS-LOW" and "HEX00" are mot mutually convertable in a unicode program.

"R_SCLAS-HIGH" and "HEXFF" are mot mutually convertable in a unicode program.

My code snippet is as follows:-

ranges: r_sclas for hrp1001-sclas,
        r_otype for hrp1001-otype.

r_sclas-sign = 'I'.
r_sclas-option = 'BT'.
r_sclas-low = hex00.
r_sclas-high = hexff.
append r_sclas.

Any of you guru's got any ideas on how I can fix this to make it uncode compliant.

I would appreciate it if you could show me new code snippet based on my own code so the changes are easily identifiable.

Many thanks in advance.

Raj

3 REPLIES 3

uwe_schieferstein
Active Contributor
0 Kudos

Hello Raj

If you do not need the range for DB selection then you can replace the range selection as following:


LOOP AT itab INTO ls_record
                     WHERE ( <field> IN r_sclas ).
...
ENDLOOP.

LOOP AT itab INTO ls_record
                     WHERE ( <field> BETWEEN hex00 AND hexff ).
...
ENDLOOP.

Regards

Uwe

PS: Be aware that there is not a single doll in the SDN that will help you...

Former Member
0 Kudos

Ranges is an obsolete command.

What is hex00 & hexff? Are they type compatible with hrp1001-sclas?

madan_ullasa
Contributor
0 Kudos

Hi,

Just make both of that same type with same length.... e.g char(10) and char(10).. it should be fine then...

Madan...