12-03-2007 6:45 PM
Hi Friends,
why we are sing ranges in org..
what is diffreence between RANGES AND SELECT-OPTIONS..
REGARDS,
12-03-2007 6:49 PM
12-03-2007 8:49 PM
some times during codeing u might get a req where u need to select some set, in such cases u can just build a range there and say XXX in Range R1.
12-03-2007 9:05 PM
SELECT-OPTIONS can be used with the CHECK field IN ... statement. RANGES cannot.
Rob
12-03-2007 9:12 PM
RANGES have to be declared when you want to put IF condition against a group of records.
suppose you wanna say IF a = 3 or a = 5 or a = 7 or a =11
you can do
ranges xxx for XXX
xxx-sign = 'I'
xxx-option = 'EQ'
xxx-low = 3
append xxx
xxx-sign = 'I'
xxx-option = 'EQ'
xxx-low = 5
append xxx
xxx-sign = 'I'
xxx-option = 'EQ'
xxx-low = 7
append xxx
xxx-sign = 'I'
xxx-option = 'EQ'
xxx-low = 11
append xxx
IF a IN xxx.
logic
ENDIF.
12-03-2007 9:13 PM
you would not like to create select options for the above requirement cuz then it will come on the selection screen.