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: 

How to get the given output format..

Former Member
0 Kudos

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

.

.

Thanks.

3 REPLIES 3

Former Member
0 Kudos

hi,

convert into an integer and print ot..

data : num(10) type c value '1231323' , num1 type i.

write : num.

num1 = num.

write : / num1.

regards

satesh

Former Member
0 Kudos

HI tushar,

1. I don't know whether i understood u r question !

2. FOr writing with COMMA,

if we use simple WRITE,

then it will show just as u want !

regards,

amit m.

hymavathi_oruganti
Active Contributor
0 Kudos

WRITE: /(60) 'Left' LEFT-JUSTIFIED,

/(60) 'Center' CENTERED,

/(60) 'Right' RIGHT-JUSTIFIED.

u can use the above options