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

How to delete cash receipt.

20/01/2021

Eaton - Financials

Manufacturing

Deepak Shoora
Oracle - Order to Cash – R12
deepak.shoora@tcs.com
<Use the following styles in this document:

Heading 1

Sub Heading

Style Body Text

 Style Bulleted List1: for first level bullets


- Style Bulleted List2: for second level bullets

TCS Experience Certainty branding will be added by ePublishing team after all reviews and before final upload>

TCS Internal 2
Confidentiality Statement
Include the confidentiality statement within the box provided. This has to be legally
approved
Confidentiality and Non-Disclosure Notice
The information contained in this document is confidential and proprietary to TATA
Consultancy Services. This information may not be disclosed, duplicated or used for any
other purposes. The information contained in this document may not be released in whole or
in part outside TCS for any purpose without the express written permission of TATA
Consultancy Services.

Tata Code of Conduct


We, in our dealings, are self-regulated by a Code of Conduct as enshrined in the Tata Code
of Conduct. We request your support in helping us adhere to the Code in letter and spirit.
We request that any violation or potential violation of the Code by any person be promptly
brought to the notice of the Local Ethics Counselor or the Principal Ethics Counselor or the
CEO of TCS. All communication received in this regard will be treated and kept as
confidential.

TCS Internal 3
Table of Content

Heading 1........................................................................................................................................................................ 2
Sub Heading................................................................................................................................................................ 2
1. Overview................................................................................................................................................................. 5
1.1 Business overview...........................................................................................................................................5
1.2 Objective.........................................................................................................................................................5
1.3 Flow................................................................................................................................................................. 5
1.4. Dependency And Prerequisites...........................................................................................................................6
1.5. Related Documents............................................................................................................................................7
2. Issue Analysis , Root Cause & Proposed Solution....................................................................................................9
2.1 Problem Statement 1 – Delete the cash receipt stuck in create accounting error..........................................9
2.2 Open issues.....................................................................................................................................................9
2.3 Closed Issues...................................................................................................................................................9

TCS Internal 4
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.

TCS Internal 5
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

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.

TCS Internal 6
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

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

TCS Internal 7
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

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>;

TCS Internal 8
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.

TCS Internal 9
TCS Internal 10
Thank You

Contact

For more information, contact gsl.cdsfiodg@tcs.com (Email Id of ISU)

About Tata Consultancy Services (TCS)

Tata Consultancy Services is an IT services, consulting and business solutions


organization that delivers real results to global business, ensuring a level of certainty no
other firm can match. TCS offers a consulting-led, integrated portfolio of IT and IT-
enabled infrastructure, engineering and assurance services. This is delivered through its
unique Global Network Delivery ModelTM, recognized as the benchmark of excellence in
software development. A part of the Tata Group, India’s largest industrial conglomerate,
TCS has a global footprint and is listed on the National Stock Exchange and Bombay
Stock Exchange in India.

For more information, visit us at www.tcs.com.

IT Services
Business Solutions
Consulting
All content / information present here is the exclusive property of Tata Consultancy Services Limited (TCS). The content / information
contained here is correct at the time of publishing. No material from here may be copied, modified, reproduced, republished, uploaded,
transmitted, posted or distributed in any form without prior written permission from TCS. Unauthorized use of the content /
information appearing here may violate copyright, trademark and other applicable laws, and could result in criminal or civil penalties.
Copyright © 2011 Tata Consultancy Services Limited

You might also like