‎2007 Jan 25 1:09 PM
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.
‎2007 Jan 25 1:14 PM
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
‎2007 Jan 25 1:14 PM
Hi
AT SELECTION-SCREEN.
IF NOT <VALUE> IN SEL_OPT.
MESSAGE E208(00) with 'Insert a valid value'.
ENDIF.Max
‎2007 Jan 25 1:15 PM
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.
‎2007 Jan 25 1:15 PM
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.
‎2007 Jan 25 1:16 PM
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.
‎2007 Jan 25 1:17 PM
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