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

hi

Former Member
0 Likes
577

is there any function module available to validate only numeric values to be entered.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
557

Friend,

use the FM NUMERIC_CHECK

5 REPLIES 5
Read only

Former Member
0 Likes
558

Friend,

use the FM NUMERIC_CHECK

Read only

Former Member
0 Likes
557

Function Module NUMERIC_CHECK for Editing and checking numeric fields ( i.e. Num validations)

Regards.

Read only

Former Member
0 Likes
557

Hi,

Check using the Function Module "NUMERIC_CHECK".

CALL FUNCTION 'NUMERIC_CHECK'

EXPORTING

STRING_IN = X

IMPORTING

STRING_OUT = X

HTYPE = H_TYPE.

if h_type = 'CHAR'.

WRITE:/ 'Not Numeric'.

else.

write:/ 'Numeric'.

ENDIF.

Thanks,

Sakthi C

*Rewards if useful*

Read only

0 Likes
557

CALL FUNCTION 'NUMERIC_CHECK'

EXPORTING

STRING_IN = X

IMPORTING

STRING_OUT = X

HTYPE = H_TYPE.

WHAT IS X AND H_TYPE..?

Read only

0 Likes
557

H_TYPE is the data-type....

it will have the value of 'NUMC' or 'CHAR'...

data: h_type type dd03l-data.

CALL FUNCTION 'NUMERIC_CHECK'

EXPORTING

STRING_IN = X

IMPORTING

STRING_OUT = X

HTYPE = H_TYPE.