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

Issue with currecy conversion

Former Member
0 Likes
337

Hi All,

I am displaying cost center in my report.

For example: for am employee his amount is 1,9263

second employee salary is 2,5632

these two employees comes under one cost center so i am adding these two .

i declared these two variables as char type befor adding i am replacing ',' wiht space and i used condense to remove spaces.

when i added above two vales i got the value as 44895. i passed this value to one variable ita type of BSEG-DMBTR.

in debug i sam initially its value is '0.00' so when i write write command as follows.

write : lv_tol to lt_final-ftoamount currency lv_waers.

now its value is : 4,485,00. but actual value is 4,485 anybody can tell me how to do this.

thanks,

maheedhar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
315

4,485,00. but actual value is 4,485 anybody can tell me how to do this.

the amount is 4,485.00 , the last 2 digits are decimal values.

your are getting the value 4,485,00.

please change the user settings.

system-> user profile-> own data--> under default tab the amount shoud be 1,234,567.90 format.

Hi All,

I am displaying cost center in my report.

For example: for am employee his amount is 1,9263

second employee salary is 2,5632

these two employees comes under one cost center so i am adding these two .

i declared these two variables as char type befor adding i am replacing ',' wiht space and i used condense to remove spaces.

when i added above two vales i got the value as 44895. i passed this value to one variable ita type of BSEG-DMBTR.

in debug i sam initially its value is '0.00' so when i write write command as follows.

write : lv_tol to lt_final-ftoamount currency lv_waers.

now its value is : 4,485,00. but actual value is 4,485 anybody can tell me how to do this.

thanks,

maheedhar

1 REPLY 1
Read only

Former Member
0 Likes
316

4,485,00. but actual value is 4,485 anybody can tell me how to do this.

the amount is 4,485.00 , the last 2 digits are decimal values.

your are getting the value 4,485,00.

please change the user settings.

system-> user profile-> own data--> under default tab the amount shoud be 1,234,567.90 format.