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
610

Hi,

Does select options validate input in the selection screen?

that is, If we are giving the high, low values for select options and while executing the program , if we are giving values out of range , then will it intimate us to enter a value within low-high range?

Regards,

Sowmya.

6 REPLIES 6
Read only

Former Member
0 Likes
584

Hi Sowmya,

Select options will not validate the value entered, You have write the code separately in at-selection screen or start-of-selection. you can consider the low value for validation

Read only

Former Member
0 Likes
584

Hi

AT SELECTION-SCREEN.

  IF NOT <VALUE> IN SEL_OPT.
    MESSAGE E208(00) with 'Insert a valid value'.
  ENDIF.

Max

Read only

Former Member
0 Likes
584

Hi

Yes if the higer limit is lesser than the lower limit then it will give the error.

There are some certain SAP validations also which will occur.

But just to be sure you can add all the validations you require in the AT SELECTION-SCREEN event.

Read only

Former Member
0 Likes
584

Hi Sowmya,

The mandatory check that will perform for the select-option is that the low value should always be less than the high value.

The other checking we need to perform at selection-screen event.

In general if we find atleast one valid entry for the select-option then we will proceed with the program execution else give an error.

Regards,

Satya.

Read only

Former Member
0 Likes
584

no no no,

hi somwya,

the high and low fields are beeing filled by you in the selection screen.

when the selection screen pops up, there are no records in you range table against you could validate.

Read only

Former Member
0 Likes
584

Hi Sowmya,

You can validate the input given at selection-screen through AT SELECTION-SCREEN event.

By default, SELECT-OPTIONS doesnt have this capability implicitly.

So, You need to write code under this event and if it is out of range then give a message to them to give valid entries to this range.

Thanks,

Vinay