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

SELECT-OPTIONS

Former Member
0 Likes
578

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

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
555

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.

6 REPLIES 6
Read only

Former Member
0 Likes
555

after select option....

check it by using if condtion and through a message....

Reward IF.........

Regards

Anbu

Read only

Former Member
0 Likes
555

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

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
556

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.

Read only

Former Member
0 Likes
555

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

Read only

Former Member
0 Likes
555

Reward Points..

Read only

Former Member
0 Likes
555

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