Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

check the condition while entering in table field

tarangini_katta
Active Contributor
0 Kudos

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,

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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