2007 May 26 12:20 PM
Hi Folks,
I have created field for entering the name of the person.That field should accept only characters i.e from "A to Z". and should not allow any numbers or special charactes.Now pls suggest me how to do this......
2007 May 26 12:21 PM
IF INitab-fld CO
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'.
ENDif.
Regards,
Amit
Reward all helpful replies.
Hi Folks,
I have created field for entering the name of the person.That field should accept only characters i.e from "A to Z". and should not allow any numbers or special charactes.Now pls suggest me how to do this......
2007 May 26 12:21 PM
IF INitab-fld CO
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'.
ENDif.
Regards,
Amit
Reward all helpful replies.
2007 May 26 12:24 PM
data : text(5) value 'A1BC3',
len type i,
pos type i,
v_char.
compute len = strlen( text ).
do len times.
v_char = text+pos(1).
if v_char co sy-abcde.
else.
message 'Give the char value only' type 'E'.
endif.
pos = pos + 1.
endloop.
or
check
if text co sy-abcde.
else.
message 'Give the char value only' type 'E'.
endif.
regards
shiba dutta
2007 May 26 1:15 PM
data : v_data(52) type c.
v_data = sy-abcde.
if urfield co v_data.
else.
message.
endif.
Reward Points if it is useful
Thanks
Seshu
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |