Search This Blog

Sunday, December 26, 2010

AR Create Accounting Issue

Issue :


Line
Error Number
Error Message

95325
The GL date is not in an open or a future enterable period.  Please select a valid GL date or open the period.

Solution :

Open GL and AR periods for mentioned period and re create accounting . change GL date to current month ( Real open month date ) close open periods in both modules.

Monday, December 20, 2010

Accounts Receivable Reconciliation - Part one

Transaction Register for the Period
(-) Applied Receipts Register for the Period
(-) Un-Applied Receipts Register for the Period
(+) Adjustments Register for the Period
(-) Invoice Exceptions for the Period
(+) Rounding Differences for the Period (*)
(+) Credit Memo gain/loss for the Period(*)
(*) These can occur only in the case of foreign currency transactions.
The documentation details the following on how they derive the beginning and ending balances is here:

***--Quote--***
Beginning and Ending Balance:


To get the beginning and ending balances the report uses the same procedure. The As of Date for the Beginning period is GL Date Low-1 where as the As Of date for the Ending balance is GL Date High.

The report selects all transactions from AR_PAYMENTS_SCHEDULES_ALL table which are not receipts and have a GL Date equal to or less than the As Of date, AND a GL Date Closed which is greater than the As Of date.

For all records returned which are not credit memos, the report calculates and sums up all the receipt and credit memo applications which have a GL date of greater than the As Of date from the AR_RECEIVABLE_APPLICATIONS_ALL table. This total is termed as Accounted_Amount_Applied_To.

For all credit memos, the report calculates and sums up all the applications which have a GL date of greater than the AS Of date from the AR_RECEIVABLE_APPLICATIONS_ALL table. This is called the Accounted_Amount_Applied_From.

Any approved adjustments tied to these transactions are also calculated
and summed up that have a GL date of greater than the As Of date.

The report also sums up the Accounted Amount Due Remaining for all
transactions.

The final value the report calculates to get the Beginning/Ending Balance is the sum of all Unapplied, On-Account and Unidentified Receipts which were closed after the As Of date.

The Beginning and Ending balance is calculated using the following
equation:
Beginning/Ending Amount = Sum of all Accounted Amount Due Remaining
+ sum of Accounted_Amount_Applied_To
- sum of Accounted_Amount_Applied_From
- sum of all approved adjustements
+ ( - sum of all unapplied receipts)
***--End Quote--***

I am a novice when it comes to understanding the database structure of Oracle 11i and the above details are a little spotty on where and what fields are being summed up. So far I have written these (again note that I am trying to tie to the report…adding the functionality to select Domestic verses Export will come later and is not an issue) SQL statements which should give me an individual number for each part for which I can do calculations with to get the actual balance:

--AR Beginning Balance Queries --Sum ACCTD_AMOUNT_DUE_REMAINING
Select Sum(AR_PAYMENT_SCHEDULES_ALL.ACCTD_AMOUNT_DUE_REMAINING) as ACCTD_AMOUNT_DUE_REMAINING
From AR_PAYMENT_SCHEDULES_ALL
Where AR_PAYMENT_SCHEDULES_ALL.GL_DATE <= :date1
and AR_PAYMENT_SCHEDULES_ALL.GL_DATE_CLOSED > :date1
and AR_PAYMENT_SCHEDULES_ALL.org_id = :org
;

-- Sum ACCTD_AMOUNT_APPLIED_TOSelect Sum(AR_RECEIVABLE_APPLICATIONS_ALL.ACCTD_AMOUNT_APPLIED_TO) as ACCTD_AMOUNT_APPLIED_TO
From AR_RECEIVABLE_APPLICATIONS_ALL
Where AR_RECEIVABLE_APPLICATIONS_ALL.GL_DATE > :date1
and AR_RECEIVABLE_APPLICATIONS_ALL.APPLICATION_TYPE 'CM'
and org_id = :org
;

--Sum ACCT_AMOUNT_APPLIED_FROMSelect Sum(AR_RECEIVABLE_APPLICATIONS_ALL.ACCTD_AMOUNT_APPLIED_FROM) as ACCTD_AMOUNT_APPLIED_FROM
From AR_RECEIVABLE_APPLICATIONS_ALL
Where AR_RECEIVABLE_APPLICATIONS_ALL.GL_DATE > :date1
and AR_RECEIVABLE_APPLICATIONS_ALL.APPLICATION_TYPE = 'CM'
and org_id = :org
;

--AR Beginning Balance Queries (End) I am not sure how to calculate the “approved adjustments” or what they consider “unapplied receipts” can someone please help me? Also if you believe my above queries aren't pulling the correct totals please elaborate on that as well.

Thanks in advance!

UPDATE:
I think that I have figured out the “approved adjustments” & the “unapplied receipts” as the balances I am getting with those queires (below) are the same balances as the "Adjustment Register" and the "Unapplied Receipts Register" so that leads me to think one of the other queries I have above is wrong...can some one help me with that...pretty please!

--Adjustment Register Subtotal
Select Sum(AR_ADJUSTMENTS_ALL.ACCTD_AMOUNT) as Adjustment_Register_Subtotal
From AR_ADJUSTMENTS_ALL
Where AR_ADJUSTMENTS_ALL.GL_DATE between :date1 and :date2
and org_id = :org
;

-- Unapplied Receipts Register Subtotal
Select Sum(AR_RECEIVABLE_APPLICATIONS_ALL.ACCTD_AMOUNT_APPLIED_FROM) as Unapplied_Rec_Reg_Subtotal
From AR_RECEIVABLE_APPLICATIONS_ALL
Where AR_RECEIVABLE_APPLICATIONS_ALL.GL_DATE between :date1 and :date2
and AR_RECEIVABLE_APPLICATIONS_ALL.STATUS in ('ACC', 'UNAPP', 'UNID')
and AR_RECEIVABLE_APPLICATIONS_ALL.APPLICATION_TYPE 'CM'
and org_id = :org

Saturday, December 18, 2010

AR : Back to Basic(Technical Foundation)

This post is more on basic table structure of Oracle Account Receivable.
1.Table that holds AR Invoice data
The following tables can give most of the invoice information.
  • RA_CUSTOMER_TRX_ALL stores invoice header information. RA_CUSTOMER_TRX_LINES_ALL stores information about invoice, debit memo, credit memo, bills receivable, and commitment lines.
  • The AR_PAYMENT_SCHEDULES_ALL table stores all transactions except adjustments and miscellaneous cash receipts.
  • RA_CUST_TRX_LINE_GL_DIST_ALL stores accounting distribution records for all transaction lines except bills receivable.The RA_CUST_TRX_LINE_GL_DIST_ALL table stores the accounting records for revenue, unearned revenue, and unbilled receivables for each invoice or credit memo line.
  • RA_CUSTOMERS - Customer information
  • RA_CUST_TRX_TYPES_ALL - Customer Transaction Type
  • AR_PAYMENT_SCHEDULES_ALL
  • RA_CUSTOMER_TRX_LINES_ALL - Transaction Line information
  • MTL_SYSTEM_ITEMS - Base table for item
The ER Diagram for a customer Transaction can be easily understood as:
CustomerInvoice
2.Customer Payment
These are the main tables which holds Customer Payment information

  • AR_CASH_RECEIPTS_ALL stores one record for each receipt entry.
  • AR_CASH_RECEIPT_HISTORY_ALL stores all of the activity that is contained for the life cycle of a receipt.
  • Each row represents one step., Possible statuses are Approved, Cleared,Confirmed, Remitted, and Reversed.
  • AR_MISC_CASH_DISTRIBUTIONS_ALL stores all accounting entries for miscellaneous cash applications.
  • AR_DISTRIBUTIONS_ALL stores the accounting distributions for cash receipts, miscellaneous receipts, adjustments,credit memo applications, cash receipt applications, and bills receivable transactions.
  • AR_RECEIVABLE_APPLICATIONS_ALL stores all accounting entries for cash and credit memo applications.
  • Each row includes the amount applied, status, and accounting flexfield information.
The ER Diagram for a customer Payment can be easily understood as:
Customerpayment
3. Accounting Link between the tables
  • For Invoice:
ra_customers (This is for capturing customers information)
ra_customer_trx_all,
ra_cust_trx_types_all,
ar_payment_schedules_all,
ra_customer_trx_lines_all
and joins are customer_trx_id for ar_payment_schedules_all & ra_customer_trx_all & ra_customer_trx_lines_all .
ra_cust_trx_types_all.type IN ('INV')
  • For the Receipts:
ar_receivable_applications_all,
ra_customer_trx_all,
ra_customer_trx_lines_all,
ar_cash_receipts_all
ar_receivable_applications_all.application_type = 'CASH',
ar_receivable_applications_all.cash_receipt_id = ar_cash_receipts_all.cash_receipt_id,
ar_receivable_applications_all.applied_customer_trx_id = ra_customer_trx_all.customer_trx_id

Reference : http://www.oracleappshub.com/accounts-receivable/ar-back-to-basictechnical-foundation/
I found very usefull link in

and these are the main tables :
http://oracleerp4u.blogspot.com/2010/06/gl-journals-gljebatches-gljeheaders.html

GL JournalsGL_JE_BATCHES
GL_JE_HEADERS
GL_JE_LINES
GL_CODE_COMBINATIONS
AP SuppliersPO_VENDORS
PO_VENDOR_SITES_ALL
PO_VENDOR_CONTACTS

----------------
AP_SUPPLIERS
AP_SUPPLIER_SITES_ALL
AP_SUPPLIER_CONTACTS

AP Invoices
AP_INVOICES_ALL
AP_INVOICE_LINES_ALL
AP_INVOICE_DISTRIBUTIONS_ALL
AP_TERMS
AP_HOLDS_ALL
PA_PROJECTS_ALL
PA_TASKS
PO_VENDORS

AR Customers
HZ_CUST_ACCOUNTS
HZ_PARTIES
HZ_CUST_ACCT_SITES_ALL
HZ_LOCATIONS
HZ_PARTY_SITES
HZ_CUST_SITE_USES_ALL

AR Customer Profiles
HZ_CUSTOMER_PROFILES
HZ_CUST_PROFILE_CLASSES
HZ_CUST_PROFILE_AMTS
AR_COLLECTORS
RA_TERMS
RA_GROUPING_RULES
AR_STATEMENT_CYCLES

AR Customer Contacts
RA_CONTACTS
RA_PHONES

AR Transactions
AR_PAYMENT_SCHEDULES_ALL
RA_CUSTOMER_TRX_ALL
RA_CUST_TRX_TYPES_ALL
RA_CUSTOMER_TRX_LINES_ALL
RA_CUST_TRX_LINE_GL_DIST_ALL
RA_TERMS
HR_OPERATING_UNITS

AR Receipts
AR_CASH_RECEIPTS_ALL
AR_CASH_RECEIPT_HISTORY_All
AR_RECEIVABLE_APPLICATIONS_ALL
AR_RECEIPT_METHODS
AR_RECEIPT_CLASSES
AR_PAYMENT_SCHEDULES_ALL

PO Standard
PO_HEADERS_ALL
PO_LINES_V
PO_LINE_LOCATIONS_ALL
PO_DISTRIBUTIONS_V

PO Releases
PO_RELEASES_ALL

PO Requisitions
PO_REQUISITION_HEADERS_V
PO_REQUISITION_LINES_V

Project Data
PA_PROJECTS_ALL
PA_TASKS
PA_PROJECT_PARTIES
PA_PROJECT_ROLE_TYPES_B

Project Transaction Data
PA_EXPENDITURE_ITEMS_ALL
PA_COST_DISTRIBUTION_LINES_ALL
PA_EXPENDITURES_ALL
PA_EXPENDITURE_COMMENTS
PA_PROJECTS_ALL
PA_TASKS

INV Items
MTL_SYSTEM_ITEMS_B
ORG_ORGANIZATION_DEFINITIONS

INV Item Categories
MTL_CATEGORY_SETS_TL
MTL_CATEGORIES
MTL_ITEM_CATEGORIES
MTL_SYSTEM_ITEMS
ORG_ORGANIZATION_DEFINITIONS
MTL_ORGANIZATIONS

INV Item SubInventory
MTL_ITEM_SUB_INVENTORIES
ORG_ORGANIZATION_DEFINITIONS
MTL_SYSTEM_ITEMS_B
MTL_ITEM_LOCATIONS
MTL_SECONDARY_LOCATORS


AttachmentsFND_DOCUMENTS_LONG_TEXT
FND_DOCUMENTS_SHORT_TEXT
FND_DOCUMENT_CATEGORIES_TL
FND_DOCUMENT_DATATYPES
FND_DOCUMENTS_TL
FND_DOCUMENTS
FND_ATTACHED_DOCUMENTS

FND_DOC_CATEGORY_USAGES

Useful Queries for DataBase Instance

-- Database Details  SELECT * FROM v$database
-- Instance Details 
SELECT * FROM v$instance
-- License Details  
SELECT * FROM v$license
-- Version Details  
SELECT * FROM v$version
--Release Details   
SELECT * FROM apps.fnd_product_groups
-- Patch Details    
SELECT * FROM ad_applied_patchesSELECT * FROM ad_bugs

Number of Scheduled process by requestor

Number of Scheduled process by requestor :

requestor, count(*) FROM WHERE
PHASE_CODE
STATUS_CODE
group
= 'P' AND IN ('I', 'Q') by requestor order by count(*) desc
SELECT
FND_CONC_REQ_SUMMARY_V

AR Receipts Issue

Issue :

Error in query  Receipts : CE_BANK_AND_ACCOUNT_UTIL.GET_MASKED_BANK_ACCT_NUM not found.

Solution  :
update  REMIT_BANK_ACCT_USE_ID with correct ID in  ar_cash_receipts_all

AP Issue , Create Accounting

Issue :

Subledger Accounting was unable to derive an accounting code combination using the account derivation rule Discount Account owned by Oracle. Please review the account derivation rule and make sure it derives a valid accounting flexfield combination for the source values passed for the transaction.


Solution:
 solved the issue with
1.Go to Setup -> Options -> Financials Options
2.Select the Accounting Tab
3.Change the value for the discount taken account.
4.Save
5.Change the value for the discount taken account back to it's original value.
6.Save
7.Run accounting and the discount lines for that org will account properly.
8.Repeat steps 1-7 for all orgs.

Issue In AP Payment , Creating Accounting

Issue  In AP Payment  , Creating accounting  :

 “Subledger Accounting was unable to derive an accounting code combination using the account derivation rule Future Dated Payment Account owned by Oracle. Please review the account derivation rule and make sure it derives a valid accounting flexfield combination for the source values passed for the transaction.”

Soloution : 
I solved the issue with add account number in supplier > terms and control > bill payable: