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

Exchange rate problem

former_member216914
Participant
0 Likes
2,976

Dear Experts,

I have develop one report for tax (BSET) but the problem is when I translating the value to another currency with time with exchange rate in BKPF, the value is not same as translating in FB03 (Display Currency: Group Currency). Please help.

Exchange rate : 3.24897

My report :

FB03 :

My code :

WA_HWBAS-MYCURR = WA_HWBAS-HWBAS * GS_BKPF-KURS2.

Regards,

Feisal

1 ACCEPTED SOLUTION
Read only

DominikKraemer
Active Participant
0 Likes
2,733

Why not use the FM CONVERT_TO_FOREIGN_CURRENCY?

12 REPLIES 12
Read only

paul_bakker2
Active Contributor
0 Likes
2,733

Hi,

It's a rounding issue. The exchange rate used in FB03 apparently uses many more decimal places.

cheers

Paul

Read only

0 Likes
2,733

Hi Paul,

Thank for reply. Do you know where can get exchange rate same as FB03.

Regards,

Feisal

Read only

0 Likes
2,733

Not offhand.. I would just debug FB03 to find out where it comes from.

good luck

Paul

Read only

0 Likes
2,733

Hi,

Already do debugging from the beginning before post in forum. Too complicated.

Read only

Former Member
0 Likes
2,733

Use the same roundoff for your exchange rate field(BKPF-KURS2) as in FB03 transaction.

Read only

0 Likes
2,733

Hi,

How to expand exchange rate (BKPF-KURS2)?

Read only

0 Likes
2,733

Hi,

Assign BKPF-KURS2 to a variable which has the length specification which you need ( create a date element with the same specification with the modification in the length as you expected) and use a new variable.


Read only

0 Likes
2,733

Its will be add more zero at behind.

Read only

DominikKraemer
Active Participant
0 Likes
2,734

Why not use the FM CONVERT_TO_FOREIGN_CURRENCY?

Read only

0 Likes
2,733

Hi Dominik,

I cannot use this function module because the exchange rate base on posting date.

Read only

0 Likes
2,733

Hi Ahmad,

not sure why this should be an issue? In CONVERT_TO_FOREIGN_CURRENCY you can do the conversion for any date you need -> Importing Parameter DATE

Regards,

Dominik

Read only

Former Member
0 Likes
2,733

It depends upon the type of rate being used. In case of indirect currency calculation, you may get the values like that.