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: 

commas

Former Member
0 Kudos
133

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

Former Member
0 Kudos
108

hi,

U can use SEPARATED BY ','.

former_member188827
Active Contributor
0 Kudos
108

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

plz reward points if it helps...

Former Member
0 Kudos
108

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...

Former Member
0 Kudos
108

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

former_member197281
Active Participant
0 Kudos
108

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.

former_member196280
Active Contributor
0 Kudos
108

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

Former Member
0 Kudos
108

set the datatype to P

regards

Giridhar

Former Member
0 Kudos
108

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

reward if useful.

Former Member
0 Kudos
108

Hi ,

use this format.

write:/ BSEGA-WRSHB CURRENCY BSID-WAERS,

where BSEGA-WRSHB is ur respective field for currency.

Hope this helps.

Regards,

SapnaA.

Former Member
0 Kudos
108

Go TCODE SU01

Enter your User Name

Click on Change

Go to Defaults Tab and change the Decimal Notation