on 06-16-2006 6:18 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.