‎2007 Nov 28 10:31 AM
Hi guys,
I have declared a parameter which takes the no. of years as input.
i.e i have declared it as
PARAMETERS : P_YEAR TYPE BKPF-GJAHR.
My requirement is that the user should be allowed a value from range 1 to 5 only.
How do i do this?
Thanks and regards,
Frank
‎2007 Nov 28 10:33 AM
at selection-screen on p_year.
if p_year lt 1 or p_year gt 5.
message e000 with 'Please enter value btwn 1 and 5'.
endif.
‎2007 Nov 28 10:34 AM
‎2007 Nov 28 10:35 AM
HI
write a code under
at selection-screen on filed .
IF P_YEAR > 5
MESSAGE E000 with text-001.
then error message like not a valid number plz enter 1-5 only
endif
reward if usefull
‎2007 Nov 28 10:37 AM
Hi,
Do like this
parameters : p_year(1) type c.
at selection-screen on p_year .
if p_year GT 5.
message
endif.
Regardfs,
Prashant
Message was edited by:
Prashant Patil
‎2007 Nov 28 11:33 AM
Dear Frank,
Why not use Select Options instead of Parameters.
Also what do u mean by range?
Does range from 1 to 5 means a period of 5 years?In that case u will have to use select options