‎2006 May 23 1:08 PM
I want to round the number.
Eg: 222.467 I declard the variable type C.
I want like this 222.47
Is there any FM for this.
‎2006 May 23 1:11 PM
Hi,
You can declare the variable type P decimals 2.
Pls reward if useful.
Regards,
Aswin
‎2006 May 23 1:09 PM
‎2006 May 23 1:09 PM
‎2006 May 23 1:13 PM
‎2006 May 23 1:11 PM
Hi,
You can declare the variable type P decimals 2.
Pls reward if useful.
Regards,
Aswin
‎2006 May 23 1:16 PM
MOve this value to a variable of type p decimals 2.
data: v_dec type p decimals 2.
v_dec = v_char.
‎2006 May 23 1:17 PM
Hi,
Try to use FM 'HR_IN_ROUND_AMT'.
If it works fine then no problem if not then you need to declare one field TYPE P DECIMALS 2 and move your amount field to this field.
Cheers,
Bujji
‎2006 May 23 1:25 PM
‎2006 May 23 1:30 PM
Hi Priya,
The FM 'HR_IN_ROUND_AMT' will work perfectly..
There you can specify in ROUND_OFF parameter( if I remember correctly) the amount of rounding off.
Just specify your requirement and it will give u the desired result.
<b>YOu can assign points by clicking on the suitable radiobutton on the left </b>...
Regards,
SP.
‎2006 May 23 1:38 PM
HI PRIYA,
YOU CANNOT USE ROUND FOR CHARACTER TYPE FIELD.
DATA: VAR1 TYPE P DECIMALS 2,
RES TYPE P DECIMALS 2.
VAR1 = '12.33'.
RES = ROUND( VAR1 ).
WRITE RES.
Cheers,
Abdul
‎2006 May 23 1:51 PM
HR_NZ_ROUNDING_DECIMALS
HR_IN_ROUND_AMT
REWARD POINT IF IT HELPS
GUNJAN