02-10-2006 6:14 AM
hi
i am having one select option ,in which user can enter range as well as multiple selection.
while validating this select option should get validate by 200000-4500000.
will u guys pls tell me the solution.
02-10-2006 6:27 AM
select-options s_range for.....
at selection-screen.
loop at s_range.
if s_range-low < 2000000 or s_range-high > 450000000.
message 'Error' type 'E'.
endif.
endloop.
This should work.
Thanks & Reagrds,
Ankur
Message was edited by: Ankur Jain
02-10-2006 6:25 AM
02-10-2006 6:27 AM
select-options s_range for.....
at selection-screen.
loop at s_range.
if s_range-low < 2000000 or s_range-high > 450000000.
message 'Error' type 'E'.
endif.
endloop.
This should work.
Thanks & Reagrds,
Ankur
Message was edited by: Ankur Jain
02-10-2006 6:29 AM
Hi,
you need to populate the range table.
ranges: sel for vbak-vbeln.
sel-low = '200000'.
sel-option = 'BT'.
sel-sign = 'I'.
sel-high = '500000'.
append sel.
select vbeln
from vbak
into table it_vbak
where vbeln in sel.
regards
vijay