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

commas

Former Member
0 Likes
1,065

hi,

I would like to have commas in between a number eg( 123,67,99) .could any one help how to acheive this.

thanks,

10 REPLIES 10
Read only

Former Member
0 Likes
1,040

hi,

U can use SEPARATED BY ','.

Read only

former_member188827
Active Contributor
0 Likes
1,040

is dis a currency field...if yes move this value to a currency type varaible...

plz reward points if it helps...

Read only

Former Member
0 Likes
1,040

hi if ur number is like amount then do following..

DATA: A TYPE STRING.

A = your number..

it will automatically converted into ur required format...

points please...

Read only

Former Member
0 Likes
1,040

Hi Dear,

U can use this code. u can replace of ur choice...

data: amount(15) type c value '200,000,000.000'.

while sy-subrc = 0.

replace ',' with space into amount.

endwhile.

condense amount no-gaps.

write:/ amount.

Reward Points..

Bohra

Read only

Former Member
0 Likes
1,040

Hi Anu,

You can use the data type p for attaining this.

data : a type p decimals 2.

a = 2222222.

write /a.

you can check.

Reward points if helpful,

regards,

jinesh.

Read only

former_member196280
Active Contributor
0 Likes
1,040

Try to move this number to type P field..

Example:

Data : num type p decimals 2.

Move <your variable> to num.

automatically, you will see the separator..

Note: character field variable will not display separator...

Close the thread if your question is answered.

Regards,

SaiRam

Read only

Former Member
0 Likes
1,040

set the datatype to P

regards

Giridhar

Read only

Former Member
0 Likes
1,040

Check it with basi consultant. they can do this setting to get comma's between digit if its a currency field.

reward if useful.

Read only

Former Member
0 Likes
1,040

Hi ,

use this format.

write:/ BSEGA-WRSHB CURRENCY BSID-WAERS,

where BSEGA-WRSHB is ur respective field for currency.

Hope this helps.

Regards,

SapnaA.

Read only

Former Member
0 Likes
1,040

Go TCODE SU01

Enter your User Name

Click on Change

Go to Defaults Tab and change the Decimal Notation