cancel
Showing results for 
Search instead for 
Did you mean: 

selection screen error meassage

Former Member
0 Kudos

Hi ,

I have 1 seletion screen for a query .

in that scletion screen i have 1 veariable shoung the period from 00 to 18.

but i want user must select only 1 to 18 not 0.

so when he selects 0 it should give a error message .

Jimmy

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Jimmy,

You can do this using user exit.

Here is the sample code:

data : loc_var_range like rrrangeexit.

If I_step = 3.

Loop at I_T_RANGE INTO LOC_VAR_RANGE WHREE VNAM = 'FISCPER' .

IF LOC_VAR_RANGE-LOW LE 1 OR

LOC_VAR_RANGE-HIGH GT 18.

CALL FUNCTION 'RRMS_MESSGE_HANDLING'

eXPORTING

I_CLASS =

I_TYPE =

I_NUMBER =

I_MSGV1 = 'ENTER vALUE BETWEEN BE IN 1 TO 18 ONLY'.

ENDIF.

ENDLOOP.

ENDIF.

If user enters other than 1 to 18 message will be raised.

Give your mail id.. i will send you nice how to... doc.

Hope it Helps

Srini