Home » Applications » Oracle Fusion Apps & E-Business Suite » The relation between tables and view in oracle financial
The relation between tables and view in oracle financial [message #516222] Fri, 15 July 2011 10:11 Go to next message
raul33
Messages: 26
Registered: October 2008
Location: jordan
Junior Member
Dears

I am work in oracle e business r12

and i need to build report as xml

when run my select its need big time to view data i have a huge of data so i need to clear the relation of this tables if there is miss and if there another technique in select statement

this is my select statement

select
j_hdr.je_header_id je_header_id,
hdr.VENDOR_NAME supplier,
SEGMENT1||'-'||SEGMENT2||'-'||SEGMENT3||'-'||SEGMENT4||'-'||SEGMENT5||'-'||SEGMENT6||'-'||SEGMENT7||'-'||SEGMENT8||'-'||SEGMENT9 Account_number,
hdr.gl_date gl_date,
j_hdr.CURRENCY_CODE CURRENCY_CODE,
inv_lin.DESCRIPTION DESCRIPTION,
j_lin.ENTERED_DR ENTERED_DR,
j_lin.ENTERED_CR ENTERED_CR,
j_lin.ACCOUNTED_DR ACCOUNTED_DR,
j_lin.ACCOUNTED_CR ACCOUNTED_CR,
j_hdr.JE_SOURCE JE_SOURCE,
j_hdr.DEFAULT_EFFECTIVE_DATE Transaction_DATE,
hdr.INVOICE_NUM INVOICE_NUM,
QUICK_PO_NUMBER PO_NUMBER,
null ASSET_CATEGORY_ID,
hdr.VENDOR_ID VENDOR_ID
from gl_je_headers j_hdr,gl_je_lines_v j_lin,ap_invoice_distributions dist,ap_invoices_v hdr,ap_invoice_lines_v inv_lin
where code_combination_id = DIST_CODE_COMBINATION_ID
and hdr.invoice_id = inv_lin.INVOICE_ID
and dist.invoice_id = inv_lin.INVOICE_ID
and j_hdr.JE_HEADER_ID = j_lin.JE_HEADER_ID
and j_hdr.status = 'P'
and nvl(:P_SOURCE,'Payables') = 'Payables'
and je_source = 'Payables'
and j_lin.CODE_COMBINATION_ID between ( select CODE_COMBINATION_ID
from gl_code_combinations_kfv
where CONCATENATED_SEGMENTS = :P_FROM_COMBINATION_CODE)
and ( select CODE_COMBINATION_ID
from gl_code_combinations_kfv
where CONCATENATED_SEGMENTS = :P_TO_COMBINATION_CODE)
AND TRUNC(dEFAULT_EFFECTIVE_DATE) BETWEEN NVL(:P_FROM_DATE, DEFAULT_EFFECTIVE_DATE) AND NVL(:P_to_DATE, DEFAULT_EFFECTIVE_DATE)


Thanks in advance
Re: The relation between tables and view in oracle financial [message #516717 is a reply to message #516222] Wed, 20 July 2011 04:31 Go to previous messageGo to next message
vamsi kasina
Messages: 2112
Registered: October 2003
Location: Cincinnati, OH
Senior Member
I don't see a proper join between GL and AP tables.
Only the filters / joins used between GL and AP tables are je_source, code_combination_id, status.
Do you really think GL will have a single record per above set?
Check the link to get an idea how the data flows from subledger to GL and vice versa.

By
Vamsi
Re: The relation between tables and view in oracle financial [message #516864 is a reply to message #516717] Thu, 21 July 2011 03:59 Go to previous messageGo to next message
raul33
Messages: 26
Registered: October 2008
Location: jordan
Junior Member
Thanks Vamsi but Can You Give me basic financial tables and brief description of this tables and columns or any source of it.
Re: The relation between tables and view in oracle financial [message #517005 is a reply to message #516864] Thu, 21 July 2011 14:22 Go to previous message
vamsi kasina
Messages: 2112
Registered: October 2003
Location: Cincinnati, OH
Senior Member
Quote:
any source of it
ETRM.

By
Vamsi
Previous Topic: AR_INVOICE_API_PUB.create_single_invoice
Next Topic: customer email address
Goto Forum:
  


Current Time: Wed Apr 24 09:44:51 CDT 2024