Beruflich Dokumente
Kultur Dokumente
Note:1057131.6
ID: AIN
Subj HOW TO ENSURE THAT AR IS Creation Date:
20-AUG-
ect: POSTING TO GL AND THAT
1998
CONTENT MATCHES
Type Last Revision 13-JAN-
PROBLEM
: Date: 2004
Statu
PUBLISHED
s:
Overview
--------
Reports
-------
The report shows detail by General Ledger Batch. The Batch name
includes
the Accounts Receivable Posting Control Id. This Id can be used to tie
the transactions together.
If you are Multi-Org and have more than one install of Accounts
Receivable,
then run the Journal Entries Report for each Accounts Receivable.
Combine
these results and compare them to the Account Analysis Report.
Accounts
Receivable can be divided into several Organizations, but General
Ledger
is always combined.
Preparation
-----------
If you reply 'N', the records are waiting on the GL_interface table.
You
must go into General Ledger, run the Interface, and import all rows
before
running the Account Analysis in General Ledger.
When you run your reports, restrict them by period, not by accounts.
For
the Account Analysis Report, look for actual transactions, not budgeted
ones.
Now, you are ready to run several scripts to verify the data.
3. Rows are read from the GL_Interface table. The posting control id
and
gl_posted date are updated on the original Accounts Receivable
tables.
o GL_JE_BATCHES
o GL_JE_HEADERS
o GL_JE_LINES
AR_RECEIVABLE_APPLICATIONS_ALL
For Credit memos, the rows stored on this table are the
transactions against the Receivable account of the
invoice, and
the opposing entry is the REC of the credit memo stored on
RA_CUST_TRX_LINE_GL_DIST_ALL.
AR_MISC_CASH_DISTRIBUTIONS_ALL
AR_CASH_RECEIPT_HISTORY_ALL
AR_ADJUSTMENTS_ALL
RA_CUST_TRX_LINE_GL_DIST_ALL
SQL Scripts
-----------
The SQL scripts in this article are written for Applications Release
10.7.
Remove the '_all' for the scripts to work on lower versions of Release
10.
Select code_combination_id,
segment1,segment2,segment3,segment4,
segment5,segment6, segment7 from gl_code_combinations
where segment1 like '01%'
and segment2 like '110%'
and segment3 like '000%'
and segment4 like '1515%'
and segment6 like '000%'
and segment7 like '000000%';
1234, 01,110,000,1515,000,000000
Look for all the posting_control_id that have been created in this
period. Check the RUN_GL_JOURNAL_IMPORT_FLAG to see if any of the
runs show an 'N'. If so, they have not been passed to General
Ledger
yet.
If you find records here, then pull them into the General Ledger.
This can be done by rerunning the General Ledger Interface from
Accounts Receivable if you have a close pending on your Accounts
Receivable General Ledger period. Or, you can run it from the
General
Ledger.
4. For Category Trade Receipts (AR), you can run the query below
against
your table to determine the total for the rows. Use the
code_combination_id that you decided upon in Step 1:
Select sum(amount_applied),sum(EARNED_DISCOUNT_TAKEN),
sum(UNEARNED_DISCOUNT_TAKEN)
,code_combination_id,posting_control_id
from ar_receivable_applications_all where application_type =
'CASH'
and gl_date between '&start' and '&end'
and code_combination_id = &ccid
group by code_combination_id,posting_control_id;
If you see any rows where posting_control_id = -3, then you have
not
posted everything in the period. Go back and post them again.
Then,
start the procedure from the start, rerunning all the reports and
scripts.
1003875
AR 1003035 Receivables 1464146: A 1003035
6. Identify the je_batch_id's that you want and the category name
(Trade Receipts USD, Sales Invoices USD, Misc Receipts USD) and
use this information in the query below. In this example, Trade
Receipts is used:
1004299
Trade Receipts USD
Select b.je_batch_id,a.je_header_id,a.code_combination_id,
a.entered_dr,a.entered_cr from gl_je_lines a,gl_je_headers
b
where a.code_combination_id = &ccid
and b.je_batch_id in (&1batchid,&2batchid,&3batchid)
and a.je_header_id = b.je_header_id
and b.name like 'Trade Receipts%'
order by b.je_batch_id,a.je_header_id;
Select
b.je_batch_id,a.code_combination_id,sum(a.entered_dr),
sum(a.entered_cr) from gl_je_lines a,gl_je_headers b
where a.code_combination_id = &ccid
and b.je_batch_id in (&1batchid,&2batchid,&3batchid)
and a.je_header_id = b.je_header_id
and b.name like 'Trade Receipts%'
group by b.je_batch_id,a.code_combination_id;
8. To see what is in GL and not in AR, you can run the opposite:
Select
b.je_batch_id,a.code_combination_id,sum(a.entered_dr),
sum(a.entered_cr) from gl_je_lines a,gl_je_headers b
where a.code_combination_id = &ccid
and a.period_name = '&mon-yy'
and a.je_header_id = b.je_header_id
and b.name like 'Trade Receipts%'
group by b.je_batch_id,a.code_combination_id;
For trade receipts, run the following query to look for the total
in
AR:
Select sum(amount_applied),sum(EARNED_DISCOUNT_TAKEN),
sum(UNEARNED_DISCOUNT_TAKEN) ,
code_combination_id,posting_control_id,gl_posted_date
from ar_receivable_applications_all where application_type
= 'CASH'
and posting_control_id = &postincontrolid
and code_combination_id = &ccid
group by
code_combination_id,posting_control_id,gl_posted_date;
The only way to recover from this is to unpost the run in Accounts
Receivable and post it again so that it goes into General Ledger.
10. If you use the Journal Entries Report to give you a total for a
particular General Ledger account, realize that this account can
be used in any given category.
If your CASH and REC accounts are used as the same account, many
of your transactions will be invisible.
If you have a problem with the account being used, look at the
accounts
defined under your Receipt Class/Methods for Cash, Unapplied, and
On
Account.