SLA概述
SLA :子分类账(Subledger Accounting),这个在R12中大力宣扬的内容, 我们通常的认为总账就是对Journal的汇总, 但是在实际的操作中我们会发现, 对于Sub system 过来的Journal, 并不能单纯的以一种逻辑进行汇总, 比如 AP 传入到GL 的request,虽然有丰富的选项用来进行汇总, 但是对于是否要汇总Detail Journal, 财务人员的思考角度跟我们是不一样的 , 并不能这样简单的Summary,针对不同的Invoice,可能期望得到的Journal 样子不太一样. 因此, 就需要SLA 这个新的模块进来对这些特殊性质的Journal进行处理. 其实这个模块也不是R12所特有的, 在11i下面,我们就可以看见有些Form, DB 的object是以 XLA 开头的, 其实就是 Subledger Accounting。
SLA设置
SLA常用表介绍
在SLA中技术方面最常用的就是日记账来源追溯,在追溯的过程中从GL到SLA和11i差别不大,都是通过gl_import_references 表来进行,该表的je_batch_id,je_header_id,je_line_num是和GL关联,该表字段gl_sl_link_id 是和SLA中的行表(XLA_AE_LINES)关联,在SLA中重要的几张表如下: XLA_EVENTS:
The XLA_EVENTS table record all information related to a specific event. This table is created as a type XLA_ARRAY_EVENT_TYPE. XLA_TRANSACTION_ENTITIES:
The table XLA_TRANSACTION_ENTITIES contains information about sub-ledger document or transactions. XLA_AE_HEADERS:
The XLA_AE_HEADERS table stores Subledger Journal entries. There is a one-to-many relationship between accounting events and journal entry headers. XLA_AE_LINES:
The XLA_AE_LINES table stores the Subledger Journal entry lines. There is a one-to-many relationship between Subledger Journal entry headers and Subledger Journal entry lines. XLA_DISTRIBUTION_LINKS:
The XLA_DISTRIBUTION_LINKS table stores the link between transactions and Subledger Journal entry lines.
SLA与各子模块之间的关联设置
上面提到的gl_import_references.gl_sl_link_id字段就是和xla_ae_lines.gl_sl_link_id字段关联,在这些表中和子模块关联的字段在xla_transaction_entities中,该表中有如下形式的字段: