就那GL_JE_LINES 上的一行贷方凭证来说,本位币是人民币,记账币种是USD,记账金额1美元,汇率 USD/CNY= 6
在EBS过账后,总账余额表针对一行凭证会生成两条记录,详细如下:

GL_JE_LINES 数据

ENTERED_CR 是原币币种(USD)-借方金额 字段值为1
ACCOUNTED_CR 是本位币币种(CNY)-贷方金额 字段值是 6

GL_BALANCES 数据

重点关注币种字段和当期相关字段

CURRENCY_CODE TRANSLATED_FLAG PERIOD_NET_DR PERIOD_NET_CR PERIOD_NET_DR_BEQ PERIOD_NET_CR_BEQ
CNY 0 6 0 0
USD R 0 1 0 6

可以看出EBS字段设计的精妙来,后面分析当发生重估和折算时,总账余额表相关字段是如何变化的。

参考资料

1 Summary

GL_BALANCES contains actual, budget, and encumbrance balances for detail and summary accounts.

This table stores ledger currency, foreign currency, and statistical balances for each accounting period that has ever been opened.

ACTUAL_FLAG is either ‘A’, ‘B’, or ‘E’ for actual, budget, or encumbrance balances, respectively. If ACTUAL_FLAG is ‘E’, then ENCUMBRANCE_TYPE_ID is required.

2 Balances Calculations

GL_BALANCES stores period activity for an account in the PERIOD_NET_DR and PERIOD_NET_CR columns.

The table stores the period beginning balances in BEGIN_BALANCE_DR and BEGIN_BALANCE_CR.

An account’s year-to-date balance is calculated as BEGIN_BALANCE_DR – BEGIN_BALANCE_CR + PERIOD_NET_DR – PERIOD_NET_CR.

Example

decode(map.account_type,’Asset’,greatest(sum(period1.begin_balance_dr + period1.period_net_dr)-sum(period1.begin_balance_cr + period1.period_net_cr),0),’Liability’,(greatest(sum(period1.begin_balance_dr + period1.period_net_dr)-sum(period1.begin_balance_cr + period1.period_net_cr),0)),q’[Ownership/Stockholder’s Equity]’,(greatest(sum(period1.begin_balance_dr + period1.period_net_dr)-sum(period1.begin_balance_cr + period1.period_net_cr),0)),null) “Ledger Debit Amount”,

decode(map.account_type,’Asset’,greatest(sum(period1.begin_balance_cr + period1.period_net_cr)-sum(period1.begin_balance_dr + period1.period_net_dr),0),’Liability’,(greatest(sum(period1.begin_balance_cr + period1.period_net_cr)-sum(period1.begin_balance_dr + period1.period_net_dr),0)),q’[Ownership/Stockholder’s Equity]’,(greatest(sum(period1.begin_balance_cr + period1.period_net_cr)-sum(period1.begin_balance_dr + period1.period_net_dr),0)),null) “Ledger Credit Amount”,

3 Foreign Currency Transactions or Journals

Detail and summary foreign currency balances that are the result of posted foreign currency journal entries have TRANSLATED_FLAG set to ‘R’, to indicate that the row is a candidate for revaluation.

For foreign currency rows, the begin balance and period net columns contain the foreign currency balance, while the begin balance and period net (_BEQ) columns contain the converted ledger currency balance.

Summary foreign currency balances that are the result of foreign currency translation have TRANSLATED_FLAG set to NULL. All summary account balances have TEMPLATE_ID not NULL.

Example

For US Company whose functional currency is USD, and if transaction (AP Invoice) is entered is in INR. Here entered Dr and Entered Cr are in INR and Accounted Dr and Cr is in USD. (Context is for Liability account)

In GL Balances there will be two rows for this liability account, one for currency INR and other for currency USD.

A row with INR (Foreign Currency) will have TRANSLATED_FLAG set to ‘R’. For foreign currency (INR) rows, the begin balance and period net columns contain the foreign currency balance, while the begin balance and period net (_BEQ) columns contain the converted ledger currency balance (USD).

A row with USD (Functional Currency) will have TRANSLATED_FLAG set to NULL

4 Foreign Currency Translation

Detail foreign currency balances that are the result of foreign currency translation have TRANSLATED_FLAG set to ‘Y’ or ‘N’. ‘N’ indicates that the translation is out of date (i.e., the account needs to be re-translated). ‘Y’ indicates that the translation is current.

Summary foreign currency balances that are the result of foreign currency translation have TRANSLATED_FLAG set to NULL. All summary account balances have TEMPLATE_ID not NULL.

The columns that end in _ADB are not used. Also, the REVALUATION_STATUS column is not used.

oracle-外币记账时总账余额表gl_balance变化(上)相关推荐

  1. 外币记账及重估总账余额表变化(下)

    上一篇记录了外币记账时 gl_balances 的变化,参见: https://blog.csdn.net/x6_9x/article/details/119542591 那么进行重估时,余额表又是怎 ...

  2. 【FI】总账余额表和总账明细表不一致问题

    总账余额表和总账明细表不一致问题 [问题] 查看总分类账科目余额报表"FAGLL03"发现总账科目XXX的借方金额是正确的,但是双击查看行项目明细发现合计金额和外面的借方金额有差异 ...

  3. oracle有几种类型表空间,oracle 数据创建时如何指定表空间类型

    oracle建表时指定了表空间为何没起作用? oracle 12c /windows ,实验过程如下: 1.建第一个表空间data_tbs_01,数可以直接在创建语句后面追加"tablesp ...

  4. 用友软件T3资产负债表往来科目取数和余额表对不上

    T3资产负债表往来科目取数和余额表对不上 [问题现象] T3小企业会计准则2013的资产负债表中的其他科目取数没有问题,但是往来科目取数和余额表的数值对不上 [问题原因] 这是因为小企业会计准则201 ...

  5. oracle账户余额表和明细表,科目余额表与明细账

    (明细与上相同)在建工程 11 小计 明细账科 LI 余额表 年月日 序上期余额本期发生额月末余额科目名称号借方贷方借方贷方借方 贷方二.负债类短期借款 12 XX 银行 XX 银行应付账款 13 X ...

  6. Oracle 11G在用EXP 导出时,空表不能导出解决

    Oracle 11G在用EXP 导出时,空表不能导出解决 11G中有个新特性,当表无数据时,不分配segment,以节省空间 解决方法: 1.insert一行,再rollback就产生segment了 ...

  7. oracle科目余额表的查询,科目余额表查询 · selfaccount-services · 看云

    ## 查询某个月的科目余额表 *访问财务数据库并查询某个月的科目余额表* +++ post:/finicial_getItemBalance *string:acctId#登录者账号id *strin ...

  8. VBA调用U870总账发生额及余额表存储过程

    以下是一个VBA查询总账发生额及余额表的例子,掌握了它,我们就可以在EXCEL上直接得到各账套的发生额及余额表了,但是我对它并不太满意,我想要的效果是直接得到全年各月余额(损益类的为发生额)的表,这样 ...

  9. 笔记: 解决oracle impdp导入dmp时, 用户名和表空间与dmp中的不相同导致无法导入的问题

    解决oracle impdp导入dmp时, 用户名和表空间与dmp中的不相同导致无法导入的问题 impdp导入时, 需要增加两个特殊的参数 remap_schema 更改用户名 remap_schem ...

最新文章

  1. ubuntu mysql的穷_Ubuntu安装配置Mysql
  2. STM32如何从串口接收数据,取出数据中的密码段再保存到flash中。
  3. java面试和笔试大全
  4. Theory Defect in selecting best pruned tree from CCP with Cross-validation
  5. 解决-bash: make: command not found安装提示错误
  6. trackby_使用trackBy启动流程
  7. 修改innodb_flush_log_at_trx_commit参数提升insert性能
  8. Download Android Source Code in Windows
  9. Android 通过触摸动态地在屏幕上画矩形
  10. 了解:shell脚本+脚本优化+脚本注入+正则表达式
  11. 众达两化融合贯标日记06~贯标启动会PPT
  12. python开源bi_开源bi软件排名哪些最为靠谱
  13. 自己动手搭建公司Git服务器
  14. 重磅!首届倍增科学技术研究院高级研究员研讨会胜利召开
  15. C语言输入一个大写字母,输出金字塔打印字母
  16. python中的row函数均方_均方位移python(Mean square displacement python)
  17. 日常报错:关于tomcat默认端口被占用的问题
  18. 高效删除Oracle数据库中重复数据,并保留最新一条的方法
  19. 基于keras的深度学习——分类
  20. 整数拆分的两种解法(已完成)

热门文章

  1. oracle reco进程停止,oracle的后台进程能否杀掉
  2. ​DB-Engines 11月数据库排名:PostgreSQL坐稳同期涨幅榜冠军宝座
  3. C Primer Plus(6) 中文版 第5章 运算符、表达式和语句 5.2 基本运算符
  4. 基因大数据在生活中的应用
  5. 深夜报社哪家强?我分析了大众点评20w家店告诉你!
  6. 普通最小二乘法平面直线回归问题的三种实现(Python)
  7. Hybrid接口、MSTP协议
  8. 区块链技术应用场景之政务链
  9. 2018年秋招运维岗面试常见python和数据结构知识点总结
  10. 变量命名神器 CODELF