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

Former Member
0 Likes
533

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
Read only

uwe_schieferstein
Active Contributor
0 Likes
486

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...

Read only

Former Member
0 Likes
486

Ranges is an obsolete command.

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

Read only

madan_ullasa
Contributor
0 Likes
486

Hi,

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

Madan...