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

How to validate if the input data is numeric?

gopalkrishna_baliga
Participant
0 Likes
1,372

Hi Experts,

How to validate if a input data is numeric? Is there any function module?

The value can be non decimal as well as decimal like 12.23 and must be positive and greater than 0.

Thanks

Gopal

Hi Experts,

How to validate if a input data is numeric? Is there any function module?

The value can be non decimal as well as decimal like 12.23 and must be positive and greater than 0.

Thanks

Gopal

7 REPLIES 7
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,246

must be positive and greater than 0

Till date i thought all positives numbers are greater than zero Anyways yours is a basic question & has been answered many times in the forum ...

Read only

Former Member
0 Likes
1,246

Hi Gopa,

You can make use of FM NUMERIC_CHECK.

REgards,

Pravin

Read only

0 Likes
1,246

NUMERIC_CHECK does not validate decimal values.

Edited by: gopalkrishna baliga on Apr 23, 2010 6:38 AM

Read only

Former Member
0 Likes
1,246

Hi,

where you want to validate the field? because if you declare

it in selection-screen it will automatically deal with it. It will not

let you enter decimals or alphabets.

Regards and Best wishes.

Read only

0 Likes
1,246

I am validating the data in ABAP proxy code. XI sends the data to ABAP Proxy. The field is defined as CHAR type and I can't change this type.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,246

>

> The field is defined as CHAR type and I can't change this type.

Heard about string operator C ontains O nly (CO) ? SAP Help link: [http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm]

Read only

ThomasZloch
Active Contributor
0 Likes
1,246

Indeed very basic question, please search for answers before posting redundant questions.

Thread locked.

Thomas