Application Development 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: 

display comma for numeric values

Former Member
0 Kudos

Hi,

I want to display comma for numeric values.I know we can use strlen and concatenate, but any one can give me an example.

Ex: 1,234 and 12,234 , 1,22,500 ( iam expecting)

Thanks,

Veeru

5 REPLIES 5

Former Member
0 Kudos

This will automatically get displayed if u have done with the user settings.

Refer to the CURR field.

0 Kudos

hey iam using taiwan currency , so for recording i have to change that.

so now iam getting

1245

12245

122450.

i want commas for that.

Thanks,

veeru

0 Kudos

Again move that to CURR fields so that u will get it back.

0 Kudos
loop at itab.
 
   write itab-amount to itab-amount currency 'EUR'.

endloop.

Former Member
0 Kudos

it depends on ur data...

if it is currency then u can use

WRITE.... CURRENCY...

if it is qty then u can use

WRITE....UNIT....

or u simply pass it to a packed field and it will take the default decimal settings of the user profile...

Reward points if helpful