<ROOT>
 <APPS_INITIALIZE_DATA>
  <USER_NAME>ENGINATICS</USER_NAME>
  <RESPONSIBILITY_KEY>SYSTEM_ADMINISTRATOR</RESPONSIBILITY_KEY>
  <APPLICATION_SHORT_NAME>SYSADMIN</APPLICATION_SHORT_NAME>
 </APPS_INITIALIZE_DATA>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: CAC Interface Error Summary -->
 <REPORTS_ROW>
  <GUID>38E04C5733C50561E0630100007F7D10</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>with o as (
select /*+ materialize*/
nvl(gl.short_name,gl.name) ledger,
haouv_ou.name operating_unit,
haouv_ou.organization_id operating_unit_id,
mp.organization_code,
mp.organization_id,
to_number(hoi.org_information2) legal_entity_id,
gl.period_set_name,
gl.accounted_period_type
from
mtl_parameters mp,
hr_organization_information hoi,
hr_all_organization_units_vl haouv,
hr_all_organization_units_vl haouv_ou,
gl_ledgers gl
where
1=1 and
2=2 and
3=3 and
mp.organization_id=hoi.organization_id and
hoi.org_information_context=&apos;Accounting Information&apos; and
hoi.organization_id=haouv.organization_id and
sysdate&lt;nvl(haouv.date_to,sysdate+1) and
to_number(hoi.org_information3)=haouv_ou.organization_id and
to_number(hoi.org_information1)=gl.ledger_id
),
u as (
select /*+ materialize*/
nvl(gl.short_name,gl.name) ledger,
haouv_ou.name operating_unit,
haouv_ou.organization_id operating_unit_id,
fspa.inventory_organization_id,
gl.period_set_name,
gl.accounted_period_type
from
hr_all_organization_units_vl haouv_ou,
hr_organization_information hoi,
financials_system_params_all fspa,
gl_ledgers gl
where
1=1 and
3=3 and
haouv_ou.organization_id=hoi.organization_id and
hoi.org_information_context||&apos;&apos;=&apos;CLASS&apos; and
hoi.org_information1=&apos;OPERATING_UNIT&apos; and
hoi.org_information2=&apos;Y&apos; and
haouv_ou.organization_id=fspa.org_id and
fspa.set_of_books_id=gl.ledger_id
),
t as (
select /*+ materialize*/
rownum id,
x.*
from
(
select
1 section,
&apos;SQLAP&apos; fav_app,
&apos;SQLAP&apos; fpi_app,
null area,
&apos;AP_Invoices_Interface&apos; report_interface,
&apos;Number of A/P Invoices&apos; report_title,
&apos;3&apos; priority_code,
&apos;O&apos; lvl,
to_number(null) organization_id,
nvl(aii.org_id,to_number(regexp_replace(aii.attribute_category,&apos;[^0-9]+&apos;,&apos;&apos;))) operating_unit_id,
to_number(null) ledger_id,
to_number(null) acct_period_id,
coalesce(aii.gl_date,aii.invoice_date,sysdate) txn_date,
(select xxen_util.meaning(&apos;AP_SUPPLIER&apos;,&apos;BUSINESS_ENTITY&apos;,0) from dual) column_type,
aps.vendor_name column_info,
aii.status status_code,
null message,
&apos;Rows in the AP_INVOICES_INTERFACE table&apos; interface_description
from
ap_invoices_interface aii,
ap_suppliers aps
where
nvl(aii.status,&apos;N&apos;)&lt;&gt;&apos;PROCESSED&apos; and
aii.vendor_id=aps.vendor_id(+)
union all
select
2 section,
&apos;SQLAP&apos; fav_app,
&apos;SQLAP&apos; fpi_app,
null area,
&apos;AP_Interface_Rejections&apos; report_interface,
&apos;Number of A/P Interface Rejections&apos; report_title,
&apos;3&apos; priority_code,
&apos;O&apos; lvl,
to_number(null) organization_id,
nvl(aii.org_id,to_number(regexp_replace(aii.attribute_category,&apos;[^0-9]+&apos;,&apos;&apos;))) operating_unit_id,
to_number(null) ledger_id,
to_number(null) acct_period_id,
coalesce(aii.gl_date,aii.invoice_date,sysdate) txn_date,
(select xxen_util.meaning(&apos;AP_SUPPLIER&apos;,&apos;BUSINESS_ENTITY&apos;,0) from dual) column_type,
aps.vendor_name column_info,
aii.status status_code,
air.reject_lookup_code message,
&apos;Errors in the AP_INTERFACE_REJECTIONS table - Invoice Issue&apos; interface_description
from
ap_interface_rejections air,
ap_invoices_interface aii,
ap_suppliers aps
where
air.parent_table=&apos;AP_INVOICES_INTERFACE&apos; and
air.parent_id=aii.invoice_id and
nvl(aii.status,&apos;N&apos;)&lt;&gt;&apos;PROCESSED&apos; and
aii.vendor_id=aps.vendor_id(+)
union all
select
3 section,
&apos;SQLAP&apos; fav_app,
&apos;SQLAP&apos; fpi_app,
null area,
&apos;AP_Interface_Rejections&apos; report_interface,
&apos;Number of A/P Interface Rejections&apos; report_title,
&apos;3&apos; priority_code,
&apos;O&apos; lvl,
to_number(null) organization_id,
nvl(aii.org_id,to_number(regexp_replace(aii.attribute_category,&apos;[^0-9]+&apos;,&apos;&apos;))) operating_unit_id,
to_number(null) ledger_id,
to_number(null) acct_period_id,
coalesce(aii.gl_date,aii.invoice_date,sysdate) txn_date,
(select xxen_util.meaning(&apos;AP_SUPPLIER&apos;,&apos;BUSINESS_ENTITY&apos;,0) from dual) column_type,
aps.vendor_name column_info,
aii.status status_code,
air.reject_lookup_code message,
&apos;Errors in the AP_INTERFACE_REJECTIONS table - Invoice Line Issue&apos; interface_description
from
ap_interface_rejections air,
ap_invoice_lines_interface aili,
ap_invoices_interface aii,
ap_suppliers aps
where
air.parent_table=&apos;AP_INVOICE_LINES_INTERFACE&apos; and
air.parent_id=aili.invoice_line_id and
aili.invoice_id=aii.invoice_id and
nvl(aii.status,&apos;N&apos;)&lt;&gt;&apos;PROCESSED&apos; and
aii.vendor_id=aps.vendor_id(+)
union all
select
4 section,
&apos;AR&apos; fav_app,
&apos;AR&apos; fpi_app,
null area,
&apos;RA_Interface_Lines_All&apos; report_interface,
&apos;Number of RA Invoice lines&apos; report_title,
&apos;3&apos; priority_code,
&apos;O&apos; lvl,
to_number(null) organization_id,
rila.org_id operating_unit_id,
to_number(null) ledger_id,
to_number(null) acct_period_id,
coalesce(rila.rule_start_date,rila.gl_date,rila.trx_date,sysdate) txn_date,
(select xxen_util.meaning(&apos;MSCX_CUST_SHIP_DATE&apos;,&apos;MSC_PQ_CP_EXCP&apos;,0) from dual) column_type,
to_char(rila.ship_date_actual,&apos;YYYY-MM-DD&apos;) column_info,
(select xxen_util.meaning(nvl2(riea.message_text,&apos;COMPLETED W/ERRORS&apos;,&apos;UNPROCESSED&apos;),&apos;DEBRIEF_CONCURRENT_STATUS&apos;,0) from dual) status_code,
riea.message_text message,
&apos;Rows in the RA_INTERFACE_LINES_ALL table&apos; interface_description
from
ra_interface_lines_all rila,
ra_interface_errors_all riea
where
rila.interface_line_id=riea.interface_line_id(+)
union all
select
5 section,
&apos;AR&apos; fav_app,
&apos;AR&apos; fpi_app,
null area,
&apos;RA_Interface_Errors_All&apos; report_interface,
&apos;Number of RA Invoice Errors&apos; report_title,
&apos;3&apos; priority_code,
&apos;O&apos; lvl,
to_number(null) organization_id,
rila.org_id operating_unit_id,
to_number(null) ledger_id,
to_number(null) acct_period_id,
coalesce(rila.rule_start_date,rila.gl_date,rila.trx_date,sysdate) txn_date,
(select xxen_util.meaning(&apos;CUSTOMER_NAME&apos;,&apos;MSC_PQ_CP_EXCP&apos;,0) from dual) column_type,
(select hp.party_name from hz_cust_accounts hca, hz_parties hp where rila.orig_system_bill_customer_id=hca.cust_account_id and hca.party_id=hp.party_id) column_info,
(select xxen_util.meaning(&apos;COMPLETED W/ERRORS&apos;,&apos;DEBRIEF_CONCURRENT_STATUS&apos;,0) from dual) status_code,
riea.message_text message,
&apos;Errors in the RA_INTERFACE_ERRORS_ALL table&apos; interface_description
from
ra_interface_lines_all rila,
ra_interface_errors_all riea
where
rila.interface_line_id=riea.interface_line_id
union all
select
6 section,
&apos;CE&apos; fav_app,
&apos;CE&apos; fpi_app,
null area,
&apos;CE_Header_Interface_Errors&apos; report_interface,
&apos;Number of Cash Mgmt Interface Records by Bank&apos; report_title,
&apos;3&apos; priority_code,
&apos;N&apos; lvl,
to_number(null) organization_id,
to_number(null) operating_unit_id,
to_number(null) ledger_id,
to_number(null) acct_period_id,
chie.creation_date txn_date,
(select xxen_util.meaning(&apos;BANK_NAME&apos;,&apos;JA_CN_XML_TAGS&apos;,0) from dual) column_type,
(select max(hp.party_name) from ce_bank_accounts cba, hz_parties hp where chie.bank_account_num=cba.bank_account_num and cba.bank_id=hp.party_id) column_info,
(select xxen_util.meaning(&apos;E&apos;,&apos;LOG_TYPE_CODE&apos;,0) from dual) status_code,
chie.message_name message,
&apos;Rows in the CE_HEADER_INTERFACE_ERRORS table&apos; interface_description
from
ce_header_interface_errors chie
union all
select
7 section,
&apos;SQLGL&apos; fav_app,
&apos;SQLGL&apos; fpi_app,
null area,
&apos;GL_Interface&apos; report_interface,
&apos;Number of G/L Lines by Ledger&apos; report_title,
&apos;3&apos; priority_code,
&apos;G&apos; lvl,
to_number(null) organization_id,
to_number(null) operating_unit_id,
decode(gi.ledger_id,-1,gi.set_of_books_id,gi.ledger_id) ledger_id,
to_number(null) acct_period_id,
nvl(gi.accounting_date,gi.transaction_date) txn_date,
(select xxen_util.meaning(&apos;JE_SOURCE_NAME&apos;,&apos;JGSLAJNLTP_RPT_SORT_PARAMS&apos;,0) from dual) column_type,
gi.user_je_source_name column_info,
gi.status status_code,
null message,
&apos;Rows in the GL_INTERFACE table&apos; interface_description
from
gl_interface gi
union all
select
8 section,
&apos;SQLGL&apos; fav_app,
&apos;SQLGL&apos; fpi_app,
null area,
&apos;GL_Interface&apos; report_interface,
&apos;Number of G/L Lines With No Ledger Id&apos; report_title,
&apos;3&apos; priority_code,
&apos;N&apos; lvl,
to_number(null) organization_id,
to_number(null) operating_unit_id,
to_number(null) ledger_id,
to_number(null) acct_period_id,
nvl(gi.accounting_date,gi.transaction_date) txn_date,
(select xxen_util.meaning(&apos;JE_SOURCE_NAME&apos;,&apos;JGSLAJNLTP_RPT_SORT_PARAMS&apos;,0) from dual) column_type,
gi.user_je_source_name column_info,
gi.status status_code,
&apos;Missing Ledger Id&apos; message,
&apos;Rows in the GL_INTERFACE table&apos; interface_description
from
gl_interface gi
where
gi.ledger_id=-1 and
gi.set_of_books_id is null
union all
select
9 section,
&apos;INV&apos; fav_app,
&apos;INV&apos; fpi_app,
null area,
&apos;MTL_Material_Transactions_Temp&apos; report_interface,
&apos;Unprocessed Material Errors&apos; report_title,
&apos;2&apos; priority_code,
&apos;IA&apos; lvl,
mmtt.organization_id,
to_number(null) operating_unit_id,
to_number(null) ledger_id,
mmtt.acct_period_id,
mmtt.transaction_date txn_date,
(select xxen_util.meaning(&apos;3&apos;,&apos;INV_SRS_REG_BREAK&apos;,700) from dual) column_type,
(select mtt.transaction_type_name from mtl_transaction_types mtt where mmtt.transaction_type_id=mtt.transaction_type_id) column_info,
mmtt.process_flag status_code,
mmtt.error_code message,
&apos;Rows have Errored in the Material Transactions Temp table&apos; interface_description
from
mtl_material_transactions_temp mmtt
where
mmtt.process_flag=&apos;E&apos;
union all
select
10 section,
&apos;INV&apos; fav_app,
&apos;INV&apos; fpi_app,
null area,
&apos;MTL_Material_Transactions_Temp&apos; report_interface,
&apos;Unprocessed Material Transactions With Locked Records&apos; report_title,
&apos;2&apos; priority_code,
&apos;IA&apos; lvl,
mmtt.organization_id,
to_number(null) operating_unit_id,
to_number(null) ledger_id,
mmtt.acct_period_id,
mmtt.transaction_date txn_date,
(select xxen_util.meaning(&apos;3&apos;,&apos;INV_SRS_REG_BREAK&apos;,700) from dual) column_type,
(select mtt.transaction_type_name from mtl_transaction_types mtt where mmtt.transaction_type_id=mtt.transaction_type_id) column_info,
mmtt.process_flag status_code,
mmtt.error_code message,
&apos;Rows have their records locked in the MTL_MATERIAL_TRANSACTIONS_TEMP table&apos; interface_description
from
mtl_material_transactions_temp mmtt
where
mmtt.lock_flag in (&apos;Y&apos;,&apos;1&apos;)
union all
select
11 section,
&apos;INV&apos; fav_app,
&apos;INV&apos; fpi_app,
null area,
&apos;MTL_Transactions_Interface&apos; report_interface,
&apos;Pending Material Transactions&apos; report_title,
&apos;3&apos; priority_code,
&apos;ID&apos; lvl,
mti.organization_id,
to_number(null) operating_unit_id,
to_number(null) ledger_id,
to_number(null) acct_period_id,
nvl(mti.transaction_date,sysdate) txn_date,
(select xxen_util.meaning(&apos;3&apos;,&apos;INV_SRS_REG_BREAK&apos;,700) from dual) column_type,
(select mtt.transaction_type_name from mtl_transaction_types mtt where mti.transaction_type_id=mtt.transaction_type_id) column_info,
decode(mti.process_flag,1,&apos;1 - Ready&apos;,2,&apos;2 - Not Ready&apos;,3,&apos;3 - Error&apos;) status_code,
mti.error_code message,
&apos;Rows in the Material Transaction Interface&apos; interface_description
from
mtl_transactions_interface mti
union all
select
12 section,
&apos;INV&apos; fav_app,
&apos;INV&apos; fpi_app,
null area,
&apos;MTL_Transactions_Interface Errors&apos; report_interface,
&apos;Pending Material Transactions With Locked Records&apos; report_title,
&apos;2&apos; priority_code,
&apos;ID&apos; lvl,
mti.organization_id,
to_number(null) operating_unit_id,
to_number(null) ledger_id,
to_number(null) acct_period_id,
nvl(mti.transaction_date,sysdate) txn_date,
(select xxen_util.meaning(&apos;3&apos;,&apos;INV_SRS_REG_BREAK&apos;,700) from dual) column_type,
(select mtt.transaction_type_name from mtl_transaction_types mtt where mti.transaction_type_id=mtt.transaction_type_id) column_info,
to_char(mti.process_flag) status_code,
mti.error_code message,
&apos;Rows have their records locked&apos; interface_description
from
mtl_transactions_interface mti
where
mti.lock_flag=1
union all
select
13 section,
&apos;CST&apos; fav_app,
&apos;INV&apos; fpi_app,
null area,
&apos;MTL_Material_Transactions&apos; report_interface,
&apos;Uncosted Material Transactions&apos; report_title,
&apos;2&apos; priority_code,
&apos;IA&apos; lvl,
mmt.organization_id,
to_number(null) operating_unit_id,
to_number(null) ledger_id,
mmt.acct_period_id,
mmt.transaction_date txn_date,
(select xxen_util.meaning(&apos;3&apos;,&apos;INV_SRS_REG_BREAK&apos;,700) from dual) column_type,
(select mtt.transaction_type_name from mtl_transaction_types mtt where mmt.transaction_type_id=mtt.transaction_type_id) column_info,
mmt.costed_flag status_code,
mmt.error_code message,
&apos;Rows have not been costed, check the Cost Processor&apos; interface_description
from
mtl_material_transactions mmt
where
mmt.costed_flag in (&apos;N&apos;,&apos;E&apos;) and
mmt.organization_id not in (select mp.organization_id from mtl_parameters mp where mp.process_enabled_flag=&apos;Y&apos;)
union all
select
14 section,
&apos;WSM&apos; fav_app,
&apos;WSM&apos; fpi_app,
null area,
&apos;WSM_Split_Merge_Transactions&apos; report_interface,
&apos;Uncosted WIP Split Merge Transactions&apos; report_title,
&apos;2&apos; priority_code,
&apos;ID&apos; lvl,
wsmt.organization_id,
to_number(null) operating_unit_id,
to_number(null) ledger_id,
to_number(null) acct_period_id,
nvl(wsmt.transaction_date,sysdate) txn_date,
(select xxen_util.meaning(&apos;3&apos;,&apos;INV_SRS_REG_BREAK&apos;,700) from dual) column_type,
xxen_util.meaning(to_char(wsmt.transaction_type_id),&apos;WSM_WIP_LOT_TXN_TYPE&apos;,700) column_info,
xxen_util.meaning(wsmt.status,&apos;WIP_PROCESS_STATUS&apos;,700) status_code,
wsmt.error_message message,
&apos;Rows have not been costed, check the Cost Processor&apos; interface_description
from
wsm_split_merge_transactions wsmt
where
wsmt.costed&lt;&gt;4 and
wsmt.organization_id not in (select mp.organization_id from mtl_parameters mp where mp.process_enabled_flag=&apos;Y&apos;)
union all
select
15 section,
&apos;INL&apos; fav_app,
&apos;INL&apos; fpi_app,
null area,
&apos;CST_Lc_Adj_Interface&apos; report_interface,
&apos;Pending LCM Interface&apos; report_title,
&apos;2&apos; priority_code,
&apos;ID&apos; lvl,
clai.organization_id,
to_number(null) operating_unit_id,
to_number(null) ledger_id,
to_number(null) acct_period_id,
clai.transaction_date txn_date,
(select xxen_util.meaning(&apos;3&apos;,&apos;INV_SRS_REG_BREAK&apos;,700) from dual) column_type,
xxen_util.meaning(rt.transaction_type,&apos;RCV TRANSACTION TYPE&apos;,201) column_info,
xxen_util.meaning(clai.process_status,&apos;LANDED_COST_ADJ_PROCESS_STATUS&apos;,700) status_code,
claie.error_message message,
&apos;Rows in the CST_LC_ADJ_INTERFACE table&apos; interface_description
from
cst_lc_adj_interface clai,
cst_lc_adj_interface_errors claie,
rcv_transactions rt
where
clai.organization_id in (select mp.organization_id from mtl_parameters mp where mp.lcm_enabled_flag=&apos;Y&apos;) and
clai.transaction_id=claie.transaction_id(+) and
clai.rcv_transaction_id=rt.transaction_id
union all
select
16 section,
&apos;WIP&apos; fav_app,
&apos;WIP&apos; fpi_app,
null area,
&apos;WIP_Move_Txn_Interface&apos; report_interface,
&apos;Pending Shop Floor Move Transactions&apos; report_title,
&apos;3&apos; priority_code,
&apos;ID&apos; lvl,
wmti.organization_id,
to_number(null) operating_unit_id,
to_number(null) ledger_id,
to_number(null) acct_period_id,
nvl(wmti.transaction_date,sysdate) txn_date,
(select xxen_util.meaning(&apos;3&apos;,&apos;INV_SRS_REG_BREAK&apos;,700) from dual) column_type,
xxen_util.meaning(to_char(wmti.transaction_type),&apos;WIP_MOVE_TRANSACTION_TYPE&apos;,700) column_info,
xxen_util.meaning(to_char(wmti.process_status),&apos;WIP_PROCESS_STATUS&apos;,700) status_code,
wtie.error_message message,
&apos;Rows in the WIP_MOVE_TXN_INTERFACE table&apos; interface_description
from
wip_move_txn_interface wmti,
wip_txn_interface_errors wtie
where
wmti.transaction_id=wtie.transaction_id(+)
union all
select
17 section,
&apos;WSM&apos; fav_app,
&apos;WSM&apos; fpi_app,
null area,
&apos;WSM_Split_Merge_Txn_Interface&apos; report_interface,
&apos;Pending WIP WSM Split Merge Transactions&apos; report_title,
&apos;2&apos; priority_code,
&apos;ID&apos; lvl,
wsmti.organization_id,
to_number(null) operating_unit_id,
to_number(null) ledger_id,
to_number(null) acct_period_id,
nvl(wsmti.transaction_date,sysdate) txn_date,
(select xxen_util.meaning(&apos;3&apos;,&apos;INV_SRS_REG_BREAK&apos;,700) from dual) column_type,
xxen_util.meaning(to_char(wsmti.transaction_type_id),&apos;WSM_WIP_LOT_TXN_TYPE&apos;,700) column_info,
xxen_util.meaning(wsmti.process_status,&apos;WIP_PROCESS_STATUS&apos;,700) status_code,
wsmti.error_message message,
&apos;Rows in the WSM_SPLIT_MERGE_TXN_INTERFACE table&apos; interface_description
from
wsm_split_merge_txn_interface wsmti
where
wsmti.process_status&lt;&gt;4
union all
select
18 section,
&apos;WSM&apos; fav_app,
&apos;WSM&apos; fpi_app,
null area,
&apos;WSM_Lot_Split_Merges_Interface&apos; report_interface,
&apos;Pending WIP WSM Lot Split Merge Transactions&apos; report_title,
&apos;2&apos; priority_code,
&apos;ID&apos; lvl,
wlsmi.organization_id,
to_number(null) operating_unit_id,
to_number(null) ledger_id,
to_number(null) acct_period_id,
nvl(wlsmi.transaction_date,sysdate) txn_date,
(select xxen_util.meaning(&apos;3&apos;,&apos;INV_SRS_REG_BREAK&apos;,700) from dual) column_type,
xxen_util.meaning(to_char(wlsmi.transaction_type_id),&apos;WSM_WIP_LOT_TXN_TYPE&apos;,700) column_info,
xxen_util.meaning(wlsmi.process_status,&apos;WIP_PROCESS_STATUS&apos;,700) status_code,
wlsmi.error_message message,
&apos;Rows in the WSM_LOT_SPLIT_MERGES_INTERFACE table&apos; interface_description
from
wsm_lot_split_merges_interface wlsmi
where
wlsmi.process_status&lt;&gt;4
union all
select
19 section,
&apos;CST&apos; fav_app,
&apos;WIP&apos; fpi_app,
null area,
&apos;WIP_Cost_Txn_Interface&apos; report_interface,
&apos;Pending WIP Transactions&apos; report_title,
&apos;2&apos; priority_code,
&apos;IA&apos; lvl,
wcti.organization_id,
to_number(null) operating_unit_id,
to_number(null) ledger_id,
wcti.acct_period_id,
nvl(wcti.transaction_date,sysdate) txn_date,
(select xxen_util.meaning(&apos;3&apos;,&apos;INV_SRS_REG_BREAK&apos;,700) from dual) column_type,
xxen_util.meaning(to_char(wcti.transaction_type),&apos;WIP_TRANSACTION_TYPE&apos;,700) column_info,
xxen_util.meaning(wcti.process_status,&apos;WIP_PROCESS_STATUS&apos;,700) status_code,
wtie.error_message message,
&apos;Rows in the WIP_COST_TXN_INTERFACE table&apos; interface_description
from
wip_cost_txn_interface wcti,
wip_txn_interface_errors wtie
where
wcti.organization_id not in (select mp.organization_id from mtl_parameters mp where mp.process_enabled_flag=&apos;Y&apos;) and
wcti.transaction_id=wtie.transaction_id(+)
union all
select
20 section,
&apos;PA&apos; fav_app,
&apos;PA&apos; fpi_app,
null area,
&apos;PA_Transaction_Interface_All&apos; report_interface,
&apos;Pending Project Transactions&apos; report_title,
&apos;3&apos; priority_code,
&apos;O&apos; lvl,
to_number(null) organization_id,
ptia.org_id operating_unit_id,
to_number(null) ledger_id,
to_number(null) acct_period_id,
ptia.expenditure_item_date txn_date,
(select xxen_util.meaning(&apos;TRX&apos;,&apos;FC_VIEW_BY&apos;,260) from dual) column_type,
ptia.transaction_source column_info,
ptia.transaction_status_code status_code,
xxen_util.meaning(ptia.transaction_rejection_code,&apos;TRANSACTION REJECTION REASON&apos;,275) message,
&apos;Rows in the PA_Transaction_Interface_All table&apos; interface_description
from
pa_transaction_interface_all ptia
where
ptia.transaction_status_code&lt;&gt;&apos;P&apos;
union all
select
21 section,
&apos;PO&apos; fav_app,
&apos;PO&apos; fpi_app,
null area,
&apos;PO_Requisitions_Interface_All&apos; report_interface,
&apos;Number of PO Requisitions&apos; report_title,
&apos;3&apos; priority_code,
&apos;O&apos; lvl,
pria.destination_organization_id organization_id,
pria.org_id operating_unit_id,
to_number(null) ledger_id,
to_number(null) acct_period_id,
nvl(pria.need_by_date,pria.creation_date) txn_date,
&apos;Interface Source&apos; column_type,
pria.interface_source_code column_info,
pria.process_flag status_code,
pie.error_message message,
&apos;Rows in the PO_REQUISITIONS_INTERFACE_ALL table&apos; interface_description
from
po_requisitions_interface_all pria,
po_interface_errors pie
where
pria.transaction_id=pie.interface_transaction_id(+) and
pie.table_name(+)=&apos;PO_REQUISITIONS_INTERFACE&apos;
union all
select
decode(k.destination_type,&apos;EXPENSE&apos;,nvl2(rti.to_organization_id,22,23),24) section,
&apos;PO&apos; fav_app,
&apos;PO&apos; fpi_app,
(select xxen_util.meaning(&apos;RECEIVING&apos;,&apos;RCV DESTINATION TYPE&apos;,201) from dual) area,
&apos;RCV_Transactions_Interface&apos; report_interface,
decode(k.destination_type,&apos;EXPENSE&apos;,&apos;Pending Expense Receiving Transactions&apos;,&apos;Pending Inventory and OSP Receiving Transactions&apos;) report_title,
&apos;3&apos; priority_code,
nvl2(rti.to_organization_id,&apos;ID&apos;,&apos;O&apos;) lvl,
rti.to_organization_id organization_id,
rti.org_id operating_unit_id,
to_number(null) ledger_id,
to_number(null) acct_period_id,
rti.transaction_date txn_date,
(select xxen_util.meaning(&apos;3&apos;,&apos;INV_SRS_REG_BREAK&apos;,700) from dual) column_type,
rti.transaction_type column_info,
rti.processing_status_code status_code,
rti.transaction_status_code message,
&apos;Rows in the RCV_TRANSACTIONS_INTERFACE table&apos; interface_description
from
rcv_transactions_interface rti,
(select &apos;EXPENSE&apos; destination_type from dual union all select &apos;INVENTORY&apos; from dual) k
where
(k.destination_type=&apos;EXPENSE&apos; or rti.to_organization_id is not null) and
(
decode(rti.destination_type_code,&apos;SHOP FLOOR&apos;,&apos;INVENTORY&apos;,rti.destination_type_code)=k.destination_type or
nvl(rti.destination_type_code,&apos;NONE&apos;) not in (&apos;EXPENSE&apos;,&apos;INVENTORY&apos;,&apos;SHOP FLOOR&apos;) and
(
rti.po_distribution_id in (select pda.po_distribution_id from po_distributions_all pda where decode(pda.destination_type_code,&apos;SHOP FLOOR&apos;,&apos;INVENTORY&apos;,pda.destination_type_code)=k.destination_type) or
rti.po_distribution_id is null and rti.po_line_id in (select pda.po_line_id from po_distributions_all pda where decode(pda.destination_type_code,&apos;SHOP FLOOR&apos;,&apos;INVENTORY&apos;,pda.destination_type_code)=k.destination_type) or
rti.po_header_id is null and (rti.document_num,rti.document_line_num) in (select pha.segment1,pla.line_num from po_headers_all pha, po_lines_all pla, po_distributions_all pda where pha.po_header_id=pla.po_header_id and pla.po_line_id=pda.po_line_id and decode(pda.destination_type_code,&apos;SHOP FLOOR&apos;,&apos;INVENTORY&apos;,pda.destination_type_code)=k.destination_type)
)
)
union all
select
25 section,
&apos;INV&apos; fav_app,
&apos;INV&apos; fpi_app,
null area,
&apos;WSH_Delivery_Details&apos; report_interface,
&apos;Unprocessed Sales Order Shipping Transactions&apos; report_title,
&apos;2&apos; priority_code,
&apos;ID&apos; lvl,
wnd.organization_id,
to_number(null) operating_unit_id,
to_number(null) ledger_id,
to_number(null) acct_period_id,
nvl(wts.actual_departure_date,sysdate) txn_date,
(select xxen_util.meaning(&apos;MSCX_CUST_SHIP_DATE&apos;,&apos;MSC_PQ_CP_EXCP&apos;,0) from dual) column_type,
to_char(wts.actual_departure_date,&apos;YYYY-MM-DD&apos;) column_info,
decode(wdd.inv_interfaced_flag,&apos;P&apos;,&apos;P - Delivery is pending interface to Inventory&apos;,&apos;N&apos;,&apos;N - Delivery not interfaced to Inventory&apos;) status_code,
wev.message,
&apos;Rows in the WSH_DELIVERY_DETAILS table&apos; interface_description
from
wsh_delivery_details wdd,
wsh_delivery_assignments wda,
wsh_new_deliveries wnd,
wsh_delivery_legs wdl,
wsh_trip_stops wts,
wsh_exceptions_v wev
where
wdd.source_code=&apos;OE&apos; and
wdd.released_status=&apos;C&apos; and
wdd.inv_interfaced_flag in (&apos;N&apos;,&apos;P&apos;) and
wdd.delivery_detail_id=wda.delivery_detail_id and
wda.delivery_id=wnd.delivery_id and
wnd.status_code in (&apos;CL&apos;,&apos;IT&apos;) and
wnd.delivery_id=wdl.delivery_id and
wdl.pick_up_stop_id=wts.stop_id and
wts.pending_interface_flag in (&apos;Y&apos;,&apos;P&apos;) and
wts.stop_id=wev.trip_stop_id(+)
union all
select
decode(prla.destination_type_code,&apos;EXPENSE&apos;,26,27) section,
&apos;INV&apos; fav_app,
&apos;INV&apos; fpi_app,
null area,
&apos;WSH_Delivery_Details&apos; report_interface,
decode(prla.destination_type_code,&apos;EXPENSE&apos;,&apos;Unprocessed Expense Requisition Shipping Transactions&apos;,&apos;Unprocessed Inventory Requisition Shipping Transactions&apos;) report_title,
&apos;2&apos; priority_code,
&apos;ID&apos; lvl,
prla.destination_organization_id organization_id,
to_number(null) operating_unit_id,
to_number(null) ledger_id,
to_number(null) acct_period_id,
nvl(wts.actual_departure_date,sysdate) txn_date,
(select xxen_util.meaning(&apos;MSCX_CUST_SHIP_DATE&apos;,&apos;MSC_PQ_CP_EXCP&apos;,0) from dual) column_type,
to_char(wts.actual_departure_date,&apos;YYYY-MM-DD&apos;) column_info,
decode(wdd.inv_interfaced_flag,&apos;P&apos;,&apos;P - Delivery is pending interface to Inventory&apos;,&apos;N&apos;,&apos;N - Delivery not interfaced to Inventory&apos;) status_code,
wev.message,
&apos;Rows in the WSH_DELIVERY_DETAILS table&apos; interface_description
from
wsh_delivery_details wdd,
wsh_delivery_assignments wda,
wsh_new_deliveries wnd,
wsh_delivery_legs wdl,
wsh_trip_stops wts,
wsh_exceptions_v wev,
oe_order_lines_all oola,
po_requisition_lines_all prla
where
wdd.source_code=&apos;OE&apos; and
wdd.released_status=&apos;C&apos; and
wdd.inv_interfaced_flag in (&apos;N&apos;,&apos;P&apos;) and
wdd.delivery_detail_id=wda.delivery_detail_id and
wda.delivery_id=wnd.delivery_id and
wnd.status_code in (&apos;CL&apos;,&apos;IT&apos;) and
wnd.delivery_id=wdl.delivery_id and
wdl.pick_up_stop_id=wts.stop_id and
wts.pending_interface_flag in (&apos;Y&apos;,&apos;P&apos;) and
wts.stop_id=wev.trip_stop_id(+) and
wdd.source_document_type_id=10 and
wts.stop_location_id=wnd.initial_pickup_location_id and
wdd.source_line_id=oola.line_id and
oola.source_document_line_id=prla.requisition_line_id and
prla.destination_organization_id&lt;&gt;prla.source_organization_id and
(prla.destination_type_code=&apos;EXPENSE&apos; or (prla.source_organization_id,prla.destination_organization_id) in (select mip.from_organization_id,mip.to_organization_id from mtl_interorg_parameters mip where mip.intransit_type=1))
) x
),
r as (
select
t.id,
gp.period_year,
gp.period_num period_number,
gp.period_name,
o.ledger,
o.operating_unit,
o.operating_unit_id,
o.organization_code org_code,
o.organization_id inv_organization_id
from
t,
o,
org_acct_periods oap,
gl_periods gp
where
4=4 and
6=6 and
t.lvl=&apos;IA&apos; and
t.organization_id=o.organization_id and
t.acct_period_id=oap.acct_period_id and
oap.period_set_name=gp.period_set_name and
oap.period_name=gp.period_name and
o.accounted_period_type=gp.period_type and
gp.adjustment_period_flag=&apos;N&apos;
union all
select
x.id,
gp.period_year,
gp.period_num period_number,
gp.period_name,
x.ledger,
x.operating_unit,
x.operating_unit_id,
x.organization_code org_code,
x.organization_id inv_organization_id
from
(
select
t.id,
o.*,
trunc(inv_le_timezone_pub.get_le_day_for_server(t.txn_date,o.legal_entity_id)) le_day
from
t,
o
where
t.lvl=&apos;ID&apos; and
t.organization_id=o.organization_id
) x,
gl_periods gp
where
4=4 and
6=6 and
x.period_set_name=gp.period_set_name and
x.accounted_period_type=gp.period_type and
gp.adjustment_period_flag=&apos;N&apos; and
x.le_day between gp.start_date and gp.end_date
union all
select
t.id,
gp.period_year,
gp.period_num period_number,
gp.period_name,
u.ledger,
u.operating_unit,
u.operating_unit_id,
mp.organization_code org_code,
mp.organization_id inv_organization_id
from
t,
u,
mtl_parameters mp,
gl_periods gp
where
2=2 and
4=4 and
6=6 and
t.lvl=&apos;O&apos; and
t.operating_unit_id=u.operating_unit_id and
nvl(t.organization_id,u.inventory_organization_id)=mp.organization_id(+) and
u.period_set_name=gp.period_set_name and
u.accounted_period_type=gp.period_type and
gp.adjustment_period_flag=&apos;N&apos; and
trunc(t.txn_date) between gp.start_date and gp.end_date
union all
select
t.id,
gp.period_year,
gp.period_num period_number,
gp.period_name,
nvl(gl.short_name,gl.name) ledger,
null operating_unit,
to_number(null) operating_unit_id,
null org_code,
to_number(null) inv_organization_id
from
t,
gl_ledgers gl,
gl_periods gp
where
1=1 and
4=4 and
6=6 and
t.lvl=&apos;G&apos; and
t.ledger_id=gl.ledger_id and
gl.period_set_name=gp.period_set_name and
gl.accounted_period_type=gp.period_type and
gp.adjustment_period_flag=&apos;N&apos; and
trunc(t.txn_date) between gp.start_date and gp.end_date
union all
select
t.id,
extract(year from t.txn_date) period_year,
to_number(null) period_number,
to_char(t.txn_date,&apos;MON-YY&apos;) period_name,
null ledger,
null operating_unit,
to_number(null) operating_unit_id,
null org_code,
to_number(null) inv_organization_id
from
t
where
7=7 and
t.lvl=&apos;N&apos;
)
select
nvl(t.area,fav.application_name) functional_area,
t.report_interface,
t.report_title,
xxen_util.meaning(t.priority_code,&apos;CST_SRS_RESOLUTION_TYPES&apos;,700) priority,
count(*) count,
r.period_year,
r.period_number,
r.period_name,
r.ledger,
r.operating_unit,
r.operating_unit_id,
r.org_code,
r.inv_organization_id,
t.column_type,
t.column_info,
t.status_code,
t.message reject_code_or_error_message,
t.interface_description
from
t,
r,
fnd_application_vl fav
where
5=5 and
t.id=r.id and
t.fav_app=fav.application_short_name and
t.fpi_app in (select fa.application_short_name from fnd_application fa, fnd_product_installations fpi where fa.application_id=fpi.application_id and fpi.status&lt;&gt;&apos;N&apos;)
group by
t.section,
nvl(t.area,fav.application_name),
t.report_interface,
t.report_title,
t.priority_code,
r.period_year,
r.period_number,
r.period_name,
r.ledger,
r.operating_unit,
r.operating_unit_id,
r.org_code,
r.inv_organization_id,
t.column_type,
t.column_info,
t.status_code,
t.message,
t.interface_description
order by
functional_area,
report_interface,
report_title,
priority,
period_year,
period_number,
period_name,
ledger,
operating_unit,
operating_unit_id</SQL_TEXT>
  <VERSION_COMMENTS>Rebuilt to the Blitz Report SQL standards: one aggregation over the rows of all interfaces instead of 27 grouped queries. Uncosted material transactions include errored transactions and inter-organization transfers (the organization was taken from the transfer organization, whose accounting period never matched), shipping transactions of internal requisitions are listed (the organization had to be the destination and the shipping organization at once), RA invoice errors are listed (the customer join used hz_cust_accounts.org_id, which is empty in R12), AP rejections of invoices without a supplier and LCM interface rows without errors are no longer missing, the WIP cost interface shows its error message instead of Not Available, PO requisitions are no longer dropped when the destination organization is disabled, the legal entity time zone is applied to the transaction date instead of the period dates, so transactions on the first day of a period are no longer missing, Cash Management rows are counted per bank instead of once per bank account under the same bank name. Setup report without organization security.</VERSION_COMMENTS>
  <REQUIRED_PARAMETERS>(:Functional_Area is not null or :Period_Year is not null or :Period_Name is not null or :Organization_Code is not null or :Operating_Unit is not null
or :Ledger is not null)</REQUIRED_PARAMETERS>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>CAC Interface Error Summary</REPORT_NAME>
    <DESCRIPTION>Use this report to view your transactions that are pending or have errors in the Oracle interface tables.  Across both Financial and Supply Chain Applications.  This includes interfaces that would prevent closing the inventory accounting period, as suggested by the report titles, Resolution Required and Resolution Recommended.  Similar to the Inventory Account Periods Close form (checking open receipts, pending shipments, failed inventory, WIP, etc.).

Notes:
1)  Supply Chain queries check for the period close timezone of the legal entity, just like the Inventory Account Periods Close form and the Blitz INV Period Close Pending Transactions report.  Period count queries sourced from procedure CST_AccountingPeriod_PUB.Get_PendingTcount (CSTPAPEB.pls 120.18.12020000.8)
2)  The Financial interfaces all show a priority of &quot;Resolution Recommended&quot;, as having entries in these interface tables do not prevent you from closing your books.  However, just like Supply Chain, best practice would be to process all unprocessed and/or erred out entries in these interfaces, before closing the accounting period.

Specific Functional Areas and Interface Reports include:

Accounts Payables
   AP_Invoices_Interface
   AP_Invoice_Lines_Interface

Accounts Receivables
   RA_Interface_Lines_All
   RA_Interface_Errors_All

Cash Management
   CE_Header_Interface_Errors

Cost Management
   Uncosted Material - MTL_Material_Transactions
   Uncosted - WSM_Split_Merge_Transactions
   Pending WIP Costing - WIP_Cost_Txn_Interface Report

General Ledger
   GL_Interface

Inventory
   Unprocessed Material - MTL_Material_Transactions_Temp
   Unprocessed Locked Material - MTL_Material_Transactions_Temp
   Pending Material - MTL_Transactions_Interface

Oracle Landed Cost Management
   Pending Landed Cost Management (INL) Interface - CST_Lc_Adj_Interface Interface

Project
   PA_Transaction_Interface_All

Purchasing
   PO_Requisitions_Interface_All

Purchasing (showing Receiving as the reported Functional Area)
   Pending Expense Receiving - RCV_Transactions_Interface
   Pending Inventory and OSP Receiving - RCV_Transactions_Interface
   Pending Intransit Receiving - RCV_Transactions_Interface
   Pending RMA Receiving - RCV_Transactions_Interface

Shipping
   Shipping - WSH_Delivery_Details

Warehouse Management System (WSM)
   Pending WSM Interface Transactions - WSM_Split_Merge_Txn_Interface
   Pending WSM Lot Interface Transactions - WSM_Lot_Split_Merges_Interface

Work in Process (Manufacturing)
   Pending Shop Floor Move Transactions - WIP_Move_Txn_Interface

-- |  Version Modified  Modified  by   Description
-- | ======== ========= =============== ================================================
-- |     1.0  1995      Initial Design  Originally based on sql from a project in 1995.
-- |     1.1  31-Jan-08 Douglas Volz    Added Operating Unit column to summary queries.
-- |     1.42 15-Jul-25 Douglas Volz    For Uncosted Transactions, checked for Process MFG
-- |                                    and added Ledger Security Controls for GL_Interface.
-- |     1.43 19-Jul-25 Douglas Volz    Changed LCM query to use the LCM short name &apos;INL&apos; instead of &apos;CST&apos;.
-- |     1.44 24-Aug-25 Douglas Volz    Changed Pending Material from Resolution Required to Recommended.
-- |  1.45    24 Oct 2026 Andy Haack    Rebuilt to the Blitz Report SQL standards.
-- +=============================================================================+*/</DESCRIPTION>
    <REQUIRED_PARAMETERS_MESSAGE>Please specify at least one or more of the following: Functional Area, Period Year, Period Name, Organization Code, Operating Unit, or Ledger.

Hint:  to show all interface entries for a given year or accounting period, across all Organizations, Operating Units or Ledgers, enter the desired Period Year or Period Name to report.</REQUIRED_PARAMETERS_MESSAGE>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enginatics</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>R12 only</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>2=2</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>3=3</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>4=4</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>5=5</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>6=6</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>7=7</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>5=5</ANCHOR>
    <SQL_TEXT>fav.application_name=:p_application_name</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>CST Functional Area for Interfaces</LOV_NAME>
    <LOV_GUID>394A747A39CE17F6E0630100007F0ADD</LOV_GUID>
    <LOV_QUERY_DSP>select
fav.application_name value, 
fav.application_short_name description
from
fnd_application_vl fav,
fnd_product_installations fpi
where
fav.application_short_name in (&apos;SQLAP&apos;, &apos;AR&apos;, &apos;CE&apos;,&apos;SQLGL&apos;, &apos;INL&apos;, &apos;INV&apos;, &apos;PA&apos;, &apos;PO&apos;, &apos;WIP&apos;, &apos;WSM&apos;)
and fav.application_id = fpi.application_id
and fpi.status &lt;&gt; &apos;N&apos;
union all
-- Cost Management (707) is never installed
select
fav.application_name value, 
fav.application_short_name description
from
fnd_application_vl fav,
fnd_product_installations fpi
where
fav.application_short_name = &apos;CST&apos;
-- And Inventory (401) is installed 
and (fpi.status &lt;&gt; &apos;N&apos; and fpi.application_id = 401)
order by 1</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Functional Area</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>15</DISPLAY_SEQUENCE>
    <ANCHOR>6=6</ANCHOR>
    <SQL_TEXT>gp.period_year=:p_period_year</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>CST Period Year</LOV_NAME>
    <LOV_GUID>39EAA21EACB45EFCE0630100007F8189</LOV_GUID>
    <LOV_QUERY_DSP>select gp.period_year value,
null description
from gl_periods gp
where gp.start_date &lt;=sysdate
and gp.period_year &lt;= extract(year from sysdate)
group by gp.period_year, null
order by gp.period_year desc</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select 
max(gp.period_year)
from
gl_periods gp
</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Period Year</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <ANCHOR>7=7</ANCHOR>
    <SQL_TEXT>extract(year from t.txn_date)=:p_period_year</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Period Year</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>4=4</ANCHOR>
    <SQL_TEXT>gp.period_name=:p_period_name</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>INV Period</LOV_NAME>
    <LOV_GUID>8E2FF36EDF2279D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select distinct
oap.period_name value,
max(oap.period_year||&apos;-&apos;||oap.period_num||&apos;, &apos;||xxen_util.meaning(nvl2(oap.period_close_date,decode(oap.open_flag,&apos;P&apos;,2,&apos;N&apos;,decode(oap.summarized_flag,&apos;N&apos;,65,66),4),3),&apos;MTL_ACCT_PERIOD_STATUS&apos;,700)||&apos; (&apos;||oap.period_start_date||&apos; - &apos;||oap.schedule_close_date||&apos;)&apos;) over (partition by oap.period_name) description,
max(oap.period_start_date) over (partition by oap.period_name) period_start_date,
max(oap.effective_period_num) over (partition by oap.period_name) effective_period_num
from
gl_ledgers gl,
org_organization_definitions ood,
mtl_parameters mp,
(select oap.period_year*10000+oap.period_num effective_period_num, oap.* from org_acct_periods oap) oap
where
oap.period_start_date&lt;=sysdate and
(:$flex$.ledger is null or xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;) and
(:$flex$.organization_code is null or xxen_util.contains(:$flex$.organization_code,ood.organization_code)=&apos;Y&apos;) and
ood.organization_id=mp.organization_id and
mp.organization_id&lt;&gt;mp.master_organization_id and 
gl.period_set_name=oap.period_set_name and
gl.ledger_id=ood.set_of_books_id and
ood.organization_id=oap.organization_id
order by
period_start_date desc,
effective_period_num desc,
oap.period_name</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select distinct oap.period_name value
from org_acct_periods oap,
 (select max(oap.schedule_close_date) default_date
  from org_acct_periods oap,
  org_organization_definitions ood
  where ood.organization_id = oap.organization_id
  and nvl(ood.disable_date, sysdate + 1) &gt; sysdate) max
where oap.schedule_close_date = max.default_date
and rownum = 1
</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Period Name</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>mp.organization_code=:p_org_code</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>INV Organization Code (all)</LOV_NAME>
    <LOV_GUID>8E2FF36EDEA279D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select
ood.organization_code value,
ood.organization_name||&apos; (&apos;||ftv.territory_short_name||&apos;, &apos;||hla.town_or_city||decode(mp.organization_id,mp.master_organization_id,null,&apos;, &apos;||mp0.organization_code)||&apos;)&apos; description
from
org_organization_definitions ood,
mtl_parameters mp,
mtl_parameters mp0,
hr_all_organization_units haou,
hr_locations_all hla,
fnd_territories_vl ftv
where
ood.organization_id=mp.organization_id and
(:$flex$.operating_unit is null or ood.operating_unit in (select haouv.organization_id from hr_all_organization_units_vl haouv where xxen_util.contains(:$flex$.operating_unit,haouv.name)=&apos;Y&apos;)) and
(:$flex$.ledger is null or ood.set_of_books_id in (select gl.ledger_id from gl_ledgers gl where xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;)) and
nvl(ood.disable_date,sysdate)&gt;=sysdate and
mp.master_organization_id=mp0.organization_id and
ood.organization_id=haou.organization_id(+) and
haou.location_id=hla.location_id(+) and
hla.country=ftv.territory_code(+)
order by
ood.organization_code</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select mp.organization_code from mtl_parameters mp where mp.organization_id=fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Organization Code</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>6</SORT_ORDER>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <ANCHOR>3=3</ANCHOR>
    <SQL_TEXT>haouv_ou.name=:p_operating_unit</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>HR Operating Unit (all)</LOV_NAME>
    <LOV_GUID>8E2FF36EDE8879D2E0530100007F1FF2</LOV_GUID>
    <LOV_QUERY_DSP>select
hou.name value,
null description
from
hr_operating_units hou
where
sysdate between hou.date_from and nvl(hou.date_to,sysdate) and
(:$flex$.ledger is null or hou.set_of_books_id in (select gl.ledger_id from gl_ledgers gl where xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;))
order by
hou.name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Operating Unit</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>7</SORT_ORDER>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gl.name=:p_ledger</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Ledger (all)</LOV_NAME>
    <LOV_GUID>A95C471001B20DD1E0530100007FBF83</LOV_GUID>
    <LOV_QUERY_DSP>select
gl.name value,
fifsv.id_flex_structure_name||&apos;: &apos;||decode(gl.ledger_category_code,&apos;NONE&apos;,xxen_util.meaning(gl.object_type_code,&apos;LEDGERS&apos;,101),xxen_util.meaning(gl.ledger_category_code,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101))||&apos;: &apos;||gl.description description
from
gl_ledgers gl,
fnd_id_flex_structures_vl fifsv
where
(:$flex$.chart_of_accounts is null or xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos;) and
(:$flex$.ledger_category is null or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;)) and
gl.object_type_code=&apos;L&apos; and
gl.chart_of_accounts_id=fifsv.id_flex_num and
fifsv.id_flex_code=&apos;GL#&apos; and
fifsv.application_id=101
order by
fifsv.id_flex_structure_name,
decode(gl.ledger_category_code,&apos;NONE&apos;,1,&apos;PRIMARY&apos;,2,&apos;SECONDARY&apos;,3,&apos;ALC&apos;,4),
gl.name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Ledger</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <TEMPLATES>
   <TEMPLATES_ROW>
    <GUID>95A0504ED4432984F5B14F4F4928DB2B</GUID>
    <TEMPLATE_NAME>Pivot by Functional Area</TEMPLATE_NAME>
    <OWNER>MFG</OWNER>
    <TEMPLATE_COLUMNS>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>15</DISPLAY_SEQUENCE>
      <COLUMN_NAME>COLUMN_INFO</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>14</DISPLAY_SEQUENCE>
      <COLUMN_NAME>COLUMN_TYPE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>5</DISPLAY_SEQUENCE>
      <COLUMN_NAME>COUNT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>1</DISPLAY_SEQUENCE>
      <COLUMN_NAME>FUNCTIONAL_AREA</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>18</DISPLAY_SEQUENCE>
      <COLUMN_NAME>INTERFACE_DESCRIPTION</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>13</DISPLAY_SEQUENCE>
      <COLUMN_NAME>INV_ORGANIZATION_ID</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>9</DISPLAY_SEQUENCE>
      <COLUMN_NAME>LEDGER</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
      <COLUMN_NAME>OPERATING_UNIT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>11</DISPLAY_SEQUENCE>
      <COLUMN_NAME>OPERATING_UNIT_ID</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>12</DISPLAY_SEQUENCE>
      <COLUMN_NAME>ORG_CODE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>8</DISPLAY_SEQUENCE>
      <COLUMN_NAME>PERIOD_NAME</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>7</DISPLAY_SEQUENCE>
      <COLUMN_NAME>PERIOD_NUMBER</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>6</DISPLAY_SEQUENCE>
      <COLUMN_NAME>PERIOD_YEAR</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>4</DISPLAY_SEQUENCE>
      <COLUMN_NAME>PRIORITY</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>17</DISPLAY_SEQUENCE>
      <COLUMN_NAME>REJECT_CODE_OR_ERROR_MESSAGE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>2</DISPLAY_SEQUENCE>
      <COLUMN_NAME>REPORT_INTERFACE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>3</DISPLAY_SEQUENCE>
      <COLUMN_NAME>REPORT_TITLE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>16</DISPLAY_SEQUENCE>
      <COLUMN_NAME>STATUS_CODE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
    </TEMPLATE_COLUMNS>
    <TEMPLATE_PIVOT>
     <TEMPLATE_PIVOT_ROW>
      <COLUMN_NAME>COUNT</COLUMN_NAME>
      <FIELD_TYPE>VALUE</FIELD_TYPE>
      <DISPLAY_SEQUENCE>1</DISPLAY_SEQUENCE>
      <AGGREGATION>SUM</AGGREGATION>
     </TEMPLATE_PIVOT_ROW>
     <TEMPLATE_PIVOT_ROW>
      <COLUMN_NAME>FUNCTIONAL_AREA</COLUMN_NAME>
      <FIELD_TYPE>ROW</FIELD_TYPE>
      <DISPLAY_SEQUENCE>2</DISPLAY_SEQUENCE>
     </TEMPLATE_PIVOT_ROW>
     <TEMPLATE_PIVOT_ROW>
      <COLUMN_NAME>PRIORITY</COLUMN_NAME>
      <FIELD_TYPE>ROW</FIELD_TYPE>
      <DISPLAY_SEQUENCE>1</DISPLAY_SEQUENCE>
     </TEMPLATE_PIVOT_ROW>
    </TEMPLATE_PIVOT>
    <TEMPLATE_SHARED_STRINGS>
    </TEMPLATE_SHARED_STRINGS>
    <TEMPLATE_PARAMETER_DEFAULTS>
    </TEMPLATE_PARAMETER_DEFAULTS>
    <TEMPLATE_STYLES>
    </TEMPLATE_STYLES>
    <TEMPLATE_SHARING>
     <TEMPLATE_SHARING_ROW>
      <SHARING_LEVEL>S</SHARING_LEVEL>
      <LEVEL_VALUE>Site</LEVEL_VALUE>
     </TEMPLATE_SHARING_ROW>
    </TEMPLATE_SHARING>
    <PARAMETER_EXCLUSION>
    </PARAMETER_EXCLUSION>
    <TEMPLATE_CONDITIONS>
    </TEMPLATE_CONDITIONS>
   </TEMPLATES_ROW>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
   <DEFAULT_TEMPLATES_ROW>
    <TEMPLATE_GUID>95A0504ED4432984F5B14F4F4928DB2B</TEMPLATE_GUID>
   </DEFAULT_TEMPLATES_ROW>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
