‎2008 Oct 24 3:03 PM
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
‎2008 Oct 24 3:08 PM
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.
‎2008 Oct 24 3:05 PM
<< Incorrect Answer, use Eric's reply below >>
Edited by: MxG on Oct 24, 2008 10:09 AM
‎2008 Oct 24 3:08 PM
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.
‎2008 Oct 24 3:09 PM
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//