外币小额差异自动调整

来源:互联网 发布:ubuntu 系统虚拟机 编辑:程序博客网 时间:2024/05/17 02:21

前台效果

假设FB70 USD(外币)记帐,1借4贷行分录,由于SAP财务凭证仅允许2位小数,为了防止汇率转换后小数额差异造成借方1与4贷方的本位币RMB总额引起不平,所以系统增加了一个自动调整逻辑。其它F-02,F-04也是一样。
如借方4000USD合RMB 24000元,当修改金额<=24000.05元时,系统自动将5分钱调整到第1个贷方(5个Item的情况下)
这里写图片描述
如果1借2贷的,则最大差异只能是3分钱

系统逻辑

系统是写死的,看程序SAPFF014,如下图,根据Xbseg借贷行数决定最大允许差额,rf05a-anzbz和差异refe比较, rf05a-anzbz= rf05a-anzbz+1表示借贷多少行最大允许差异金额就是多少行,然后将差异自动在第1个分录调整,如此而已!
这里写图片描述

其它文章

http://www.itpub.net/thread-1907661-1-1.html
http://www.cnblogs.com/patricksong/articles/1399206.html

SAP Note

106094 - Dealing with minor differences
Symptom
Rounding differences occur when you post a foreign currency document.How are these distributed?
Other Terms
Rounding, currency translation, distribution of rounding differences
Reason and Prerequisites
When you enter a document in a foreign currency, the amount in the local currency is calculated for each line item.If the document is simulated or posted, the system checks for a zero balance.Due to rounding, a balance can be created in the local currency, that is, the total of the line items in the local currency deviates slightly from the total amount of the document in the local currency.

How is this rounding difference distributed?
The logic is different.
1. In a pure financial accounting document, this rounding difference is added to the first non-automatically generated item with the corresponding debit/credit indicator.The same procedure is used for parallel currencies.
2. If you post the document via FI/CO interface, for example an SD billing document, then the rounding difference is added to or subtracted from the first non-automatically generated G/L account, material or asset account item depending on the +/- sign in the document. The amount of a vendor line item or customer line item is only changed if special prerequisites are met (the document contains, for example no G/L line item 87283 or only lines with small amounts 160719) because the previous application is supposed to display the same amounts for business partners than the ones that are posted in Financial Accounting.
Solution
Dealing with currency differences in FI was checked within the certification of FI and was declared to be in accordance with the principles of database accounting.
Customers and partners can display the certificate via address
http://service.sap.com/certificates.

0 0