How To Link Projects Transactions To Subledger Accounting (SLA)
How To Link Projects Transactions To Subledger Accounting (SLA)
How To Link Projects Transactions To Subledger Accounting (SLA)
How To Link Projects Transactions To Subledger Accounting (SLA) [ID 1274575.1] Modified 07-APR-2011 In this Document Goal Solution Examples: Type HOWTO Status PUBLISHED
Applies to:
Oracle Project Costing - Version: 12.1.1 and later [Release: 12.1 and later ] Information in this document applies to any platform.
Goal
How can you link the data in Subledger Accounting (SLA) back to the source expenditure item transactions in Oracle Projects?
Solution
The ACCT_EVENT_ID field in the PA_COST_DISTRIBUTION_LINES_ALL table is the simplest and most direct link between cost distribution lines in Projects (and thereby the source data in the SLA (XLA) tables. This column contains the identifier of the Accounting Event in SLA.
Distributions of various types, including cost distribution lines, can be linked to events, event headers, and event lines also via the table XLA_DISTRIBUTION_LINKS. In this table you have links between X and the source distribution which depends on the distribution source. The table below illustrates how different sources in Projects connect to this table:
Source_Distribution_Type
Source Table
Distribution Type Description Raw Cost Total Burdened Credit Total Burdened Debit Borrowed and Lent Expenditure Revenue Event Revenue Unbilled Receivables Unearned Revenue
Join Conditions
R Rate this document C D BL Revenue - Normal Revenue Revenue - Event Revenue Revenue - UBR Revenue - UER
source_distribution_id_num_1 = expenditure_item_id source_distribution_id_num_2 = line_num source_distribution_id_num_1 = expenditure_item_id source_distribution_id_num_2 = line_num source_distribution_id_num_1 = expenditure_item_id source_distribution_id_num_2 = line_num source_distribution_id_num_1 = expenditure_item_id source_distribution_id_num_2 = line_num source_distribution_id_num_1 = expenditure_item_id source_distribution_id_num_2 = line_num source_distribution_id_num_1 = pa_events.event_id source_distribution_id_num_2 = pa_cust_event_rdl_all.line_num source_distribution_id_num_1 = project_id source_distribution_id_num_2 = draft_revenue_num source_distribution_id_num_1 = project_id source_distribution_id_num_2 = draft_revenue_num
From XLA_DISTRIBUTION_LINKS table you can in turn join to XLA_EVENTS, XLA_AE_HEADERS, or XLA_AE_LINES
Examples:
Using the acct_event_id column, you could run a query like the following to gather the event data for a particular expenditure item:
SELECT * FROM xla_events WHERE event_id in ( SELECT DISTINCT acct_event_id FROM pa_cost_distribution_lines_all WHERE expenditure_item_id = &exp_item_id);
Another example using XLA_DISTRIBUTION_LINKS. This query retrieves all of the Accounting Event header and line data related to the revenue for a particular expenditure item:
SELECT dr.line_num, aeh.*, ael.* FROM xla_ae_headers aeh, xla_ae_lines ael, xla_distribution_links dl, pa_cust_rev_dist_lines_all dr WHERE dl.source_distribution_type = 'Revenue - Normal Revenue' AND dr.expenditure_item_id = &exp_item_id AND dr.expenditure_item_id = dl.source_distribution_id_num_1 AND dl.source_distribution_id_num_2 = dr.line_num AND aeh.ae_header_id = ael.ae_header_id AND ael.ae_header_id = dl.ae_header_id AND ael.ae_line_num = dl.ae_line_num;
The following are some additional queries which use the acct_event_id, that can be used for gathering data and troubleshooting problems with XLA:
a. To select cost distribution line data where the process status on the associated accounting event is 'I' (Invalid). Other process statuses that might be of interest: E=Error, U=Unprocessed, R=Relate Error:
SELECT * FROM pa_cost_distribution_lines_all pa WHERE acct_event_id in ( SELECT event_id FROM xla_events WHERE process_status_code = 'I' AND application_id = 275) ORDER BY expenditure_item_id,line_num;
b. To select all event data for Projects related events where the process status code is 'I' (Invalid):
SELECT * FROM xla_events WHERE process_status_code = 'I' AND application_id = 275;
https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=HOW... 01-06-2012