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

Former Member
0 Likes
526

Hello!

I get a error message using if I do the following :

ra_preis and PREIS are not compatibel.

ra_preis must be indepented from the length of

Unicode Code sign and must have the same structure layout

as well as PREIS. What is not OK ?

data PREIS TYPE RSDSSELOPT.

RANGES: ra_preis for ZSC_INFO-PREIS.

ra_preis = PREIS.

How can I workaround of this prbl.

Regards

erdem

1 ACCEPTED SOLUTION
Read only

JozsefSzikszai
Active Contributor
0 Likes
506

problem is in this line:

ra_preis = PREIS.

both are ranges structures, you have to do field by field:

ra_preis-sign = PREIS-sign.

ra_preis-option = PREIS-low.

ra_preis-low = PREIS-low.

ra_preis-high = PREIS-high.

of course you have to APPEND ra_preis as well.

+1 advise:

the up to date definition for the range would be:

DATA : ra_preis TYPE RANGE OF ZSC_INFO-PREIS.

and a header line for this:

DATA : wra_preis LIKE LINE OF ra_preis.

3 REPLIES 3
Read only

Former Member
0 Likes
506

<< Incorrect Answer, use Eric's reply below >>

Edited by: MxG on Oct 24, 2008 10:09 AM

Read only

JozsefSzikszai
Active Contributor
0 Likes
507

problem is in this line:

ra_preis = PREIS.

both are ranges structures, you have to do field by field:

ra_preis-sign = PREIS-sign.

ra_preis-option = PREIS-low.

ra_preis-low = PREIS-low.

ra_preis-high = PREIS-high.

of course you have to APPEND ra_preis as well.

+1 advise:

the up to date definition for the range would be:

DATA : ra_preis TYPE RANGE OF ZSC_INFO-PREIS.

and a header line for this:

DATA : wra_preis LIKE LINE OF ra_preis.

Read only

Former Member
0 Likes
506

Don't use Ranges.

instead use like this

data PREIS TYPE RSDSSELOPT. 
data: ra_preis type range of ZSC_INFO-PREIS. 
"see this will not work.
"since PREIS is structure. and ra_preis is table 
ra_preis = PREIS.  "this is wrong//