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
521

Hi,

Iam doing module pool programming.

iam working on tabstrips.

in first tab i have a key field,

my client doesnt want any spaces in between the words in that field.

like KIrthi jupelli.

we have to get error messge.

please help.

bye

kirthi

1 ACCEPTED SOLUTION
Read only

former_member196299
Active Contributor
0 Likes
502

hey Kirthi,

While doing validations check for that field if it contains any ' ' in the string ...

then if the result is non zero then display a error message ..

Regards,

Ranjita

3 REPLIES 3
Read only

former_member196299
Active Contributor
0 Likes
503

hey Kirthi,

While doing validations check for that field if it contains any ' ' in the string ...

then if the result is non zero then display a error message ..

Regards,

Ranjita

Read only

Former Member
0 Likes
502

Hi

You would have to check the contents of the field like checking for a space in the field like checking with ca (contains any) na (not any) . This can solve ur problem

Regards

Dinesh

Read only

former_member491305
Active Contributor
0 Likes
502

Hi,

Do like this...

Process After Input.

FIELD w_char MODULE char ON INPUT.

MODULE char INPUT.

DATA: slen TYPE i.

slen = STRLEN( w_char ).

slen -


> to identify the actual string length of the entered name in the i/o field

IF w_char+0(slen) CA ' '.

MESSAGE 'errororr' TYPE 'E'.

ENDIF.

ENDMODULE. " char INPUT