‎2008 Jun 11 7:30 AM
Hi EXPERTS !
In SELECT-OPTIONS I want to restrict entry in low value between 1 to 100 and in higher value between 100 to 1000
Plz help me how i can do this .
thanks
‎2008 Jun 11 7:36 AM
AT SELECTION-SCREEN ON SO_VAL.
loop at so_val.
if so_val-low > 100.
set cursor field 'SO_VAL-LOW'.
error.
endif.
if so_val-high < 100 and so_val-high > 1000
set cursor field 'SO_VAL-HIGH'.
error.
endif.
endloop.
‎2008 Jun 11 7:34 AM
after select option....
check it by using if condtion and through a message....
Reward IF.........
Regards
Anbu
‎2008 Jun 11 7:36 AM
select-options: s_kunnr for kna1-kunnr.
at selection-screen.
if s_kunnr is not initial.
loop at s_kunnr.
if s_kunnr-low gt 100.
*& error message.
endif.
endloop.
endif.
Regards,
Vamshidhar
‎2008 Jun 11 7:36 AM
AT SELECTION-SCREEN ON SO_VAL.
loop at so_val.
if so_val-low > 100.
set cursor field 'SO_VAL-LOW'.
error.
endif.
if so_val-high < 100 and so_val-high > 1000
set cursor field 'SO_VAL-HIGH'.
error.
endif.
endloop.
‎2008 Jun 11 7:37 AM
select-options s_gjahr for bkpf-gjahr.
at selection-screen on s_gjahr.
loop at s_gjahr.
if s_gjahr-low lt 1 or
s_gjahr-low gt 100.
message e001(38) with 'wrong entry'.
endif.
if s_gjahr-high lt 100 or
s_gjahr-high gt 1000.
message e001(38) with 'wrong entry'.
endif.
endloop.
Please reward points if helpful
‎2008 Jun 11 7:38 AM
‎2008 Jun 11 7:40 AM
Hi ,
Try the following.
Select-options : select type ....
If (select-low > 1 or select-low <100).
-
---
endif.
if (select-high > 100 or select-high <1000).
-
-
endif.
Reward pts if helpfull.
Regards,
Dhan