R12 AR cash receipt SLA and GL details query

R12 AR cash receipt SLA and GL details query
EBS Oracle apps Receivables cash receipt subledger accounting and General Ledger details query
ar_cash_receipts_all xla_ae_headers xla_ae_lines gl_je_headers gl_je_lines

  SELECT rct.receipt_number,
         b.name      batch_name,
         h.name      journal_name,
         b.description batch_description,
         h.je_category,
         h.je_source,
         h.period_name je_period_name,
         h.status    journal_status,
         h.description je_description,
         l.je_line_num line_number,
         l.accounted_dr,
         l.accounted_cr,
         xlal.ae_line_num,
         xlal.accounting_class_code,
         xlal.accounted_dr,
         xlal.accounted_cr,
         xlal.currency_code,
         xlal.description,
         xlal.accounting_date,
         xlal.creation_date,
         xlah.accounting_entry_status_code,
         xlah.gl_transfer_status_code
    FROM apps.gl_je_batches         b,
         apps.gl_je_headers         h,
         apps.gl_je_lines           l,
         apps.gl_import_references  gir,
         apps.xla_ae_lines          xlal,
         apps.xla_ae_headers        xlah,
         apps.xla_events            xlae,
         xla.xla_transaction_entities xlate,
         apps.ar_cash_receipts_all  rct
   WHERE     1 = 1
         AND h.je_header_id(+) = l.je_header_id
         AND l.je_header_id(+) = gir.je_header_id
         AND l.je_line_num(+) = gir.je_line_num
         AND gir.je_batch_id = b.je_batch_id(+)
         AND gir.gl_sl_link_table(+) = xlal.gl_sl_link_table
         AND gir.gl_sl_link_id(+) = xlal.gl_sl_link_id
         AND xlal.ae_header_id = xlah.ae_header_id
         AND xlah.event_id = xlae.event_id
         AND xlae.entity_id = xlate.entity_id
         AND xlae.application_id = xlate.application_id
         AND xlate.entity_code = 'RECEIPTS'
         AND h.je_source(+) = 'Receivables'
         AND h.je_category(+) = 'Receipts'
         AND rct.cash_receipt_id = xlate.source_id_int_1
         AND receipt_number = '12345678'
ORDER BY xlal.creation_date, b.name, xlal.ae_line_num;
Related posts: Upload your own post and refer it anywhere anytime:

Leave a Reply