Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Formatting issue

Former Member
0 Likes
337

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
302

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

2 REPLIES 2
Read only

Former Member
0 Likes
302

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

Read only

Former Member
0 Likes
303

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