‎2007 Jan 19 9:54 AM
I am not able to validate a field in modulepool. The code is like below.
data : ch1(10) . -- represents a text box
need to validate, all the characters of ch1 must be alphabets (a-z), otherwise it should ask user to re-enter the value.
i am using,
field : ch1 values(between 'a' and 'z' ) .
this works, if the first letter is not alphabet in st1..
i.e if st1 = '2aaaa' . it is asking for re-enter the value,as it should... however
if st1 = 'aa222' it is not asking to re-enter the value. How to correct this?
pl help.
Regards,
Hardik
‎2007 Jan 19 9:56 AM
if ch1 ca sy-abcde.
message ....
endif.
But y not have the field defined as numc.
‎2007 Jan 19 9:58 AM
martin,
sy-abcde doesn't work in module (SE51), and the the requirement is the text box cannot hold a numeric value.
regards,
hardik
‎2007 Jan 19 10:01 AM
what do u mean sy-abcde doesn't work in module.
post me the code that you are using as the check . Also how r u triggering the module.
‎2007 Jan 19 10:05 AM
the code is as below..
process after input .
field : ch1 values(between 'a' and 'z' ) .
module xyz_0100 .
‎2007 Jan 19 10:15 AM
‎2007 Jan 19 10:18 AM
why not just call a single module for the field and code the check yourself using sy-abcde.