‎2007 Mar 27 6:15 AM
Hi,
I have a parameter input p_window. I need to validate the input . The values entered should be either 1,2,3,4,5,6,7 .
Please sujjest me some ways of doing the validation..
regards
Avi..
‎2007 Mar 27 6:16 AM
Go for at selection-screen on p_window event..
assuming the declaration as..
parameters p_window type i.
<b>at selection-screen on p_window. (** or u can use at selection-screen event also )
if p_window is not between 1 and 7.
error message
endif.</b>
regards,
sai ramesh
‎2007 Mar 27 6:16 AM
Go for at selection-screen on p_window event..
assuming the declaration as..
parameters p_window type i.
<b>at selection-screen on p_window. (** or u can use at selection-screen event also )
if p_window is not between 1 and 7.
error message
endif.</b>
regards,
sai ramesh
‎2007 Mar 27 6:17 AM
Hi,
Declare a Variable of length 7 char
data: p_var(7) type c value '1234567'.
At selection screen on that field : write:
if not <field> cp p_var.
message...
endif.
reward if useful
regards,
Anji
‎2007 Mar 27 6:20 AM
use CO operator or use fm NUMERIC_CHECK.
p_window co '1234567890'.
regards
shiba dutta
‎2007 Mar 27 6:21 AM
at selection-screen on p_window.
if p_window na '1234567'.
message e000(0) with 'invalid'.
endif.
‎2007 Mar 27 6:25 AM
hi ,
try this
at selection-screen on p_window.
if p_window co '1234567'.
else.
error message,
endif.
‎2007 Mar 27 6:41 AM
Avi,
at selection-screen on p_window.
if p_window CO '1234567'.
else.
<error message>
endif.
Regards,
Sujatha.
‎2007 Mar 27 6:44 AM
parameters p_window type i.
at selection-screen on p_window.
if p_window lt 1 and p_window gt 7.
write an error message.
endif.
‎2007 Mar 27 6:48 AM