Вы находитесь на странице: 1из 5

============================================================================== GDF: MODIFICATIONS TO THE GDF 9288086 TO CONSIDER ACCRUAL_POSTED_FLAG ============================================================================== Update Product Release Platform Built 13616665

Payables R12 Generic Platform FEB-01-2012 00:40:22

Instructions For Applying This Patch ============================================================================== Preparation Tasks ============================================================================== The tasks in this section can be completed without taking any Applications services or users offline. There are no tasks to be performed in this section. Pre-install Tasks ============================================================================== You must shut down all Application tier services before performing the tasks in this section. There are no tasks to be performed in this section. Apply The Patch ==============================================================================

There are no tasks to be performed in this section. Post-install Tasks ============================================================================== You must complete the tasks in this section before starting up Application tier services. There are no tasks to be performed in this section. Finishing Tasks ============================================================================== You may complete the tasks in this section at any time after the update, without taking any services or users offline. There are no tasks to be performed in this section. Additional Information

==============================================================================

There are no tasks to be performed in this section. ============================================================================== Description ============================================================================== 1. Description Old Behavior: The transactions posted_flag and cash_posted_flag /accrual_posted_flag are not updated properly though the accounting is perfect. New Behavior: This script will fix all these faulty transaction's posted_flag and cash_posted_flag/accrual_posted_flag whose accounting is perfect. 2. 3. 4. 5. 6. 7. 8. 9. Pre-requisite or Co-requisite which is not included with this patch: None. Patch Applicable for versions/releases: R12.AP.B Dependent Applications: None Patch to be applied: Server Patch applicable only when a particular application installed: Oracle Payables Pre-patch application steps None Post patch application steps Verify the log files Successful patch installation checks: Check the file versions patch/115/sql/ap_incorrect_posted_flag_sel.sql 120.0.12010000.3 patch/115/sql/ap_incorrect_posted_flag_fix.sql 120.0.12010000.2

Additional Patch Information ============================= 1. Objective: ------------Bug #9288086 is a data fix patch, which will help you to solve the following issues. a. Detect and show the transactions whose accounting is perfect and the posted_flag is having wrong value 'N' in AP tables. b. Update the posted_flag and the cash_posted_flag/accrual_posted_flag to appropriate values for all the transactions whose accounting is perfect, in the AP tables.

2. Instructions: ---------------Kindly follow the instructions given below to apply the data fix patch. 1. Download the patch. Patch will automatically run script ap_incorrect_posted_flag_sel.sql which will create the following: a) Driver tables AP_TEMP_DATA_INV_DRV_9288086 and AP_TEMP_DATA_PAY_DRV_9288086 with the affected transactions. b) log file 9288086-diag-HH24:MI:SS.html which shows affected transactions. 2. Check the report 9288086-diag-HH24:MI:SS.html to identify/review the affected transactions. 3. Update process_flag in AP_TEMP_DATA_INV_DRV_9288086 and AP_TEMP_DATA_PAY_DRV_9288086 to 'N' for transactions that should not be operated on. 4. If the identified events in Step 2 have to be corrected, then run ap_incorrect_posted_flag_fix.sql. Example: Sqlplus apps/apps@finpqe10 @$AP_TOP/patch/115/sql/ap_incorrect_posted_flag_fix.sql to fix the same. This will generate log file 9288086-fix-HH24:MI:SS.html. 5. Check the results using the below queries. Invoices: ========= SELECT 'ap_invoice_distributions_all' trx_table, aid.invoice_distribution_id trx_id , aid.posted_flag , aid.accrual_posted_flag , aid.cash_posted_flag FROM ap_invoice_distributions_all aid WHERE(invoice_distribution_id, 'ap_invoice_distributions_all', set_of_books_id) IN (SELECT trx_id , trx_table, ledger_id FROM AP_TEMP_DATA_INV_DRV_9288086 WHERE process_flag = 'D' ) UNION SELECT 'ap_self_assessed_tax_dist_all' trx_table, astd.invoice_distribution_id trx_id , astd.posted_flag , astd.accrual_posted_flag , astd.cash_posted_flag FROM ap_self_assessed_tax_dist_all astd WHERE(invoice_distribution_id, 'ap_self_assessed_tax_dist_all', set_of_books_id) IN (SELECT trx_id , trx_table, ledger_id

FROM AP_TEMP_DATA_INV_DRV_9288086 WHERE process_flag = 'D' ) UNION SELECT 'ap_prepay_history_all' trx_table, aph.prepay_history_id trx_id , aph.posted_flag , NULL , NULL FROM ap_prepay_history_all aph WHERE(prepay_history_id, 'ap_prepay_history_all') IN (SELECT trx_id, trx_table FROM AP_TEMP_DATA_INV_DRV_9288086 WHERE process_flag = 'D' ) ; Payments: ========= SELECT 'ap_invoice_payments_all' trx_table, aip.invoice_payment_id trx_id , aip.posted_flag , aip.accrual_posted_flag , aip.cash_posted_flag FROM ap_invoice_payments_all aip WHERE(invoice_payment_id, 'ap_invoice_payments_all', set_of_books_id) IN (SELECT trx_id , trx_table, ledger_id FROM AP_TEMP_DATA_PAY_DRV_9288086 WHERE process_flag = 'D' ) UNION SELECT 'ap_payment_history_all' trx_table, aph.payment_history_id trx_id , aph.posted_flag , NULL , NULL FROM ap_payment_history_all aph WHERE(payment_history_id, 'ap_payment_history_all') IN (SELECT trx_id, trx_table FROM AP_TEMP_DATA_PAY_DRV_9288086 WHERE process_flag = 'D' ) ; 6. Backup of the identified transactions is taken into following tables INVOICE_PAYMENTS_9288086 : Backup of payments data. PAYMENT_HISTORY_9288086 : Backup of payment history events data. INVOICE_DISTS_9288086 : Backup of invoice distributions. PREPAY_HISTORY_9288086 : Backup of prepayment history data. SELF_ASSESSED_DIST_9288086: Backup of self assessed tax distributions data. 7. For any issues with the script/results please contact Oracle support and supply files: 9288086-diag-HH24:MI:SS.html and 9288086-fix-HH24:MI:SS.html.

Log files will be created in the following directory: SELECT decode(instr(value,','),0,value, SUBSTR (value,1,instr(value,',') - 1)) FROM v$parameter WHERE name = 'utl_file_dir'; Warning: Run the scripts in test instance, verify the results and only then apply to the production instance.

Вам также может понравиться