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中,該表中有如下形式的字段:
源表關聯字段
source_id_int_num
source_id_char_num
(這兩個字段是用來和源模塊關聯,該字段設置在各個子模塊中)
路徑:
Setup—>Accounting Setup—>Subledger Accounting Setup—>Accounting Methods Builder—>Events—>Event Model
(設置—>會計科目設置—>子分類賬會計設置—>會計方法生成器—>事件—>事件模型)
(注:各子模塊的路徑稍有不同,大致如上)
下面就以AR模塊爲例展示如下:
該界面的Entity Code[實體代碼]對應xla_transaction_entities表中的ENTITY_CODE字段,每個來源就標示了該子分類賬是哪個模塊產生的。點擊Identifiers[標示]進入如下界面:該界面中的Entity Table Column[實體表列字段]是子模塊相關源表的字段,Identifier Column[標示列]就是SLA中xla_transaction_entities表的列,SLA和各子模塊的聯繫就是通過該界面的設置來完成的。
安全性控制字段
security_id_int_num
security_id_char_num
這兩個字段是用來進行安全驗證,數據屏蔽使用的,xla_transaction_entities是有VPD驗證的表,各個模塊使用的策略函數是通過如下界面來設置的:
路徑:Setup—>Accounting Setup—>Subledger Accounting Setup—>Subledger application
(設置—>會計科目設置—>子分類賬會計設置—>子分類賬應用產品)
(注:各子模塊的路徑稍有不同,大致如上)SLA與各子模塊之間ER圖
1. SLA與AP_INVOICE2. SLA與AP_PAYMENT
3. SLA與AR_TRANSACTIONS
4. SLA與AR_RECEIPTS
5. SLA與AR_ADJUSTMENT
6. SLA與FA_TRANSACTIONS
7. SLA與FA_DEPRECIATION
8. SLA與PA_REVENUE
9. SLA與PA_EXPENDITURES
10. SLA與PO_RECEIVE
11. SLA與INV_TRANSACTIONS
12. SLA與WIP_TRANSACTIONS