0% found this document useful (0 votes)
22 views1 page

Script Sweep

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views1 page

Script Sweep

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

CREATE TABLE XE_Sweep_bkup_orcl_2705 AS SELECT ERR.

*
FROM apps.xla_accounting_errors err,
apps.xla_ae_headers hd,
apps.xla_events eve,
apps.xla_transaction_entities_upg ent
WHERE hd.application_id = 707
AND eve.application_id = 707
AND hd.accounting_entry_status_code NOT IN ('F', 'D')
AND eve.event_id = err.event_id
AND eve.event_id = hd.event_id
AND eve.entity_id = ent.entity_id
and err.message_number=95325
and trunc(err.creation_date) > '1-APR-2021';

Update xla_events
SET EVENT_DATE = '1-MAY-2021',
transaction_date = '1-MAY-2021',
REFERENCE_DATE_1 = '1-MAY-2021',
CREATED_BY = -11111,
last_updated_by = -11111
WHERE Event_id IN (SELECT EVENT_ID FROM XE_Sweep_bkup_orcl_2705);

update apps.xla_ae_headers
set accounting_date='1-MAY-2021',
period_name='MAY-21',
CREATED_BY = -11111,
last_updated_by= -11111
where Event_id IN (SELECT EVENT_ID FROM XE_Sweep_bkup_orcl_2705);

update apps.xla_ae_lines
set accounting_date='1-MAY-2021',
CREATED_BY = -11111,
last_updated_by= -11111
where ae_header_id in(select ae_header_id from apps.xla_ae_headers where Event_id
IN (SELECT EVENT_ID FROM XE_Sweep_bkup_orcl_2705));

You might also like