Currency differncs in hard crcy updated incorrectly

Symptom
Currency differences in hard currency or index-based currency are not updated correctly in the Controlling document.
The following posting example serves to clarify the problem:
Financial Accounting document
Document crcy (00) Local currency (10) Hard currency (40) 0 USD 193 MXP 26 USD
Controlling document
Trans.currency (00) CO area currency (10) Object currency (70) 0 USD 193 MXP 0 USD
The Financial Accounting document contains the currency key USD for document currency (null value) and hard currency (currency type 40).
In the Controlling document, you want to update the object currency (currency type 70) in USD. When you transfer the object currency from the Financial Accounting document, the null value is transferred in transaction currency, not the value in hard currency.
If the value for USD was available in group currency (currency type 30), it would be updated correctly in CO since processing of the group currency has priority over processing of the document currency.
Additional key words
CO interface, exchange rate difference, AC_DOCUMENT_CVTYP_GET, priority rule
Cause and prerequisites
When you transfer currencies from the Financial Accounting document, only the transfer of currency types 10 (local currency) and 30 (group currency) has priority over that of the transaction currency if the currency key is the same. Currency types 40 (hard currency) and 50 (index-based currency) are not taken into account.
Solution
Implement the attached program changes in function module AC_DOCUMENT_CVTYP_GET. Once you have implemented the correction, processing of the hard currency (currency type 40) has priority over that of the transaction currency if the currency key is the same. If you want the correction to apply to the index-based currency (currency type 50) as well, you have to adjust the correction accordingly.
Source code corrections

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Leave a Comment