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

Oracle R12 Troubleshooting Guide

Knowledge Article
KBA-OTC-0001
Data fix for delete cash receipt

Version 1.0
Page: 1
Oracle R12 Troubleshooting Guide

Document Control Information

Document Information

Document Identification Oracle_R12_ KBA-OTC-0001_Data fix for delete cash receipt

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

Document Edit History

Version Date Additions/Modifications Prepared/Revised by


1.0 18-Jan-2021 Initial Version Deepak Shoora

Document Review/Approval History


Document
Date Name Organization/Title Comments
Version

Version 1.0
Page: 2
Oracle R12 Troubleshooting Guide

Contents
1. OVERVIEW...............................................................................................................................................................4

1.1. BUSINESS OVERVIEW........................................................................................................................................4


1.2. OBJECTIVE......................................................................................................................................................4
1.3. FLOW............................................................................................................................................................4
1.4. DEPENDENCY AND PREREQUISITES......................................................................................................................5
1.5. RELATED DOCUMENTS......................................................................................................................................6

2. ISSUE ANALYSIS , ROOT CAUSE & PROPOSED SOLUTION.......................................................................................8

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

1.1. Business overview


Currently in Oracle Financials we have cash receipts created for the purpose of collecting cash
and applying the associated transactions. 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.

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

select event_id from ar_receivable_applications_all ra where ra.cash_receipt_id =


&cash_receipt_id and ra.posting_control_id <> -3

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.

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

org_id : Ord id of the receipt

Version 1.0
Page: 4
Oracle R12 Troubleshooting Guide

read_only_mode : N

event_id : < Run for each event id from step 2 separately>

user_id : 33959

responsibility_id : 51385

l_new_gl_date DATE := <GL Date of the current open period>;

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.

7. Verify with user to validate the same in production.

1.4. Dependency And Prerequisites

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.

1.5. Related Documents

Version 1.0
Page: 5
Oracle R12 Troubleshooting Guide

Document Revision References Comments


Name (Ticket/ERG
Group/External )

In case DBA asks for an SR you can reference below –

S.No. Type of DataFix Explanation Reference CRQs Oracle SRs


Fix is provided by
1 AR Receipt Delete Oracle CRQ000000375237 SR 3-19535549671

SCRIPT 1 – To delete cash receipt

fix_del_receipt_R12.s
ql

Script Name – fix_del_receipt_R12.sql


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.

SCRIPT 2 – To UNDO accounting for posted events

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

org_id : Ord id of the receipt

read_only_mode : N

event_id : < Run for each event id from step 2 separately>

user_id : 33959

responsibility_id : 51385

l_new_gl_date DATE := <GL Date of the current open period>;

Version 1.0
Page: 7
Oracle R12 Troubleshooting Guide

2. Issue Analysis , Root Cause & Proposed Solution

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.

2.2 Open issues


Describe open issues here that could affect.
Issue Id Description Opened By Responsible Due Date
1.
2.
3.

2.3 Closed Issues


List the closed issues here.
Issue Id Description Resolution Signoff Closed Date
4.
5.
6.

Version 1.0
Page: 8
Oracle R12 Troubleshooting Guide

Version 1.0
Page: 9

You might also like