DBA Data[Home] [Help]

APPS.ARP_XLA_UPGRADE dependencies on XLA_AE_HEADERS

Line 110: INTO XLA_AE_HEADERS

106: 'Y', --upgrade flag
107: trx_date
108: )
109: WHEN PST_ID <> -3 THEN
110: INTO XLA_AE_HEADERS
111: (upg_batch_id,
112: upg_source_application_id,
113: application_id,
114: amb_context_code,

Line 164: xla_ae_headers_s.nextval,

160: 'DEFAULT', --amb context code
161: entity_id,
162: xla_events_s.nextval,
163: override_event,
164: xla_ae_headers_s.nextval,
165: sob_id,
166: gl_date,
167: period_name,
168: '', --reference date global acct eng

Line 655: (select /*+ ordered rowid(ct) use_nl(ctlgd,ent,ev,hdr,ctl) use_hash(gps) swap_join_inputs(gps) INDEX(ent xla_transaction_entities_N1) INDEX(ev XLA_EVENTS_U2) INDEX(hdr XLA_AE_HEADERS_N2) */

651: ledger_id AS ledger_id,
652: RANK() OVER (PARTITION BY event_id, ae_header_id
653: ORDER BY line_id, ln_order) AS line_num
654: FROM
655: (select /*+ ordered rowid(ct) use_nl(ctlgd,ent,ev,hdr,ctl) use_hash(gps) swap_join_inputs(gps) INDEX(ent xla_transaction_entities_N1) INDEX(ev XLA_EVENTS_U2) INDEX(hdr XLA_AE_HEADERS_N2) */
656: hdr.ae_header_id ae_header_id,
657: decode(account_class, 'REC', 'RECEIVABLE',
658: 'REV', 'REVENUE',
659: 'UNEARN', 'UNEARNED_REVENUE',

Line 729: xla_ae_headers hdr,

725: ra_cust_trx_line_gl_dist_all ctlgd,
726: xla_upgrade_dates gps,
727: xla_transaction_entities_upg ent,
728: xla_events ev,
729: xla_ae_headers hdr,
730: ra_customer_trx_lines_all ctl
731: where ct.rowid >= l_start_rowid
732: and ct.rowid <= l_end_rowid
733: and NVL(ct.ax_accounted_flag,'N') = 'N'

Line 752: select /*+ ordered rowid(ct) use_nl(app,ent,ev,hdr,ard) use_hash(gps) swap_join_inputs(gps) INDEX(ent xla_transaction_entities_N1) INDEX(ev XLA_EVENTS_U2) INDEX(hdr XLA_AE_HEADERS_N2) */

748: and hdr.event_id = ev.event_id
749: and ct.set_of_books_id = hdr.ledger_id
750: and ctlgd.customer_trx_line_id = ctl.customer_trx_line_id (+)
751: UNION ALL /* CM applications */
752: select /*+ ordered rowid(ct) use_nl(app,ent,ev,hdr,ard) use_hash(gps) swap_join_inputs(gps) INDEX(ent xla_transaction_entities_N1) INDEX(ev XLA_EVENTS_U2) INDEX(hdr XLA_AE_HEADERS_N2) */
753: hdr.ae_header_id ae_header_id,
754: DECODE(ard.source_type, 'REC','RECEIVABLE',
755: ard.source_type) account_class,
756: 'AR_DISTRIBUTIONS_ALL' source_table,

Line 785: xla_ae_headers hdr,

781: ar_receivable_applications_all app,
782: xla_upgrade_dates gps,
783: xla_transaction_entities_upg ent,
784: xla_events ev,
785: xla_ae_headers hdr,
786: ar_distributions_all ard
787: where ct.rowid >= l_start_rowid
788: and ct.rowid <= l_end_rowid
789: and NVL(ct.ax_accounted_flag,'N') = 'N'

Line 946: INTO XLA_AE_HEADERS

942: 'Y', --upgrade flag
943: trx_date
944: )
945: WHEN PST_ID <> -3 THEN
946: INTO XLA_AE_HEADERS
947: (upg_batch_id,
948: upg_source_application_id,
949: application_id,
950: amb_context_code,

Line 1000: xla_ae_headers_s.nextval,

996: 'DEFAULT', --amb context code
997: entity_id,
998: xla_events_s.nextval,
999: override_event,
1000: xla_ae_headers_s.nextval,
1001: sob_id,
1002: gl_date,
1003: period_name,
1004: '', --reference date global acct eng

Line 1405: ( select /*+ ordered rowid(ct) use_nl(trh,ent,ev,hdr,ard) use_hash(gps) swap_join_inputs(gps) INDEX(ent xla_transaction_entities_N1) INDEX(ev XLA_EVENTS_U2) INDEX(hdr XLA_AE_HEADERS_N2) */

1401: ledger_id AS ledger_id,
1402: RANK() OVER (PARTITION BY event_id, ae_header_id
1403: ORDER BY line_id, ln_order) AS line_num
1404: FROM
1405: ( select /*+ ordered rowid(ct) use_nl(trh,ent,ev,hdr,ard) use_hash(gps) swap_join_inputs(gps) INDEX(ent xla_transaction_entities_N1) INDEX(ev XLA_EVENTS_U2) INDEX(hdr XLA_AE_HEADERS_N2) */
1406: hdr.ae_header_id ae_header_id,
1407: decode(ard.source_type, 'FACTOR', 'FAC_BR',
1408: 'REMITTANCE','REM_BR',
1409: 'REC', 'BILL_REC',

Line 1438: xla_ae_headers hdr,

1434: ar_transaction_history_all trh,
1435: xla_upgrade_dates gps,
1436: xla_transaction_entities_upg ent,
1437: xla_events ev,
1438: xla_ae_headers hdr,
1439: ar_distributions_all ard
1440: where ct.rowid >= l_start_rowid
1441: and ct.rowid <= l_end_rowid
1442: and NVL(ct.ax_accounted_flag,'N') = 'N'

Line 1610: INTO XLA_AE_HEADERS

1606: 'Y', --upgrade flag
1607: trx_date
1608: )
1609: WHEN PST_ID <> -3 THEN
1610: INTO XLA_AE_HEADERS
1611: (upg_batch_id,
1612: upg_source_application_id,
1613: application_id,
1614: amb_context_code,

Line 1664: xla_ae_headers_s.nextval,

1660: 'DEFAULT', --amb context code
1661: entity_id,
1662: xla_events_s.nextval,
1663: override_event,
1664: xla_ae_headers_s.nextval,
1665: sob_id,
1666: gl_date,
1667: period_name,
1668: '', --reference date global acct eng

Line 2272: ( select /*+ ordered rowid(cr) use_nl(crh,crh1,ent,ev,hdr,ard) use_hash(gps) swap_join_inputs(gps) INDEX(ent xla_transaction_entities_N1) INDEX(ev XLA_EVENTS_U2) INDEX(hdr XLA_AE_HEADERS_N2) INDEX_SS(crh1 ar_cash_receipt_history_n1) */

2268: ledger_id AS ledger_id,
2269: RANK() OVER (PARTITION BY event_id, ae_header_id
2270: ORDER BY line_id, ln_order) + 5000 AS line_num
2271: FROM
2272: ( select /*+ ordered rowid(cr) use_nl(crh,crh1,ent,ev,hdr,ard) use_hash(gps) swap_join_inputs(gps) INDEX(ent xla_transaction_entities_N1) INDEX(ev XLA_EVENTS_U2) INDEX(hdr XLA_AE_HEADERS_N2) INDEX_SS(crh1 ar_cash_receipt_history_n1) */
2273: hdr.ae_header_id ae_header_id,
2274: decode(ard.source_type, 'BANK_CHARGES', 'BANK_CHG',
2275: ard.source_type) account_class,
2276: 'AR_DISTRIBUTIONS_ALL' source_table,

Line 2305: xla_ae_headers hdr,

2301: xla_upgrade_dates gps,
2302: ar_cash_receipt_history_all crh1,
2303: xla_transaction_entities_upg ent,
2304: xla_events ev,
2305: xla_ae_headers hdr,
2306: ar_distributions_all ard
2307: where cr.rowid >= l_start_rowid
2308: and cr.rowid <= l_end_rowid
2309: and nvl(cr.ax_accounted_flag,'N') = 'N'

Line 2352: select /*+ ordered rowid(cr) use_nl(sys,app,ent,crh,crh1,ev,hdr,ard) use_hash(gps) swap_join_inputs(gps) INDEX(ent xla_transaction_entities_N1) INDEX(ev XLA_EVENTS_U2) INDEX(hdr XLA_AE_HEADERS_N2) INDEX_SS(crh1 ar_cash_receipt_history_n1) */

2348: and hdr.event_id = ev.event_id
2349: and ard.source_id = crh.cash_receipt_history_id
2350: and ard.source_table = 'CRH'
2351: UNION ALL /* Receipt applications */
2352: select /*+ ordered rowid(cr) use_nl(sys,app,ent,crh,crh1,ev,hdr,ard) use_hash(gps) swap_join_inputs(gps) INDEX(ent xla_transaction_entities_N1) INDEX(ev XLA_EVENTS_U2) INDEX(hdr XLA_AE_HEADERS_N2) INDEX_SS(crh1 ar_cash_receipt_history_n1) */
2353: hdr.ae_header_id ae_header_id,
2354: DECODE(ard.source_type, 'REC', 'RECEIVABLE',
2355: 'CURR_ROUND', 'ROUNDING',
2356: 'EXCH_GAIN', 'GAIN',

Line 2402: xla_ae_headers hdr,

2398: xla_transaction_entities_upg ent,
2399: ar_cash_receipt_history_all crh,
2400: ar_cash_receipt_history_all crh1,
2401: xla_events ev,
2402: xla_ae_headers hdr,
2403: ar_distributions_all ard
2404: where cr.rowid >= l_start_rowid
2405: and cr.rowid <= l_end_rowid
2406: and nvl(cr.ax_accounted_flag,'N') = 'N'

Line 2448: select /*+ ordered rowid(cr) use_nl(mcd,crh,ent,ev,hdr,ard) use_hash(gps) swap_join_inputs(gps) INDEX(ent xla_transaction_entities_N1) INDEX(ev XLA_EVENTS_U2) INDEX(hdr XLA_AE_HEADERS_N2) INDEX_SS(crh ar_cash_receipt_history_n1) */

2444: and hdr.application_id = 222
2445: and ard.source_id = app.receivable_application_id
2446: and ard.source_table = 'RA'
2447: UNION ALL /* Misc Cash Dist */
2448: select /*+ ordered rowid(cr) use_nl(mcd,crh,ent,ev,hdr,ard) use_hash(gps) swap_join_inputs(gps) INDEX(ent xla_transaction_entities_N1) INDEX(ev XLA_EVENTS_U2) INDEX(hdr XLA_AE_HEADERS_N2) INDEX_SS(crh ar_cash_receipt_history_n1) */
2449: hdr.ae_header_id ae_header_id,
2450: DECODE(ard.source_type, 'MISCCASH', 'MISC_CASH',
2451: ard.source_type) account_class,
2452: 'AR_DISTRIBUTIONS_ALL' source_table,

Line 2478: xla_ae_headers hdr,

2474: xla_upgrade_dates gps,
2475: ar_cash_receipt_history_all crh,
2476: xla_transaction_entities_upg ent,
2477: xla_events ev,
2478: xla_ae_headers hdr,
2479: ar_distributions_all ard
2480: where cr.rowid >= l_start_rowid
2481: and cr.rowid <= l_end_rowid
2482: and nvl(cr.ax_accounted_flag,'N') = 'N'

Line 2652: INTO XLA_AE_HEADERS

2648: 'Y', --upgrade flag
2649: trx_date
2650: )
2651: WHEN PST_ID <> -3 THEN
2652: INTO XLA_AE_HEADERS
2653: (upg_batch_id,
2654: upg_source_application_id,
2655: application_id,
2656: amb_context_code,

Line 2707: xla_ae_headers_s.nextval,

2703: 'DEFAULT', --amb context code
2704: entity_id,
2705: xla_events_s.nextval,
2706: override_event,
2707: xla_ae_headers_s.nextval,
2708: sob_id,
2709: gl_date,
2710: period_name,
2711: '', --reference date global acct eng

Line 3030: ( select /*+ ordered rowid(adj) use_nl(ent,ev,hdr,ard) use_hash(gps) swap_join_inputs(gps) INDEX(ent xla_transaction_entities_N1) INDEX(ev XLA_EVENTS_U2) INDEX(hdr XLA_AE_HEADERS_N2) */

3026: ledger_id AS ledger_id,
3027: RANK() OVER (PARTITION BY event_id, ae_header_id
3028: ORDER BY line_id) AS line_num
3029: FROM
3030: ( select /*+ ordered rowid(adj) use_nl(ent,ev,hdr,ard) use_hash(gps) swap_join_inputs(gps) INDEX(ent xla_transaction_entities_N1) INDEX(ev XLA_EVENTS_U2) INDEX(hdr XLA_AE_HEADERS_N2) */
3031: hdr.ae_header_id ae_header_id,
3032: DECODE(ard.source_type,'REC','RECEIVABLE',
3033: ard.source_type) account_class,
3034: 'AR_DISTRIBUTIONS_ALL' source_table,

Line 3057: xla_ae_headers hdr,

3053: from ar_adjustments_all adj,
3054: xla_upgrade_dates gps,
3055: xla_transaction_entities_upg ent,
3056: xla_events ev,
3057: xla_ae_headers hdr,
3058: ar_distributions_all ard
3059: where adj.rowid >= l_start_rowid
3060: and adj.rowid <= l_end_rowid
3061: and nvl(adj.ax_accounted_flag,'N') = 'N'

Line 3219: xla_ae_headers xah,

3215:
3216: update /*+ rowid(gir) */ gl_import_references gir
3217: set gir.gl_sl_link_id = (select min(xal.gl_sl_link_id)
3218: from xla_ae_lines xal,
3219: xla_ae_headers xah,
3220: xla_transaction_entities_upg xte,
3221: ar_cash_receipts_all cr,
3222: ar_system_parameters_all asp,
3223: xla_distribution_links xdl,

Line 3270: xla_ae_headers xah,

3266:
3267: update /*+ rowid(gir) */ gl_import_references gir
3268: set gir.gl_sl_link_id = (select min(xal.gl_sl_link_id)
3269: from xla_ae_lines xal,
3270: xla_ae_headers xah,
3271: xla_transaction_entities_upg xte,
3272: ar_cash_receipts_all cr,
3273: ar_system_parameters_all asp,
3274: xla_distribution_links xdl,

Line 3684: select /*+ ordered rowid(app) use_nl(ctcm,crh1,crh,cr,ent,ev,hdr,cbs,ctlgd) use_hash(gps) swap_join_inputs(gps) INDEX(ent XLA_TRANSACTION_ENTITIES_N1) INDEX(ev XLA_EVENTS_U2) INDEX(hdr XLA_AE_HEADERS_N2) INDEX_SS(crh1 ar_cash_receipt_history_n1) */

3680: RANK() OVER (PARTITION BY event_id, ae_header_id
3681: ORDER BY line_id, ln_order) + max_line_num AS line_num
3682: FROM
3683: ( /* On Account CM and receipt applications */
3684: select /*+ ordered rowid(app) use_nl(ctcm,crh1,crh,cr,ent,ev,hdr,cbs,ctlgd) use_hash(gps) swap_join_inputs(gps) INDEX(ent XLA_TRANSACTION_ENTITIES_N1) INDEX(ev XLA_EVENTS_U2) INDEX(hdr XLA_AE_HEADERS_N2) INDEX_SS(crh1 ar_cash_receipt_history_n1) */
3685: hdr.ae_header_id ae_header_id,
3686: decode(cbs.source,
3687: 'GL', ctlgd.account_class,
3688: 'ADJ', 'ADJ',

Line 3741: xla_ae_headers hdr,

3737: ar_cash_receipt_history_all crh1,
3738: ar_cash_receipt_history_all crh,
3739: ar_cash_receipts_all cr,
3740: xla_events ev,
3741: xla_ae_headers hdr,
3742: ar_cash_basis_dists_all cbs,
3743: ra_cust_trx_line_gl_dist_all ctlgd
3744: where app.rowid >= l_start_rowid
3745: and app.rowid <= l_end_rowid

Line 3888: INTO XLA_AE_HEADERS

3884: 'Y', --upgrade flag
3885: trx_date
3886: )
3887: WHEN PST_ID <> -3 THEN
3888: INTO XLA_AE_HEADERS
3889: (upg_batch_id,
3890: upg_source_application_id,
3891: application_id,
3892: amb_context_code,

Line 3942: xla_ae_headers_s.nextval,

3938: 'DEFAULT', --amb context code
3939: entity_id,
3940: xla_events_s.nextval,
3941: override_event,
3942: xla_ae_headers_s.nextval,
3943: sob_id,
3944: gl_date,
3945: period_name,
3946: '', --reference date global acct eng

Line 4071: from xla_events xei, xla_ae_headers xahi

4067: WHERE NVL(cr.ax_accounted_flag,'N') = 'N'
4068: AND crh.cash_receipt_id = cr.cash_receipt_id
4069: and cr.cash_receipt_id = p_cash_receipt_id
4070: and not exists (select 1
4071: from xla_events xei, xla_ae_headers xahi
4072: where xei.application_id = 222
4073: and xei.application_id = xahi.application_id
4074: and xei.entity_id = xahi.entity_id
4075: and xei.reference_num_1 = crh.posting_control_id

Line 4193: from xla_events xei, xla_ae_headers xahi

4189: AND cr.type='MISC'
4190: AND mcd.cash_receipt_id = cr.cash_receipt_id
4191: and cr.cash_receipt_id = p_cash_receipt_id
4192: and not exists (select 1
4193: from xla_events xei, xla_ae_headers xahi
4194: where xei.application_id = 222
4195: and xei.application_id = xahi.application_id
4196: and xei.entity_id = xahi.entity_id
4197: and xei.reference_num_1 = mcd.posting_control_id

Line 4311: from xla_events xei, xla_ae_headers xahi

4307: WHERE NVL(cr.ax_accounted_flag,'N') = 'N'
4308: AND app.cash_receipt_id = cr.cash_receipt_id
4309: and cr.cash_receipt_id = p_cash_receipt_id
4310: and not exists (select 1
4311: from xla_events xei, xla_ae_headers xahi
4312: where xei.application_id = 222
4313: and xei.application_id = xahi.application_id
4314: and xei.entity_id = xahi.entity_id
4315: and xei.reference_num_1 = app.posting_control_id

Line 4623: xla_ae_headers hdr,

4619: -- xla_upgrade_dates gps,
4620: ar_cash_receipt_history_all crh1,
4621: xla_transaction_entities_upg ent,
4622: xla_events ev,
4623: xla_ae_headers hdr,
4624: ar_distributions_all ard
4625: where nvl(cr.ax_accounted_flag,'N') = 'N'
4626: and cr.cash_receipt_id = crh.cash_receipt_id
4627: and cr.cash_receipt_id = p_cash_receipt_id

Line 4729: xla_ae_headers hdr,

4725: xla_transaction_entities_upg ent,
4726: ar_cash_receipt_history_all crh,
4727: ar_cash_receipt_history_all crh1,
4728: xla_events ev,
4729: xla_ae_headers hdr,
4730: ar_distributions_all ard
4731: where nvl(cr.ax_accounted_flag,'N') = 'N'
4732: and nvl(sys.org_id,-9999) = nvl(cr.org_id, -9999)
4733: and ( sys.accounting_method = 'ACCRUAL' or ( sys.accounting_method = 'CASH' and app.status in ('UNAPP', 'UNID', 'ACC') ) )

Line 4814: xla_ae_headers hdr,

4810: -- xla_upgrade_dates gps,
4811: ar_cash_receipt_history_all crh,
4812: xla_transaction_entities_upg ent,
4813: xla_events ev,
4814: xla_ae_headers hdr,
4815: ar_distributions_all ard
4816: where nvl(cr.ax_accounted_flag,'N') = 'N'
4817: and cr.cash_receipt_id = mcd.cash_receipt_id
4818: and cr.cash_receipt_id = p_cash_receipt_id

Line 5031: select /*+ ordered rowid(app) use_nl(ctcm,crh1,crh,cr,ent,ev,hdr,cbs,ctlgd) use_hash(gps) swap_join_inputs(gps) INDEX(ent XLA_TRANSACTION_ENTITIES_N1) INDEX(ev XLA_EVENTS_U3) INDEX(hdr XLA_AE_HEADERS_N2) INDEX_SS(crh1 ar_cash_receipt_history_n1) */

5027: RANK() OVER (PARTITION BY event_id, ae_header_id
5028: ORDER BY line_id, ln_order) + max_line_num AS line_num
5029: FROM
5030: ( /* On Account CM and receipt applications */
5031: select /*+ ordered rowid(app) use_nl(ctcm,crh1,crh,cr,ent,ev,hdr,cbs,ctlgd) use_hash(gps) swap_join_inputs(gps) INDEX(ent XLA_TRANSACTION_ENTITIES_N1) INDEX(ev XLA_EVENTS_U3) INDEX(hdr XLA_AE_HEADERS_N2) INDEX_SS(crh1 ar_cash_receipt_history_n1) */
5032: hdr.ae_header_id ae_header_id,
5033: decode(cbs.source,
5034: 'GL', ctlgd.account_class,
5035: 'ADJ', 'ADJ',

Line 5088: xla_ae_headers hdr,

5084: ar_cash_receipt_history_all crh1,
5085: ar_cash_receipt_history_all crh,
5086: ar_cash_receipts_all cr,
5087: xla_events ev,
5088: xla_ae_headers hdr,
5089: ar_cash_basis_dists_all cbs,
5090: ra_cust_trx_line_gl_dist_all ctlgd
5091: where nvl(app.postable,'Y') = 'Y'
5092: and cr.cash_receipt_id = p_cash_receipt_id