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

Input field format

Former Member
0 Likes
659

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

1 ACCEPTED SOLUTION
Read only

Arun_Prabhu_K
Active Contributor
0 Likes
618

Hello Ghadeer Zahaiqa.

     There is no way to accept only letters.

     As others above suggested, you need to write an explicit check.

Regards.

3 REPLIES 3
Read only

VenkatRamesh_V
Active Contributor
0 Likes
618

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

Read only

Former Member
0 Likes
618

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
           .

Read only

Arun_Prabhu_K
Active Contributor
0 Likes
619

Hello Ghadeer Zahaiqa.

     There is no way to accept only letters.

     As others above suggested, you need to write an explicit check.

Regards.