Professional Documents
Culture Documents
Pa AP GL Sla Quiries
Pa AP GL Sla Quiries
NOTICE
The information contained in this document is not to be used for any purpose other than the purposes for
which this document is furnished by GENPACT, nor is this document (in whole or in part) to be reproduced
or furnished to third parties or made public without the prior express written permission of GENPACT.
Version Control
SELECT
xah.period_name,
xel.accounted_dr,
xel.accounted_cr
FROM
apps.pa_draft_revenues_all pdra,
apps.pa_projects_all ppa,
apps.pa_draft_revenue_items pdri,
apps.pa_cust_event_rdl_all pcea,
apps.pa_events pe,
apps.xla_distribution_links xdl,
apps.xla_ae_lines xel,
apps.xla_ae_headers xah
WHERE
SELECT
GJB.NAME GL_BATCH_NAME,
GJH.NAME JOURNAL_NAME,
GJL.JE_LINE_NUM,
GJL.PERIOD_NAME,
GJL.ACCOUNTED_DR,
GJL.ACCOUNTED_CR,ppa.segment1,pe.description,substr(pe.description,1,10) AR#,
gcc.segment2
FROM
apps.pa_draft_revenues_all pdra,
apps.pa_projects_all ppa,
apps.pa_draft_revenue_items pdri,
apps.pa_cust_event_rdl_all pcea,
apps.pa_events pe,
apps.xla_distribution_links xdl,
apps.xla_ae_lines xel,
apps.xla_ae_headers xah,
APPS.GL_IMPORT_REFERENCES GIR,
APPS.GL_JE_HEADERS GJH,
APPS.GL_JE_LINES GJL,
APPS.GL_JE_BATCHES GJB,
apps.gl_code_combinations_kfv gcc
WHERE
ppa.project_id = pdra.project_id
AND pdri.draft_revenue_num = pdra.draft_revenue_num
AND ppa.project_id = pdri.project_id
AND ppa.project_id = pcea.project_id
AND pcea.draft_revenue_num = pdra.draft_revenue_num
-- AND PPA.segment1='D_2854431'
and pe.event_id in (11095580,
)
-- and pe.creation_date >sysdate-10
AP- GL
SELECT
aia.invoice_num,
gjb.name batch_name,
gjh.name journal_name,
gjh.period_name,
gjh.je_source,
gjh.je_category,
gjl.je_line_num,
gcc.concatenated_segments,
gjl.entered_dr,
gjl.entered_cr,
gjl.accounted_dr,
gjl.accounted_cr,aia.set_of_books_id
FROM
apps.ap_invoices_all aia,
--xla.XLA_TRANSACTION_ENTITIES_UPG xta,
apps.xla_events xe,
apps.xla_ae_headers xah,
apps.xla_ae_lines xal,
apps.gl_import_references gir,
apps.gl_je_headers gjh,
apps.gl_je_lines gjl,
apps.gl_je_batches gjb,
apps.gl_code_combinations_kfv gcc,
Cost Management
SELECT
gcc.concatenated_segments,
SUM(nvl(xel.accounted_dr,0) ),
SUM(nvl(xel.accounted_cr,0) )
FROM
apps.xla_distribution_links xdl,
apps.xla_ae_lines xel,
apps.xla_ae_headers xah,
apps.gl_code_combinations_kfv gcc
WHERE
xah.ae_header_id = xdl.ae_header_id
AND xel.ae_line_num = xdl.ae_line_num
AND xah.ae_header_id = xel.ae_header_id
AND gcc.code_combination_id = xel.code_combination_id
AND xah.ledger_id = 325
AND xah.application_id = 707
AND xah.event_id IN (55901127
)
GROUP BY
gcc.concatenated_segments