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

Number Format

Former Member
0 Likes
430

Hi

w_rwbtr is a character field.

Suppose the value of w_rwbtr is 1234567

I want to display it in the format

1,234,567.00

I was asked to try the below solution..

declare w_rwbtr1 as type P decimals 2.

move w_rwbtr to w_rwbtr 1.

again write ...

write w_rwbtr 1 to w_rwbtr.

It works but i do not get the comma separators.

It simply writes 1234567.00

but I want the comma separators as well. like

1,234,567.00

1 ACCEPTED SOLUTION
Read only

geetha_k
Active Participant
0 Likes
409

Hi,

u will give the amount data type as CURR

check once this okk.

3 REPLIES 3
Read only

Former Member
0 Likes
409

Hi,

Declare one field to currency type and then try.

Also check the decimal Notation in user settings. ie. goto su01 > enter usename > click on display > deflut tab> check the Decimal Notation...If its not the one you want just change it.

REWARD IF USEFUL

Read only

geetha_k
Active Participant
0 Likes
410

Hi,

u will give the amount data type as CURR

check once this okk.

Read only

Former Member
0 Likes
409

thanks