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

Problem with Exchange rate upload using BAPI_EXCHANGERATE_CREATE

kishorepallapothula
Participant
0 Likes
1,826

Dear Abaper,

I have a problem using BAPI_EXCHANGERATE_CREATE in my program.

I have a currency pair USD to VND (vietnam) which is 1 : 21025.

Bapi is not allowing the value more than four degits.

it will allow only 4 digits and 5 decimals eg : 9999.99999. How can i pass this value to the bapi. My functional consultant created a ratio 1 USD : 100 VND so i am doing 21025/100 and passing the value 210.25 to the BAPI, But bapi internally calculating again and its posting (210.25/100) = 2.1025 which is wrong.

Please halp me how to resolve the issue. <removed by moderator>

Thanks

Kishore P

Edited by: Thomas Zloch on Jan 18, 2012

3 REPLIES 3
Read only

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Likes
1,190

I never used that BAPI yet, but its documentation describes a similar scenario for parameter EXCH_RATE... did you try to follow that?

They are talking about a relationship of 1 unit_A = 12173.8 unit_B, but it looks like this should cover the case you're describing.

Read only

0 Likes
1,190

Dear Tamas,

Thanks for your reply.

But still i need to pass the exchange rate 21205 to the BAPI right!!. Then how can i push this to FM ?

Your prompt reply is appreciated...

Thanks

Kishore

Read only

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Likes
1,190

Well, what I meant is this.

You have a scenario where 1 USD is worth 21025 VND.

The BAPI documentation describes the solution when 1 CUR_A is worth 12173.8 CUR_B. That is the same like yours, except the numbers are a bit different.

Following the solution in the BAPI documentation, you should be able to pass the necessary values to the FM... but as I said, I never used it myself, so you'll have to follow that description to see if this indeed will get the result you're after. It should.