‎2008 Jun 10 4:11 PM
What happens if we append more than one record to the RANGES ???
Is it useful in any ways??????
*****************example************
RANGES : matnr FOR mara-matnr.
INITIALIZATION.
matnr-LOW = 10.
matnr-HIGH = 20.
matnr-OPTION = 'BT'.
matnr-SIGN = 'I'.
APPEND age.
matnr-LOW = 145.
matnr-HIGH = 2023.
matnr-OPTION = 'BT'.
matnr-SIGN = 'I'.
APPEND age.
matnr-LOW = 87.
matnr-HIGH = 207.
matnr-OPTION = 'BT'.
matnr-SIGN = 'I'.
APPEND age.
matnr-LOW = 19.
matnr-HIGH = 204576.
matnr-OPTION = 'BT'.
matnr-SIGN = 'I'.
APPEND age.
good points will be rewarded
‎2008 Jun 10 4:27 PM
Yes it´s useful.
the result of the select with this range is the union of different groups in the range.
but you have to put:
RANGES : matnr FOR mara-matnr.
matnr-LOW = 10.
matnr-HIGH = 20.
matnr-OPTION = 'BT'.
matnr-SIGN = 'I'.
APPEND matnr.
*APPEND age.
‎2008 Jun 10 4:15 PM
‎2008 Jun 10 4:15 PM
Definatly, it is helpful.
In your example, whereever you have used that it will give you the records where age falls in between 10 and 20, 145 and 2023, 87 and 207, 19 and 204576... so, basically gets all the data between 10 and 204576.
Regards,
Naimesh Patel
‎2008 Jun 10 4:22 PM
hi gurus..... it is not append age it should be append matnr
sorry for that.
hi gaurav guptha
If this append statements work in similar to select options then,
in select options we see the values in Multiple options window, in ranges we dont have that possibility . So wat is the use of appending more records?
good points will be rewarded
‎2008 Jun 10 4:26 PM
hi patel.........
the values may fall between 10 and 204576
but what happens if I use LT GT NE EQ in the OPTIONS field
correlation may appear there rite?
‎2008 Jun 10 4:17 PM
Hi,
It's considered like an internal table, so you will have a lot of line in your ranges.
Best regards
Mustapha
‎2008 Jun 10 4:20 PM
REPORT Z_VB_TEST1.
RANGES : matnr FOR mara-matnr.
INITIALIZATION.
matnr-LOW = 10.
matnr-HIGH = 20.
matnr-OPTION = 'BT'.
matnr-SIGN = 'I'.
APPEND matnr.
matnr-LOW = 145.
matnr-HIGH = 2023.
matnr-OPTION = 'BT'.
matnr-SIGN = 'I'.
APPEND matnr.
matnr-LOW = 87.
matnr-HIGH = 207.
matnr-OPTION = 'BT'.
matnr-SIGN = 'I'.
APPEND matnr.
matnr-LOW = 19.
matnr-HIGH = 204576.
matnr-OPTION = 'BT'.
matnr-SIGN = 'I'.
APPEND matnr.
write: matnr.
O/P is
IBT 19 204576
ie. last record.
About usefullness, I am really not very sure
Reward points if useful
Thanks & Regards
vinsee
‎2008 Jun 10 4:27 PM
Yes it´s useful.
the result of the select with this range is the union of different groups in the range.
but you have to put:
RANGES : matnr FOR mara-matnr.
matnr-LOW = 10.
matnr-HIGH = 20.
matnr-OPTION = 'BT'.
matnr-SIGN = 'I'.
APPEND matnr.
*APPEND age.