Tuesday, 14 May 2019
Receipt Accounting SQL in Fusion Receivables and Transaction Accounting SQL in Fusion Receivables
SELECT
xte.entity_code,
xah.ae_header_id,
xte.source_id_int_1,
xal.ae_line_num,
xal.displayed_line_number,
xal.description,
xal.party_id,
xal.party_site_id,
xal.party_type_code,
xal.accounting_class_code,
(select meaning from FND_LOOKUP_VALUES_TL
where lookup_type='XLA_ACCOUNTING_CLASS'
and lookup_code = xal.accounting_class_code
and language='US'
and source_lang='US') ACCOUNTING_CLASS_NAME,
xal.code_combination_id,
xal.accounted_dr,
xal.accounted_cr,
--gcc.code_combination_id AS code_combination_id,
gcc.segment1
|| '.'
|| gcc.segment2
|| '.'
|| gcc.segment3
|| '.'
|| gcc.segment4
|| '.'
|| gcc.segment5
|| '.'
|| gcc.segment6
|| '.'
|| gcc.segment7 AS account_segments,
gled.chart_of_accounts_id,
gl_flexfields_pkg.get_concat_description(gled.chart_of_accounts_id,gcc.code_combination_id) account_description,
gled.ledger_id
FROM
xla_transaction_entities xte,
xla_ae_headers xah,
xla_ae_lines xal,
gl_code_combinations gcc,
gl_ledgers gled
WHERE 1=1
AND xah.entity_id = xte.entity_id
AND xal.ae_header_id = xah.ae_header_id
AND xal.application_id = 222
AND xah.application_id = 222
AND xte.application_id = 222
AND xte.ledger_id = gled.ledger_id
AND xte.ledger_id = xah.ledger_id
AND xah.ledger_id = xal.ledger_id
AND gcc.code_combination_id = xal.code_combination_id
and xte.entity_code ='RECEIPTS'
and gled.ledger_id= :LEDGER_ID
and xte.source_id_int_1 = :m_cash_receipt_id
order by xal.accounted_dr, xal.displayed_line_number
###################################################
Receivables Invoice or Transaction Accounting SQL
###################################################
SELECT
xte.entity_code,
xah.ae_header_id,
xte.source_id_int_1,
xal.ae_line_num,
xal.displayed_line_number,
xal.description,
xal.party_id,
xal.party_site_id,
xal.party_type_code,
xal.accounting_class_code,
(select meaning from FND_LOOKUP_VALUES_TL
where lookup_type='XLA_ACCOUNTING_CLASS'
and lookup_code = xal.accounting_class_code
and language='US'
and source_lang='US') ACCOUNTING_CLASS_NAME,
xal.code_combination_id,
xal.accounted_dr,
xal.accounted_cr,
--gcc.code_combination_id AS code_combination_id,
gcc.segment1
|| '.'
|| gcc.segment2
|| '.'
|| gcc.segment3
|| '.'
|| gcc.segment4
|| '.'
|| gcc.segment5
|| '.'
|| gcc.segment6
|| '.'
|| gcc.segment7 AS account_segments,
gled.chart_of_accounts_id,
gl_flexfields_pkg.get_concat_description(gled.chart_of_accounts_id,gcc.code_combination_id) account_description,
gled.ledger_id
FROM
xla_transaction_entities xte,
xla_ae_headers xah,
xla_ae_lines xal,
gl_code_combinations gcc,
gl_ledgers gled
WHERE 1=1
AND xah.entity_id = xte.entity_id
AND xal.ae_header_id = xah.ae_header_id
AND xal.application_id = 222
AND xah.application_id = 222
AND xte.application_id = 222
AND xte.ledger_id = gled.ledger_id
AND xte.ledger_id = xah.ledger_id
AND xah.ledger_id = xal.ledger_id
AND gcc.code_combination_id = xal.code_combination_id
and xte.entity_code ='TRANSACTIONS'
and gled.ledger_id= :LEDGER_ID
and xte.source_id_int_1 = :RA_CUSTOMER_TRX_ALL.CUSTOMER_TRX_ID
order by xal.accounted_dr, xal.displayed_line_number
##########################
select primary_ledger_id from fun_fin_business_units_v where bu_name like 'XX%'
Subscribe to:
Post Comments (Atom)
Oracle Apps R12 and Fusion Cloud Self Paced Training Videos by Industry Experts with Live Meeting Support. Please Check https://www.oracleappstechnical.com
ReplyDelete