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

Limit Select Options entries

Karan_Chopra_
Active Participant
0 Likes
500

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

3 REPLIES 3
Read only

Former Member
0 Likes
467

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.

Read only

Former Member
0 Likes
467

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

Read only

former_member182371
Active Contributor
0 Likes
467

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.