2007 Nov 07 10:29 AM
How can i limit the user to input only 10 entries in select option
How can i limit the user to input only 10 entries in select option
2007 Nov 07 10:32 AM
if the select option is a numeric filed u can just find the diff between hig value n low value n display an error if it is greater than 10.
2007 Nov 07 10:33 AM
Hello,
U can do like this.
Tables: Mara.
select-options: s_matnr for mara-matnr.
at selection-screen on s_matnr.
data: lv_lines type i.
describe table s_matnr lines lv_lines.
If lv_lines gt 10.
error message " Only ten lines are allowed.
endif.If useful reward.
Vasanth
2007 Nov 07 9:50 PM
Hi,
there is a fm called SELECT_OPTIONS_RESTRICT
just in case have a look at the following link:
http://sap4.com/wiki/index.php?title=SELECT_OPTIONS_RESTRICT
Hope it helps.
Best regards.