0% found this document useful (0 votes)
78 views2 pages

Log Book INC0547842

The document contains SQL statements that: 1) Creates a backup table of cost distribution lines with a transfer status of 'Y' and account event IDs that exist in the xla_events table. 2) Updates the status of the backed up lines to 'A'. 3) Creates a second backup table of lines with status 'A' that are associated with specific events and not linked in another table. 4) Updates the status and other fields of lines matching the second backup table to mark them as processed and remove associations.

Uploaded by

debasarangi
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)
78 views2 pages

Log Book INC0547842

The document contains SQL statements that: 1) Creates a backup table of cost distribution lines with a transfer status of 'Y' and account event IDs that exist in the xla_events table. 2) Updates the status of the backed up lines to 'A'. 3) Creates a second backup table of lines with status 'A' that are associated with specific events and not linked in another table. 4) Updates the status and other fields of lines matching the second backup table to mark them as processed and remove associations.

Uploaded by

debasarangi
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/ 2

create table pa_cdl_bckup_28792611 as

select * from pa_cost_distribution_lines_all cdl


where transfer_status_code = 'Y'
and acct_event_id is not null
and exists
(Select 1 from xla_events xe
where application_id = 275
and xe.event_id = cdl.acct_event_id);

update pa_cost_distribution_lines_all cdl


set transfer_status_code = 'A',
created_by = '-28792611'
where transfer_status_code = 'Y'
and acct_event_id is not null
and exists
(Select 1 from xla_events xe
where application_id = 275
and xe.event_id = cdl.acct_event_id);

COMMIT;

create table pa_cdl_bckup_28792611_2 as


select * from PA_COST_DISTRIBUTION_LINES_ALL cdl
where TRANSFER_STATUS_CODE ='A'
and ACCT_SOURCE_CODE = 'PA'
and exists
(select 1 from XLA_EVENTS XE
where XE.APPLICATION_ID= 275
and XE.EVENT_ID = CDL.ACCT_EVENT_ID
and XE.EVENT_STATUS_CODE ='P'
and XE.PROCESS_STATUS_CODE = 'P'
)
and not exists
(select 1 from XLA_DISTRIBUTION_LINKS XDL
where XDL.APPLICATION_ID = 275
and XDL.EVENT_ID = CDL.ACCT_EVENT_ID
and XDL.SOURCE_DISTRIBUTION_ID_NUM_1 = CDL.EXPENDITURE_ITEM_ID
and NVL(XDL.SOURCE_DISTRIBUTION_ID_NUM_2, -99) = CDL.LINE_NUM
);

update pa_cost_distribution_lines_all
set TRANSFER_STATUS_CODE = 'P',
ACCT_EVENT_ID = NULL,
ACCT_SOURCE_CODE = NULL,
CR_CODE_COMBINATION_ID = NULL,
TRANSFERRED_DATE = NULL,
BATCH_NAME = NULL,
created_by = '-28792611'
where (expenditure_item_id, line_num) in
(select expenditure_item_id, line_num
from pa_cdl_bckup_28792611_2);

commit;

INC0547842_PA_ORACLE_SR_3-18390974341
Mail Id to send Migrationg Instruction

revenue journals are not transferred to GL. The GL transfer status is showing as
'N' for the journals in SLA table. Raised Oracle SR 3-19826917551 to get the fix
and updated Ricardo.

You might also like