2007 Jul 17 5:43 AM
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
2007 Jul 17 6:04 AM
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
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
2007 Jul 17 6:04 AM
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
2007 Jul 17 7:51 AM
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
2007 Jul 17 8:30 AM
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
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |