You are on page 1of 6

ORACLE RECEIVABLES

Receivables Tables

Auto Invoice transfers transaction data from the interface tables RA_INTERFACE_LINES_ALL,
RA_INTERFACE_SALESCREDITS_ALL, and RA_INTERFACE_DISTRIBUTIONS_ALL into the
following
Receivables tables:

• RA_BATCHES_ALL

• RA_CUSTOMER_TRX _ALL

• RA_CUSTOMER_TRX_LINES _ALL

• RA_CUST_TRX_LINE_GL_DIST_ALL

• RA_CUST_TRX_LINE_SALESREPS_ALL

• AR_PAYMENT_SCHEDULES_ALL

• AR_RECEIVABLE_APPLICATIONS_ALL

• AR_ADJUSTMENTS_ALL

RA_CUST_TRX_LINE_GL_DIST_ALL

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. Oracle Receivables
creates one row for each accounting distribution, and at least one accounting distribution must exist
for each invoice or credit memo line. Each row in this table includes the General Ledger account and
the amount of the accounting entry. The AMOUNT column is required even though this column is
Null allowed. Receivable uses this information to post the proper amounts to General Ledger.
If your invoice or credit memo has a transaction type where Post to GL is set to No, Receivables
assigns Null to the GL_DATE column.

RA_CUST_TRX_LINE_SALESREPS_ALL

The RA_CUST_TRX_LINE_SALESREPS_ALL table stores sales credit assignments for invoice lines.
If Receivables bases your invoice distributions on sales credits, a mapping exists between the sales
credit assignments in this table with the RA_CUST_TRX_LINE_GL_DIST_ALL table.
The primary key for this table is CUST_TRX_LINE_SALESREP_ID.
AR_PAYMENT_SCHEDULES_ALL

The AR_PAYMENT_SCHEDULES_ALL table stores all transactions except adjustments and


miscellaneous cash receipts. Oracle Receivables updates this table when activity occurs against an
invoice, debit memo, charge back, credit memo, on–account credit, or receipt. Oracle
Receivables groups different transactions by entering one of these values in the CLASS column:

• INV – Invoice
• DM – Debit Memo
• GUAR – Guarantee
• CM – Credit Memo
• DEP – Deposit
• CB – Charge back
• PMT – Receipt

IMPORTANT

WHEN YOU ENTER INVOICE ONE ROW IS ALSO GET INSERTED IN AR_PAYMENT_SCHEDULES_
ALL WHEN YOU DO CASH RECEIPT AGAINEST ABOVE ENTERED INVOICE THEN RESPECTIVE
COLUMNS IN AR_PAYMENT_SCHEDULES_ALL GET'S UPDEATED

BUT WHEN YOU DO MISC RECEIPT THEN IT DOES NOT INSERT RECORD IN
AR_PAYMENT_SCHEDULES_ALL THIS TABLE.

SELECT
PAYMENT_SCHEDULE_ID PSCH_ID
,AMOUNT_DUE_ORIGINAL ORG_AMT
,NUMBER_OF_DUE_DATES INST
-- ,DUE_DATE DUE_ATE
-- ,AMOUNT_DUE_ORIGINAL AMT_DUE_ORIG
,AMOUNT_DUE_REMAINING AMT_DUE_REMAIN
-- ,SUBSTR(STATUS,1,5) STATUS
-- ,SUBSTR(INVOICE_CURRENCY_CODE,1,5) INV_CURR
-- ,SUBSTR(CLASS,1,5) CLASS
-- ,CUST_TRX_TYPE_ID TRX_TYPE
-- ,CUSTOMER_ID CUST_ID
-- ,CUSTOMER_SITE_USE_ID CUST_SITE
-- ,CUSTOMER_TRX_ID TRX_ID
-- ,CASH_RECEIPT_ID CASH_ID
-- ,ASSOCIATED_CASH_RECEIPT_ID ASSO_CASH_ID
,AMOUNT_APPLIED AMT_APPLIED
,CASH_APPLIED_DATE_LAST CSH_APP_LST_DT
,CASH_APPLIED_AMOUNT_LAST CSH_APP_LST_AMT
,SUBSTR(CASH_APPLIED_STATUS_LAST,1,3) CSH_APP_LST_STATUS
,CASH_GL_DATE_LAST CSH_APP_LST_GL_DT
/* ,CASH_RECEIPT_DATE_LAST CSH_RCT_DT
,CASH_RECEIPT_AMOUNT_LAST CSH_RCT_AMT
,CASH_RECEIPT_STATUS_LAST CSH_RCT_STATUS */
FROM
AR_PAYMENT_SCHEDULES_ALL
WHERE
CUSTOMER_TRX_ID = 44325

Invoices
When you enter an AR invoice either through the Transaction window or through the Auto Invoice
program, Receivables uses the following tables to store your invoice information:

• RA_CUSTOMER_TRX

• RA_CUSTOMER_TRX_LINES

• RA_CUST_TRX_LINE_GL_DIST

• AR_PAYMENT_SCHEDULES

RA_CUSTOMER_TRX_LINES

The line_type column identifies the type of data contained in the record. Valid line types are
CHARGES, FREIGHT, LINE and TAX. Any record with a line type of TAX or FREIGHT refers to the
original invoice line via the link_to_cust_trx_line_id column, except for header freight transactions.
The total amount for each transaction line is stored in the column extended_amount.

RA_CUSTOMER_TRX_LINES RCTL

i.e. RCTL.LINK_TO_CUST_TRX_LINE_ID = RCTL.CUSTOMER_TRX_LINE_ID

It defines to which line tax is applied.

If freight is applied at the header– level, it is not linked to any line and the column, in RCTL.
link_to_cust_trx_line_id is null.

SELECT
customer_trx_line_id, customer_trx_id, link_to_cust_trx_line_id, line_type,
extended_amount
FROM
ra_customer_trx_lines
WHERE
customer_trx_id = 44574
When you create an invoice following tables are getting updated.
RA_CUSTOMER_TRX

RA_CUSTOMER_TRX_LINES

RA_CUST_TRX_LINES_SALESREPS

RA_CUST_TRX_LINE_GL_DIST

AR_PAYMENT_SCHEDULES  Only When you complete the invoice.

GURANTEE OR DIPOSIT

Receivables uses the following tables to store your commitment(Guar / Deposit) information:

. RA_CUSTOMER_TRX

. RA_CUSTOMER_TRX_LINES

. RA_CUST_TRX_LINE_GL_DIST

. AR_PAYMENT_SCHEDULES

Applying Invoices to Deposit Or Gurantee

Receivables uses the following tables to store your invoice and deposit information:

. RA_CUSTOMER_TRX

. RA_CUSTOMER_TRX_LINES

. RA_CUST_TRX_LINE_GL_DIST

. AR_PAYMENT_SCHEDULES

. AR_ADJUSTMENTS
UNAPPLIED RECEIPTS

Receivables uses the following tables to store your receipt information:

. AR_CASH_RECEIPTS

. AR_CASH_RECEIPT_HISTORY

. AR_PAYMENT_SCHEDULES

. AR_RECEIVABLE_APPLICATIONS

QUERY FOR AR_CASH_RECEIPTS

SELECT
cash_receipt_id
,amount
,SUBSTR(status,1,10) status
,receipt_number
,type
FROM
AR_CASH_RECEIPTS
WHERE
receipt_number = 'R-01'
/

QUERY FOR AR_CASH_RECEIPT_HISTORY

SELECT
cash_receipt_history_id
,amount
,SUBSTR(status,1,10) status
FROM
AR_CASH_RECEIPT_HISTORY
WHERE
cash_receipt_Id = 4582
/
QUERY FOR AR_PAYMENT_SCHEDULES

SELECT
payment_schedule_id P_SCH_ID
,amount_due_original AMT_ORIG
,amount_due_remaining AMT_DUE
,cash_receipt_id
,customer_trx_id
,SUBSTR(trx_number,1,5) INV_NO
,SUBSTR(status,1,10)STATUS
,amount_applied AMT_APPLIED
,SUBSTR(class,1,5) CLASS
FROM
AR_PAYMENT_SCHEDULES
WHERE
CASH_RECEIPT_ID = 4582
/

QUERY FOR AR_RECEIVABLE_APPLICATIONS

SELECT
payment_schedule_id
,amount_applied
,SUBSTR(status,1,8) status
-- ,payment_schedule_id
-- ,code_combination_id
-- ,cash_receipt_id
,applied_payment_schedule_id
,applied_customer_trx_id
FROM
AR_RECEIVABLE_APPLICATIONS
WHERE
cash_receipt_id = 4582

You might also like