Skip to Content
0
Former Member
Feb 17, 2006 at 04:43 PM

Formatting

20 Views

Hi,

I want to write a code in ABAP in such a way that I should get the output in the right side format.

Ex:

1200 - > 1,200

12000 - > 12,000

120000 -> 120,000

1200000 -> 1,200,000

12000000 -> 12,000,000

120000000 - > 120,000,000

.

.

In more generic way if the value is 'abcdefg' it should be a,bcd,efg . So it counts from behind and puts comma after three places and does this moving foward if there are other digits in the number.

Please help.

Thanks.