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: 

comma

Former Member
0 Kudos

Hi

i loof for Fm that insert comma

for eaxmple

1000000 will be --> 1,000,000

thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi yossi,

1. If u want value with comma,

in some variable,

then just use WRITE.

2. like this.

3. write number into myvariable.

(this will output the number

into the character variable myvarabile,

with comma formatting)

regards,

amit m.

5 REPLIES 5

Former Member
0 Kudos

Hi yossi,

1. If u want value with comma,

in some variable,

then just use WRITE.

2. like this.

3. write number into myvariable.

(this will output the number

into the character variable myvarabile,

with comma formatting)

regards,

amit m.

0 Kudos
data:ur_var(7) value '1000000'.
data: var(7) type p.
 var = ur_var.

 write: var.

Former Member
0 Kudos

U can surely use different variations in WRITE statement to do the necessary.

like

WRITE lnum USING EDIT MASK 'RR_,___,___'.

or

WRITE lnum CURRENCY 'INR' DECIMALS 0.

regards

Anurag

Former Member
0 Kudos

use,

WRITE TO With EDIT MASK.

Regards

srikanth.

Former Member
0 Kudos

try this....

REPORT YCHATEST.


DATA : CHAR(15) VALUE '1000000',
        NUM TYPE P DECIMALS 0.


NUM = CHAR.

WRITE : NUM.