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 for variables that cannot have a range

Former Member
0 Likes
733

Hi all,

There is an option to show only one input-field for a select-options declaration by using the 'no intervals' option. But it is still possible for the user to specify ranges when doing multiple selections (i.e. specify intervals for the variable).

However, if I have a variable that implicitly does not have ranges, (e.g. 'Arjun' TO 'Shankar' makes no sense at all), I want to let the user do multiple selections for it, without allowing him/her to enter ranges for it.

Can I do this in a selection screen in any way (even if it involves not using select-options)? And if yes, how?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
706

Hi,

Using the below FM you can restrict the user to enter only values but not a range.

'SELECT_OPTIONS_RESTRICT'

Reward if helpful.

RSS

Hi all,

There is an option to show only one input-field for a select-options declaration by using the 'no intervals' option. But it is still possible for the user to specify ranges when doing multiple selections (i.e. specify intervals for the variable).

However, if I have a variable that implicitly does not have ranges, (e.g. 'Arjun' TO 'Shankar' makes no sense at all), I want to let the user do multiple selections for it, without allowing him/her to enter ranges for it.

Can I do this in a selection screen in any way (even if it involves not using select-options)? And if yes, how?

5 REPLIES 5
Read only

Former Member
0 Likes
707

Hi,

Using the below FM you can restrict the user to enter only values but not a range.

'SELECT_OPTIONS_RESTRICT'

Reward if helpful.

RSS

Read only

0 Likes
706

And yes, this works perfectly for me, RSS.

Thank you!

Read only

Sm1tje
Active Contributor
0 Likes
706

Use this:

SELECT-OPTIONS xxxx FOR yyyy NO INTERVALS

NO-EXTENSION.

Read only

Sm1tje
Active Contributor
0 Likes
706

Use this:

SELECT-OPTIONS xxxx FOR yyyy NO INTERVALS

NO-EXTENSION.

Read only

Former Member
0 Likes
706

If I use NO EXTENSION, it will simply disable multiple selections. Which is something I need.

Thanks anyways!