0% found this document useful (0 votes)
20 views

Data Fix Script

The document provides a 5-step action plan to update an invoice and payment schedules in a test instance. The plan includes creating backup tables, updating fields in the invoice and payment schedules tables for a specific invoice ID, and checking the invoice status and reports after committing the changes. The action plan should be followed in the test instance and results reported back.

Uploaded by

Srikkanth Mani
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Data Fix Script

The document provides a 5-step action plan to update an invoice and payment schedules in a test instance. The plan includes creating backup tables, updating fields in the invoice and payment schedules tables for a specific invoice ID, and checking the invoice status and reports after committing the changes. The action plan should be followed in the test instance and results reported back.

Uploaded by

Srikkanth Mani
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Hello Srikkanth -

***ACTION PLAN ONLY IN TEST INSTANCE***

Kindly follow the below action plan in test instance and advice me the results.

1. Create backup table for invoice header

Create table SR_3_27052490371_AIA as select * from ap_invoices_all


where invoice_id=3376362;

2. Create backup table for payment schedules.

Create table SR_3_27052490371_apsa as select * from ap_payment_schedules_all


where invoice_id=3376362;

3. Update invoice table.

UPDATE ap_invoices_all
SET payment_status_flag = 'P',
last_update_date = SYSDATE,
last_updated_by = -1
WHERE invoice_id = 3376362;

--do not proceed to commit if more than one row updated.

4. update payment schedules table.

UPDATE ap_payment_schedules_all
SET amount_remaining = &remaining_amount,
payment_status_flag = 'P',
last_update_date = SYSDATE,
last_updated_by = -1
WHERE invoice_id = 3376362;

--do not proceed to commit if more than one row updated.

COMMIT;

5. Check the invoice status and complete the payment. (Also check the related
reports)

You might also like