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

RANGES

Former Member
0 Likes
723

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
694

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.

7 REPLIES 7
Read only

Former Member
0 Likes
694

Similar to providing multiple lines in Select-options..

Read only

naimesh_patel
Active Contributor
0 Likes
694

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

Read only

0 Likes
694

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

Read only

0 Likes
694

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?

Read only

MusAbaper
Active Participant
0 Likes
694

Hi,

It's considered like an internal table, so you will have a lot of line in your ranges.

Best regards

Mustapha

Read only

Former Member
0 Likes
694

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

Read only

Former Member
0 Likes
695

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.