‎2006 May 29 12:15 PM
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?
‎2006 May 29 12:18 PM
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
‎2006 May 29 12:19 PM
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
‎2006 May 29 12:27 PM
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
‎2006 May 29 12:35 PM
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