Conversion exit for removing decimal places

Question: Hi all,
Can anyone tell me if there is any conversion exit for removing the decimals places from a field.
E.g. 21.000 becomes 21 as a result of the o/p of the conversion exit FM.
Reason is i want to suppress the decimals places in a CL_GUI_ALV_GRID display of a packed quantity field MENGE.
thanks
-adi

Answer:
menge = trunc( menge ). <-- it returns the integer.. 123,987 returns 123

If you want to round the number (123,987 -> 124)

data: menge1 type p.
menge1 = menge.
menge = menge1.


Regards.
Copyright ?2007 - 2008 www.jt77.com