SLA-SubledgerAccounting, has introduced new SLA tables :
-
XLA_AE_HEADERS
-
XLA_AE_LINES
-
XLA_DISTRIBUTION_LINKS
RCV_RECEIVING_SUB_LEDGER is notdirectly linked to table GL_JE_LINES, instead it islinked through the subledger tables :
-
XLA_AE_HEADERS
-
XLA_AE_LINES
-
XLA_DISTRIBUTION_LINKS
Accounting entries in RCV_RECEIVING_SUB_LEDGERcan be retrieved using SLA tables and GL_IMPORT_REFERENCEStable after running Create Accounting.
RCV_RECEIVING_SUB_LEDGERis linked to XLA Tables by RCV_SUB_LEDGER_ID
Runthe sql below to get RCV_SUB_LEDGER_ID:
Select RCV_SUB_LEDGER_ID from rcv_receiving_sub_ledger
where rcv_transaction_id in
(select transaction_id from rcv_transactions
where po_header_id =&&po_header_id);
XLA_DISTRIBUTION_LINKSstores the link between transactions and subledger journal entry lines.
The tables XLA_DISTRIBUTION_LINKSand RCV_RECEIVING_SUB_LEDGERare linked by
For example:
Select *
FROM XLA_DISTRIBUTION_LINKS XDL
where XDL.SOURCE_DISTRIBUTION_ID_NUM_1 IN (' << list of RRSL.RCV_SUB_LEDGER_ID >>')
And SOURCE_DISTRIBUTION_TYPE = 'RCV_RECEIVING_SUB_LEDGER'
And APPLICATION_ID = 707;
Select * from rcv_receiving_sub_ledger
where rcv_sub_ledger_id in
(select source_dIstribution_id_num_1
FROM XLA_DISTRIBUTION_LINKS
where SOURCE_DISTRIBUTION_TYPE ='RCV_RECEIVING_SUB_LEDGER'
and APPLICATION_ID=707)
Link the PODistibution, Receipts, Receiving Subledger and XLA Distributions
select rt.po_header_id, pd.po_distribution_id,
rt.transaction_id, rrsl.rcv_sub_ledger_id,
xdl.ae_header_id,xdl.SOURCE_DISTRIBUTION_ID_NUM_1,
xdl.SOURCE_DISTRIBUTION_TYPE
from rcv_receiving_sub_ledger rrsl, rcv_transactions rt,
po_distributions_all pd, xla_distribution_links xdl
where pd.po_distribution_id = rt.PO_DISTRIBUTION_ID
and rt.transaction_id = rrsl.rcv_transaction_id
and rt.PO_DISTRIBUTION_ID = rrsl.reference3
and rrsl.rcv_sub_ledger_id = xdl.SOURCE_DISTRIBUTION_ID_NUM_1
and xdl.SOURCE_DISTRIBUTION_TYPE = 'RCV_RECEIVING_SUB_LEDGER'
and xdl.APPLICATION_ID=707;
Thetables PO_BC_DISTRIBUTIONS and XLA_AE_HEADERS arelinked with the column 'event_id'.
The tables XLA_AE_HEADERS and GL_BC_PACKETS arelinked with the column 'ae_header_id'.
XLA_DISTRIBUTION_LINKS and GL_BC_PACKETS arelinked by 'source_distribution_type' and 'source_distribution_id_num_1' . OnReserving and Approving the PO, Encumbrance entries get generated in table GL_BC_PACKETS withcolumn 'source_distribution_type' as po_distributions_allandcolumn 'source_distribution_id_num_1' as po_distribution_id.
The tables XLA_AE_HEADERS and XLA_AE_LINES arelinked with the column 'ae_header_id'.
The tables XLA_DISTRIBUTION_LINKS and MTL_TRANSACTION_ACCOUNTS arelinked by