‎2008 Jan 21 11:02 AM
‎2008 Jan 21 11:06 AM
There is a ABAP statement ROUND.
Check this link for details and examples.
http://help.sap.com/erp2005_ehp_03/helpdata/EN/9f/db9e3d35c111d1829f0000e829fbfe/frameset.htm
‎2008 Jan 21 11:06 AM
There is a ABAP statement ROUND.
Check this link for details and examples.
http://help.sap.com/erp2005_ehp_03/helpdata/EN/9f/db9e3d35c111d1829f0000e829fbfe/frameset.htm
‎2008 Jan 21 11:06 AM
Hi,
I think ceil and floor statement are used for rounding.
Thanks,
Sriram POnna,
‎2008 Jan 21 11:11 AM
Hi,,
yes u can use the FM ROUND
Rounding to spec. no. of dec. place (round up, round down, comm. round
Functionality
This function module rounds the value INPUT to ANDEC decimal places. The parameter SIGN determines whether rounding is down ('-'), up ('+') or commercial ('X').
If SIGN = SPACE, there is no rounding (OUTPUT = INPUT).
Example
The value VALUE is to be rounded up to the nearest hundred.
DATA: VALUE TYPE F,
ROUND_VALUE TYPE F.
...
CALL FUNCTION 'ROUND'
EXPORTING
DECIMALS = 2-
INPUT = VALUE
SIGN = '+'
IMPORTING
OUTPUT = ROUND_VALUE
EXCEPTIONS
INPUT_INVALD = 01
OVERFLOW = 02
TYPE_INVALID = 03.
Note
The result of floating point rounding calculations can be incorrect in certain cases because of rounding errors.
If INPUT is a field of type P, internal calculatons similarly use packed numbers. This is expensive, but more accurate. If the calculation accuracy is very important, INPUT should thus be a field of type P.
plzz reward if it is usefull....
plzz dont forget to reward...