02-05-2009 10:29 AM
Hi All,
I am entering one value with in the table.
I should not enter other charcters or numbers or _.IF entered anything else than his it should popup an erro message.
How can i do this can anybody please help me.
Thanks,
02-05-2009 10:43 AM
Hi Tarangini ,
While your appending entries into your table you can very well validate your entries .
1. You have have to enter a single value say 'a' and not '1' . You can validate it like
if w_char ca sy-abcde .
your code .
else
message 'Invalid Entry' type 'E' .
endif .
that is your allowing only aplphabets to be entered else your giving a error message .
Similary you can declare a string say w_string = '0123456789' and can enter validate with numbers too .
Hope it helps!
Much Regards ,
Amuktha .
Edited by: Amuktha Naraparaju on Feb 5, 2009 11:43 AM
02-05-2009 10:43 AM
Hi Tarangini ,
While your appending entries into your table you can very well validate your entries .
1. You have have to enter a single value say 'a' and not '1' . You can validate it like
if w_char ca sy-abcde .
your code .
else
message 'Invalid Entry' type 'E' .
endif .
that is your allowing only aplphabets to be entered else your giving a error message .
Similary you can declare a string say w_string = '0123456789' and can enter validate with numbers too .
Hope it helps!
Much Regards ,
Amuktha .
Edited by: Amuktha Naraparaju on Feb 5, 2009 11:43 AM