2015 Apr 26 3:59 PM
Dear Experts
Is there way to make input field in screen to accept letters only , cause when i set format to char , it accept char and digits
Regard
Ghadeer
2015 Apr 27 4:15 AM
Hello Ghadeer Zahaiqa.
There is no way to accept only letters.
As others above suggested, you need to write an explicit check.
Regards.
Dear Experts
Is there way to make input field in screen to accept letters only , cause when i set format to char , it accept char and digits
Regard
Ghadeer
2015 Apr 26 6:15 PM
Hi,
Try.
data: var1 type char10 value 'abc123'.
AT SELECTION-SCREEN
IF var1 CA '0123456789'.
\* write your code here.
ENDIF.
Hope it helpful,
Regards,
Ramesh.V
2015 Apr 26 6:27 PM
hi,
you can use this fm NUMERIC_CHECK to find out whether the given number is a number of has any characters other than number.
CALL FUNCTION 'NUMERIC_CHECK'
EXPORTING
STRING_IN = NUM1
IMPORTING
* STRING_OUT =
HTYPE = stype
.
2015 Apr 27 4:15 AM
Hello Ghadeer Zahaiqa.
There is no way to accept only letters.
As others above suggested, you need to write an explicit check.
Regards.
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |