‎2007 Aug 29 6:31 AM
Please suggest me a Funcion Module to convert my Price which is in the format
123.4(it is a CURR type ...with LENGTH 11 and DECIMAL PLACES 2) to 123.400
‎2007 Aug 29 6:36 AM
Try this
DATA : p_dec TYPE p DECIMALS 2 VALUE '123.40'.
DATA : p_dec1 TYPE p DECIMALS 3.
MOVE p_dec TO p_dec1.
WRITE : p_dec1.Regards
Gopi
<u>Reward useful answers</u>
‎2007 Aug 29 6:46 AM
with out using a FM u can only do this by declearing that variable to PACKED (P) type and DECIMALS <n>.
<n> upto n decimal as u want.
data var1 type p decimals 3.
Message was edited by:
Kaushik Datta
‎2007 Aug 29 6:49 AM