‎2009 Oct 19 9:58 AM
Hi All,
I have a requirement where we should print the numbers with comma,
i.e. if the number is 10235.33 then it should print as 10,235.33.
Is there any function module to have this format ?
Thank you very much.
‎2009 Oct 19 3:16 PM
First convert the value to character format.
Use FM 'CEVA_CONVERT_FLOAT_TO_CHAR'
You can check the numericla format used by the user in table USR01
If its decimal format then
replace v_comma with v_decimal into v_char_value
Hope its useful...
Regards
KK
‎2009 Oct 19 10:07 AM
Hi,
If you declare the variable as type p, it will automatically place the commas.
data: var type p decimals 2 value '10235.33 '.
write: var.
Vikranth
‎2009 Oct 19 3:16 PM
First convert the value to character format.
Use FM 'CEVA_CONVERT_FLOAT_TO_CHAR'
You can check the numericla format used by the user in table USR01
If its decimal format then
replace v_comma with v_decimal into v_char_value
Hope its useful...
Regards
KK