Application Development and Automation 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: 
Read only

Module Pool

Former Member
0 Likes
647

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

6 REPLIES 6
Read only

Former Member
0 Likes
622

if ch1 ca sy-abcde.

message ....

endif.

But y not have the field defined as numc.

Read only

0 Likes
622

martin,

sy-abcde doesn't work in module (SE51), and the the requirement is the text box cannot hold a numeric value.

regards,

hardik

Read only

0 Likes
622

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.

Read only

0 Likes
622

the code is as below..

process after input .

field : ch1 values(between 'a' and 'z' ) .

module xyz_0100 .

Read only

0 Likes
622

can somebody pl help, its really urgent

Regards,

Hardik

Read only

0 Likes
622

why not just call a single module for the field and code the check yourself using sy-abcde.