Application Development 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: 

Restrict the no. of rows entered in select-options

Former Member
0 Kudos

Dear ABAPers,

I have used CALL FUNCTION 'SELECT_OPTIONS_RESTRICT' to only allow user key in single value. The field is BUKRS(Company Code). Can I restrict the number of company code entered by user in this select-option? Please advise.

Thanks in advance.

Best Regards,

Hikaruno

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Sure, just do a check in the AT SELECTION-SCREEN event.

at selection-screen.

data: lines type i.
describe table s_bukrs lines lines.
if lines > 10.
  message e001(00) with 'More than 10 entries'.
endif.

Regards,

RIch Heilman

1 REPLY 1

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Sure, just do a check in the AT SELECTION-SCREEN event.

at selection-screen.

data: lines type i.
describe table s_bukrs lines lines.
if lines > 10.
  message e001(00) with 'More than 10 entries'.
endif.

Regards,

RIch Heilman