Oracle EBS query to get AR Invoice SLA Details

Oracle EBS query to get AR Invoice SLA Details
Oracle apps query to find Receivable transaction and XLA table details
ra_customer_trx_all and xla_ae_headers join
R12 receivables and subledger accounting join

--Query to get AR invoice SLA details
SELECT rct.trx_number,
       rct.customer_trx_id,
       rctd.cust_trx_line_gl_dist_id,
       xal.entered_dr,
       xal.entered_cr,
       xal.code_combination_id,
       xah.event_id,
       xal.ae_header_id,
       xah.*
  FROM ra_customer_trx_all          rct,
       ra_customer_trx_lines_all    rctl,
       ra_cust_trx_line_gl_dist_all rctd,
       xla_ae_headers               xah,
       xla_ae_lines                 xal,
       xla_events                   xet,
       xla_distribution_links       xdl
 WHERE     xal.ae_header_id = xah.ae_header_id
       AND xet.event_id = xah.event_id
       AND xdl.event_id = xet.event_id
       AND xdl.ae_header_id = xah.ae_header_id
       AND xdl.ae_line_num = xal.ae_line_num
       AND xdl.application_id = 222
       AND xdl.source_distribution_type IN
              ('RA_CUST_TRX_LINE_GL_DIST_ALL', 'MFAR_DISTRIBUTIONS_ALL')
       AND xdl.source_distribution_id_num_1 = rctd.CUST_TRX_LINE_GL_DIST_ID
       AND rctl.customer_trx_line_id = rctd.customer_trx_line_id
       AND rct.customer_trx_id = rctl.customer_trx_id
       AND rct.trx_number = :p_trx_number;
Related posts: Upload your own post and refer it anywhere anytime:

Leave a Reply