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

selection screens

Former Member
0 Likes
474

Hi,

I have a matnr field on my selection screen .Now reqirement is ,When ever i give the input it should take only the float values.It should not take other then float value.Can any body provide the logic for this query?

4 REPLIES 4
Read only

abdul_hakim
Active Contributor
0 Likes
451

hi ashok,

welcome to sdn.

matnr is a character type field and itz not a type f field.

May i know wat do you meant by float here.give an example..

Cheers,

Abdul

Mark all useful answers

Read only

rahulkavuri
Active Contributor
0 Likes
451

For this u need to use take that field into a string ang then use offset to calculate the number of characters after decimal(.)... this will solve the problem

Read only

Former Member
0 Likes
451

HI

GOOD

YOU SHOULD HAVE SOME CODE OF YOUR REPORT.

ANYWAY IF YOU ARE MATNR THAN ITS A CHARACTER VALUE ,SO WHATEVER VALUE YOU WILL ACCEPT IN THE SELECTION SCREEN IT WILL TAKE IT AS A CHARACTER VALUE AND SOMETIME TI WILL TAKE THE VALUE WITH COMMA.

EX -444,55

BUT IT WONT TAKE THE VALUE AS A FLOAT.

SO CHECK WITH YOUR SELECTION SCREEN WHEATHER YOU R TAKING ANY DEFAULT VALUE OR THE SELECT STATEMENT CONDITION TYPE.

THANKS

MRUTYUN

Read only

Former Member
0 Likes
451

Hi Ashok,

You can declare the select-option for a field which is of type f.

or you can use the FM NUMERIC_CHECK.

Regards,

Ravi