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 while posting FI document through BAPI - Multiple Exchange Rates

Former Member
0 Likes
3,066

I am able to post FI document with multiple exchange rates for the same currency using FB01. But, when I try to post the same document details using BAPI_ACC_DOCUMENT_POST , it throws an error F5 701 - Inconsistent Rate for Currency XXX .

How can we avoid this error while posting through BAPI ?

Thanks & Regards,

Nidhi

4 REPLIES 4
Read only

Former Member
0 Likes
1,291

Hi Nidhi,

Value range

The field CURR_TYPE (currency type) describes the role played by a

currency in the SAP System.

The currency type can take on the following values, for example:

o 00 Transaction currency

o 10 Company code currency

o 20 Controlling area currency

o 30 Group currency

o 40 Hard currency

o 50 Index-based currency

o 60 Global company currency

If an entry is not made in the field CURR_TYPE, the default value "00"

is retained.

If only one data record is transferred in transaction currency for each

line item, the field CURR_TYPE does not need to be filled out. If

several data records are transferred for each line item, the currency

type must be entered for each record.

If the parameter CurrencyAmount is filled with the currency fields,

a complete document check including characteristics and value

components of profitability analysis (CO-PA). Otherwise, the account

assignment objects are checked.

Check the BAPI documentation SE37.

Regards,

Boobalan Suburaj

Read only

0 Likes
1,291

Hi Boobalan,

Thanks for your reply.

I tried using different currency types through BAPI, but it gives another error regarding Inconsistent Currrency Information.

How is the Currency Type related to the F5 701 Multiple exchange Rate error ?? This is not clear to me...

Scenario in Detail -

While posting FI document , Header Currency - EUR (say) , Company Code - ABC (say).

Now at item level , I specify amounts both in Header Currency i.e. EUR and Local Currency - USD ( say) i.e

Debit Entry : 100 EUR --- 50 USD (say) -> Exchange Rate Deviation 68% say

Credit Entry: 100 EUR --- 130 USD (say) --> Exchange Rate Deviation 17% say

I think, Since there are two exchange rates involved in above transaction for the same currency EUR , I am getting this error.

Even if i specify curr type , how is it going to take care of these multiple exchange rates ??

Regards,

Nidhi

Read only

0 Likes
1,291

Hello Nidhi,

Before calling BAPI, you should call FM SET_FACI_GM_FLAGS and passa value to parameter MULTI_EXG_RATE in order to allow multiple exchange rates in the document.

Hope it helps.

BRs,

RDM

Read only

0 Likes
1,291

Hi Nidhi,

For this purpose I used the IDoc Acc_document03. And there what I used to do is,

For first line item I will give

1 00 USD 1000

2 10 EUR 740

Again for second line item

1 00 USD -1000

2 10 EUR -740

If you specify the amonu and currency like this the issue of exchange rate will not come.