How does the XLA_DISTRIBUTION_LINKS table map to the Payables Subledger?
This table contains the link between transactions and subledger journal entry lines.
Module: Payables
Column – EVENT_ID:
Invoice/Payment
- In case of invoice it will be Invoice transaction event id.
- In case of payment it will be Payment transaction event id.
Column – AE_HEADER_ID:
Invoice/Payment
- In case of invoice it will be Invoice transaction ae header id.
- In case of payment it will be Payment transaction ae header id.
Column – AE_LINE_NUM:
Invoice/Payment
- AE_LINE_NUM helps to link XLA_AE_LINES → AE_LINE_NUM
Column – SOURCE_DISTRIBUTION_ID_NUM_1:
Invoice
- In case of Invoice it will be Invoice transaction invoice_distribution_id from ap_invoice_distributions_all table.
Payment
- In case of Payment it will be payment transaction payment_hist_dist_id from ap_payment_hist_dists table.
Column – REF_AE_HEADER_ID:
Invoice
- In case of Invoice it will be Invoice transaction ae_header_id (or upstream transaction ae_header_id)
Payment
- In case of Payment it will be Invoice transaction ae_header_id
Column – REF_EVENT_ID:
Invoice
- In case of Invoice it will be Invoice transaction event_id (or upstream transaction event_id)
Payment
- In case of Payment it will be Invoice transaction event_id
Column – APPLIED_TO_ENTITY_CODE:
Invoice/Payment
- The entity code of the upstream/invoice transaction, e.g.
‘PURCHASE_ORDER’
‘AP_INVOICES’
‘AP_PAYMENTS’
- In case of invoice it will be “AP_INVOICES”
- In case of payment entered transaction mean when (Liability and Cash Clearing getting accounted) it will be “AP_INVOICES”.
- In case of payment cleared transaction mean when (Cash and Cash Clearing getting accounted) it will be “AP_PAYMENTS”.
Column – APPLIED_TO_ENTITY_ID:
Invoice/Payment
- The entity_id of the invoice/upstream transaction
- In case of invoice it will be null irrespective of accounting class(expense or liability)
- In case of payment entered transaction mean when (Liability and Cash Clearing getting accounted) when accounting class is “Cash Clearing” it will be null.
- In case of payment entered transaction mean when (Liability and Cash Clearing getting accounted) when accounting class “Liability” it will be invoice transaction entity_id.
- In case of payment cleared transaction mean when (Cash and Cash Clearing getting accounted) and accounting class is “Cash” it will be null.
- In case of payment cleared transaction mean when (Cash and Cash Clearing getting accounted) and accounting class is “Cash Clearing” it will be payment transaction entity_id.
Column – APPLIED_TO_SOURCE_ID_NUM_1:
Invoice/Payment
- In case of invoice it will be invoice_id
- In case of payment entered transaction mean when (Liability and Cash Clearing getting accounted) it will still be invoice_id from invoice transaction.
- In case of payment cleared transaction mean when (Cash and Cash Clearing getting accounted) it will be check_id from payment transaction.
Column – APPLIED_TO_DISTRIBUTION_TYPE:
Invoice/Payment
- The upstream transaction distribution type, e.g.,
‘PO_DISTRIBUTIONS_ALL’
‘AP_INV_DIST’
‘AP_PMT_DIST’
- In case of invoice it will be ‘AP_INV_DIST’.
- In case of payment entered transaction mean when (Liability and Cash Clearing getting accounted) it will still be ‘AP_INV_DIST’.
- In case of payment cleared transaction mean when (Cash and Cash Clearing getting accounted) it will be ‘AP_PMT_DIST’.
Column – APPLIED_TO_DIST_ID_NUM_1:
Invoice/Payment
- The upstream transaction distribution id.
- In case of invoice it will be invoice_distribution_id.
- In case of payment entered transaction mean when (Liability and Cash Clearing getting accounted) it will still be invoice_distribution_id.
- In case of payment cleared transaction mean when (Cash and Cash Clearing getting accounted) it will be payment_hist_dist_id from ap_payment_hist_dists table.
The ref_event_id is populated for JLTs that have Business flow Method = Prior Entry.
The ref_event_id is referencing the upstream accounting that the downstream JLT needs to pull the account from.
Ref: Doc ID 813968.1
One thought on “How does the XLA_DISTRIBUTION_LINKS table map to the Payables Subledger?”