cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

select option for given range

Mahesh1
Explorer
0 Likes
476

Hi all,

I have following select option statement

SELECT-OPTIONSSO_LIFNR FOR BSIK-LIFNR.

the user allowed to enter values only between 1000 and 2000. How this can be done, please suggest.

 

Accepted Solutions (0)

Answers (2)

Answers (2)

RaymondGiuseppi
Active Contributor
0 Likes

I would add a hidden criteria in the where clause of the following select so

 

AND LIFNR IN SO_LIFNR
AND LIFNR BETWEEN '0000001000' AND '0000002000'

 

Else you could check the Select-Option input to check LOW and HIGH values, very basic for values and range list  (I/EQ, I/BT) but how will you handle except and wildcards (e.g. '*11*') NB: You can prevent those case with FM SELECT_OPTIONS_RESTRICT.

 

AT SELECTION-SCREEN ON SO_LIFNR.
  LOOP AT SO_LIFNR.
    " do some check, raise error if you must

 

thomas_mller13
Participant
0 Likes

Instead using the standard data element you can use an own data element with an own domain containing only these values.