Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

1. Download and apply Patch 23338547:R12.AP.C as HOT PATCH.

a. Download and unzip the patch under


/u01/R122_EBS/fs_ne/EBSapps/patch
b. Connect to the RUN edition environment.
c. Execute the patch through HOTPATCH phase
adop phase=APPLY patches=<patchnumber> hotpatch=yes

After successful patch application, go to RUN EDITION and check Following files exists with correct versions or not.
$AP_TOP/patch/115/sql/ap_inc_payment_schedules_sel.sql
$AP_TOP/patch/115/sql/ap_inc_payment_schedules_fix.sql

These 2 scripts should be executed from RUN EDITION as per Instructions mentioned in section 3

2. The patch delivers 2 scripts and the latest datafix package code:

ap_inc_payment_schedules_sel.sql- Select script used to find and report the problem data.
ap_inc_payment_schedules_fix.sql- Fix script used to fix the problem data.
apgdfalb.pls and apgdfals.pls - Code that delivers the latest datafix package code, package name =
AP_Acctg_Data_Fix_PKG. This package provides procedures and functions used by the GDF e.g. backing up the data,
displaying the data, etc.

3. Execute the scripts in below mentioned order:

ap_inc_payment_schedules_sel.sql
ap_inc_payment_schedules_fix.sql

Example: Sqlplus apps_user/apps_password@instance


@$AP_TOP/patch/115/sql/ ap_inc_payment_schedules_sel.sql

a. Run the selection script ap_inc_payment_schedules_sel.sql

Parameters:
> Org_ID: Provide the org_id for which you want to correct the data.
> Email Id: The script has an optional parameter for Email ID, if the user wants to receive the log file through mail.
Refer section “Email Feature” below for details.
> Start date, End_date: Is the start and end invoice_date of invoices which needs to be entered in 'DD-MON-YYYY' format.
Provide the start and end dates for the date range in which you would like to check the invoices with issues and correct
them.

Script will create the driver table : AP_TEMP_DATA_DRIVER_17942317


Log file for this script : 17942317-diag-HH24:MI:SS.html
Check the transactions in the driver table and change the process flag to N for the transactions which customer do not want
to fix.
By default the process_flag will be Y.

Eg: UPDATE AP_TEMP_DATA_DRIVER_17942317


SET PROCESS_FLAG='N'
WHERE INVOICE_ID=12345;

b. Run the fix script ap_inc_payment_schedules_fix.sql

Parameters:
> Email Id: The script has an optional parameter for Email ID, if the user wants to receive the log file through mail.
Refer section “Email Feature” below for details.
> User_Name: The exact EBS application user name for a user.
This user should be associated with the Payables responsibility that is given for the responsibility parameter.
> Responsibility_name: The exact, case-sensitive Responsibility Name for a payable responsibility that has access to the
problematic transactions
> Undo_gl_date: 'DD-MON-YYYY' enter a date that is in an open period for both AP & GL to sweep the transaction into for
re-accounting.
When left NULL, undo will happen on the same date as that of event date in case event date is in open period else on
system date.
If none of the date are in open period then undo will error.

See note 753695.1 for more info about the undo script and process.

Log file for this script : 17942317-fix-HH24:MI:SS.html


Back up table created : AP_INVOICES_17942317_BKP , AP_PAY_SCH_17942317_BKP

Note: Table ap_overpaid_invs_17942317 contains the data of all overpaid invoices for the given period.
These invoices will not be corrected using the fix script.To check these invoices, run the query below:
select * from ap_overpaid_invs_17942317;

Customers need to either void these checks which are overpaid or create a credit memo, after adjusting the standard
invoice.
For any issues, please contact Oracle support and supply the output of select * from ap_overpaid_invs_17942317 along
with few APlists of these invoices.

4. For any issues with the script/results please supply files 17942317-diag-HH24:MI:SS.html, 17942317-fix-HH24:MI:SS.html
and 17942317-fix.out.

Log files will be created in the directory pointed to by the output of the following query:

SELECT decode(instr(value,','),0,value,
SUBSTR (value,1,instr(value,',') - 1))
FROM v$parameter
WHERE name = 'utl_file_dir';

You might also like