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

comma

Former Member
0 Likes
753

Hi

i loof for Fm that insert comma

for eaxmple

1000000 will be --> 1,000,000

thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
705

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
Read only

Former Member
0 Likes
706

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.

Read only

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

 write: var.

Read only

Former Member
0 Likes
705

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

Read only

Former Member
0 Likes
705

use,

WRITE TO With EDIT MASK.

Regards

srikanth.

Read only

Former Member
0 Likes
705

try this....

REPORT YCHATEST.


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


NUM = CHAR.

WRITE : NUM.