Thursday, 2 July 2015

Links PO To GL in R12

select * from po_requisition_headers_all  prha     --   prha.REQUISITION_HEADER_ID

select * from po_requisition_lines_all      prla        --   prha.REQUISITION_HEADER_ID ,                                                                                                      prla.REQUISITION_LINE_ID

select * from po_req_distributions_all     prda       --   prha.REQUISITION_LINE_ID ,                                                                                                              prla.REQUISITION_HEADER_ID  ,                                                                                                        prda.DISTRIBUTION_ID`

select * from po_headers_all     pha             --   pha.header_id

select * from po_lines_all         pla                 --   pha.header_id , pla.line_id

select * from po_distributions_all    pda           --   pah.header_id , pla.line_id  ,                                                                                                                      (pda.po_distribution_id links                                                                                                                     prda.DISTRIBUTION_ID)

select * from rcv_shipment_headers    rsh         --   rsh.SHIPMENT_HEADER_ID

select * from rcv_shipment_lines   rsl         --   rsl.SHIPMENT_line_ID ,                                                                                                                         rsl.SHIPMENT_HEADER_ID ,                                                                                                              rsl.PO_HEADER_ID   , rsl.PO_LINE_ID  ,                                                                                              rsl.REQUISITION_LINE_ID

select * from rcv_transactions     rt          --   rt.SHIPMENT_line_ID ,                                                                                                                          rt.SHIPMENT_HEADER_ID links                                                                                                          (xte.SOURCE_ID_INT_1 = rt.transaction_id)

select * from ap_invoices_all      aia         --   aia.invoice_id ,                                                                                                                                 aia.ACCTS_PAY_CODE_COMBINATION_ID ,                                                                                   aia.SOURCE_ID_INT_1

select * from ap_invoice_lines_all                aila        --   aila.invoice_id

select * from ap_invoice_distributions_all   aida        --   aida.invoice_id ,                                                                                                                                      aida.DIST_CODE_COMBINATION_ID                                                                                                , aida.distribution_id links                                                                                                        (aida.RCV_TRANSACTION_ID = rt.transaction_id)  

select * from ap_invoice_payments_all                aipa        --   aipa.invoice_id , aipa.check_id   ,                                                                                                             aipa.INVOICE_PAYMENT_ID

select * from ap_payment_schedules_all               apsa        --   apsa.invoice_id

select * from ap_checks_all                          aca         --   aca.check_id , aca.SOURCE_ID_INT_1                                                                                                  links (xte.SOURCE_ID_INT_1)

select * from ap_suppliers                           as          --   xal.PARTY_ID  = as.VENDOR_ID   ,                                                                                                     aia.vendor_id

select * from xla.xla_transaction_entities           xte         --   xte.SOURCE_ID_INT_1 link                                                                                                         (aia.nvoice_id , aca.check_id, rt.transaction_id)

select * from xla_events      xe          --   xe.EVENT_ID , xe.ENTITY_ID

select * from xla_ae_headers       xah         --   xah.ENTITY_ID , xah.EVENT_ID  ,                                                                                                     xah.AE_HEADER_ID

select * from xla_ae_lines      xal         --   xal.AE_HEADER_ID ,                                                                                                                        xal.GL_SL_LINK_TABLE ,                                                                                                                    xal.GL_SL_LINK_ID

select  from xla_distribution_links     xdl         --   xdl.AE_HEADER_ID  , xdl.EVENT_ID ,                                                                                               xdl.source_distribution_id_num_1

select * from gl_je_headers     gjh         --   gjh.JE_HEADER_ID  , gjh.je_batch_id  ,                                                                                                 gjh.je_source   , gjh.je_category_name

select * from gl_je_lines        gjl         --   gjl.JE_HEADER_ID  ,                                                                                                                               gjl.CODE_COMBINATION_ID  ,                                                                                                           jgj.le_line_num

select * from gl_code_combinations  gcc         --   gcc.CODE_COMBINATION_ID                                                                                                               (aida.DIST_CODE_COMBINATION_ID                                                                                   ,aia.ACCTS_PAY_CODE_COMBINATION_ID)

select * from gl_je_batches    gjb         --   gjb.je_batch_id  links (gjh.je_batch_id )
     
select * from  gl_je_sources    gjs         --   je_source_name   links (gjh.je_source)

select * from  gl_je_categories   gjc         --   je_category_name  links (gjh.je_category_name)
     
 select * from gl_import_references   gir         --   je_header_id , je_line_num ,                                                                                                                    GL_SL_LINK_ID  ,                                                                                                                                 GL_SL_LINK_TABLE  links                                                                                                                    (xal.GL_SL_LINK_TABLE ,                                                                                                                    xal.GL_SL_LINK_ID)

No comments:

Post a Comment