Professional Documents
Culture Documents
Knowledge Article KBA-OTC-0001 Data Fix For Delete Cash Receipt
Knowledge Article KBA-OTC-0001 Data Fix For Delete Cash Receipt
Knowledge Article
KBA-OTC-0001
Data fix for delete cash receipt
Version 1.0
Page: 1
Oracle R12 Troubleshooting Guide
Document Information
Document Name
Oracle_R12_ KBA-OTC-0001_Data fix for delete cash receipt
Document Author Deepak Shoora
Issue Category/Sub-category Data Fix Script
Document Version 1.0
Document Status Draft
Date Released 18-Jan-2021
Version 1.0
Page: 2
Oracle R12 Troubleshooting Guide
Contents
1. OVERVIEW...............................................................................................................................................................4
2.1 PROBLEM STATEMENT 1 – DELETE THE CASH RECEIPT STUCK IN CREATE ACCOUNTING ERROR.......................................8
2.2 OPEN ISSUES...................................................................................................................................................8
2.3 CLOSED ISSUES................................................................................................................................................8
Version 1.0
Page: 3
Oracle R12 Troubleshooting Guide
1. Overview
This document outlines the process to delete these cash receipts from the backend so that the
those receipts do not cause any issue during the close process.
1.2. Objective
This document provides the details of the steps and scripts to delete the cash receipt from the
back end using a data fix script.
1.3. Flow
1. Create Accounting Error received from Business which on investigation reveals that the
receipt was created in error and needs to be deleted.
2. Validate if there are any posted events for that receipt in ar_receivable_applications_all
3. If above fetches 0 records you only need to run the script “fix_del_receipt_R12.sql”. Script
can be found in “Related Documents” section.
4. If above fetches > 0 records you will need to run the scripts in below order –
a. Run script fix_undo_acc_ev_new_gl_date.sql for all the events that are posted and
appear in step 2 one by one. Script can be found in “Related Documents” section.
bug_number : <Numeric values of the Incident Number> for e.g. if incident number is
INC000014033076 then use 14033076
Version 1.0
Page: 4
Oracle R12 Troubleshooting Guide
read_only_mode : N
user_id : 33959
responsibility_id : 51385
b. Make sure that the above script has been run for all the posted events from
step 2.
c. Run the script “fix_del_receipt_R12.sql” with below parameters –
Incident_Number = INCXXXXXXXX
Org_Id = Provide the org_id for the cash receipt with issue
Cash_receipt_id = Provide the cash_receipt_id for the cash receipt with issue.
5. Ask user to validate that the receipt has been deleted successfully and create
accounting error disappears as well from the Q614 instance.
6. Create a CRQ to move the change to production with UAT approval, Script to execute (along
with parameters to be used) and Q614 log (that you get when you run the script in Q614
instance.) and create a task for the EDM team along with that.
1. User confirmation has to be taken before even preparing the data fix that the receipt
can be deleted.
2. Validation if there are any posted records is mandatory as it determines the scripts that
needs to run as per the flow above.
Version 1.0
Page: 5
Oracle R12 Troubleshooting Guide
fix_del_receipt_R12.s
ql
Incident_Number = INCXXXXXXXX
Org_Id = Provide the org_id for the cash receipt with issue
Cash_receipt_id = Provide the cash_receipt_id for the cash receipt with issue.
fix_undo_acc_ev_new
_gl_date.sql
Script Name - fix_undo_acc_ev_new_gl_date.sql for all the events that are posted and appear in step 2
one by one. Parameters to be passed as belw –
bug_number : <Numeric values of the Incident Number> for e.g. if incident number is
INC000014033076 then use 14033076
Version 1.0
Page: 6
Oracle R12 Troubleshooting Guide
read_only_mode : N
user_id : 33959
responsibility_id : 51385
Version 1.0
Page: 7
Oracle R12 Troubleshooting Guide
2.1 Problem Statement 1 – Delete the cash receipt stuck in create accounting
error
Work around : No work around available. Only option is to delete the receipt
Root Cause Analysis : Cash receipts are created via multiple sources like BAI, MT940, Netting,
Manual cash receipts etc. During this process there are certain cash receipts which are created
due to system error or user mistakes, as a result of which the receipts are stuck during the create
accounting process. Most common error is if the receipt is created for a trade customer while the
receipt source is NETTING or vice versa. Also in case the receipt was created with incorrect
details by the user and they reversed the same but the original entry and reversal both are stuck
in the create accounting error.
Proposed Solution : Run steps as per the flow mentioned in above sections.
Version 1.0
Page: 8
Oracle R12 Troubleshooting Guide
Version 1.0
Page: 9