Featured post

General Ledger Revaluation

General Ledger Revaluation Account balances denominated in foreign currencies are adjusted through the revaluation procedure. Revaluat...

Showing posts with label Accounts Receivable. Show all posts
Showing posts with label Accounts Receivable. Show all posts

Monday, 26 September 2022

How to Default Input VAT tax or any tax from Receivable Transaction Fusion Cloud

How to Default Input VAT tax or any tax from Receivable Transaction 

 

The Manage Application Tax Option is set for product Receivables, for this specific BU, to default the tax classification code S4, based on Receivable system options.

But the setup is not complete: in Manage Receivables System options the Item Validation Organization is snot set.

However, the Tax Classification information is changed and it is trying to default a new one when the transaction line Item/Memo Line/ Description is changed, because the used Transaction Type is checked the Default Tax Classification Code option.

If the business requirement is to not default the Tax Classification code for transaction line, then please uncheck this option for used transaction type:

1. Got to Setup and Maintenance > Financials Setup > Customer billing

2. Manage transaction types task > Search by issue transaction type name

3. Ensure the flag - Default tax classification code is disabled

4. Retest the issue

Wednesday, 24 August 2022

Fusion – Sample Payload For FindCustomerAccount Operation In TCA Account Web Service

SOLUTION
Below are some sample payload for findCustomerAccountOperation:
<soapenv:Envelope xmlns:soapenv=”http://schemas.xmlsoap.org/soap/envelope/” xmlns:typ=”http://xmlns.oracle.com/apps/cdm/foundation/parties/customerAccountService/applicationModule/types/” xmlns:typ1=”http://xmlns.oracle.com/adf/svc/types/”>
<soapenv:Header/>
<soapenv:Body>
<typ:findCustomerAccount>
<typ:findCriteria>
<typ1:fetchStart>0</typ1:fetchStart>
<typ1:fetchSize>1</typ1:fetchSize>
<typ1:filter>
<typ1:conjunction/>
<typ1:group>
<typ1:conjunction/>
<typ1:upperCaseCompare>false</typ1:upperCaseCompare>
<typ1:item>
<typ1:conjunction/>
<typ1:upperCaseCompare>false</typ1:upperCaseCompare>
<typ1:attribute>AccountNumber</typ1:attribute>
<typ1:operator>=</typ1:operator>
<typ1:value>GB000557</typ1:value>
</typ1:item>
</typ1:group>
<typ1:nested/>
</typ1:filter>
<typ1:excludeAttribute>false</typ1:excludeAttribute>
</typ:findCriteria>
<typ:findControl>
<typ1:retrieveAllTranslations>false</typ1:retrieveAllTranslations>
</typ:findControl>
</typ:findCustomerAccount>
</soapenv:Body>
</soapenv:Envelope>

OR

<soapenv:Envelope xmlns:soapenv=”http://schemas.xmlsoap.org/soap/envelope/” xmlns:typ=”http://xmlns.oracle.com/apps/cdm/foundation/parties/customerAccountService/applicationModule/types/” xmlns:typ1=”http://xmlns.oracle.com/adf/svc/types/”>
<soapenv:Header/>
<soapenv:Body>
<typ:findCustomerAccount>
<typ:findCriteria>
<typ1:fetchStart>0</typ1:fetchStart>
<typ1:fetchSize>1</typ1:fetchSize>
<typ1:filter>
<typ1:conjunction/>
<typ1:group>
<typ1:conjunction/>
<typ1:upperCaseCompare>false</typ1:upperCaseCompare>
<typ1:item>
<typ1:conjunction/>
<typ1:upperCaseCompare>false</typ1:upperCaseCompare>
<typ1:attribute>PartyId</typ1:attribute>
<typ1:operator>=</typ1:operator>
<typ1:value>300000001496090</typ1:value>
</typ1:item>
</typ1:group>
<typ1:nested/>
</typ1:filter>
<typ1:excludeAttribute>false</typ1:excludeAttribute>
</typ:findCriteria>
<typ:findControl>
<typ1:retrieveAllTranslations>false</typ1:retrieveAllTranslations>
</typ:findControl>
</typ:findCustomerAccount>
</soapenv:Body>
</soapenv:Envelope>

Sunday, 8 August 2021

Revenue Recognition and Invoicing Rules explained

Revenue recognition principle is an important accounting principle, which is the main difference between cash basis accounting and accrual basis accounting. In cash basis accounting revenues are simply recognized when cash is received no matter when and how the services were performed or goods delivered. In accrual basis accounting revenues are recognized when they are (1) realized or realizable and (2) earned no matter when cash is received.

Invoicing Rules and Accounting Rules:

In Oracle AR, the invoicing and accounting rules help create invoices that span several accounting periods. Accounting rules determine the accounting period or periods in which the revenue distributions for an invoice line are recorded. Invoicing rules determine the accounting period in which the receivable amount is recorded.

Accounting Rules:


Accounting rules determines revenue recognition schedules for invoice lines. Different accounting rules can be assigned to each invoice line. Using Accounting rules, the number of periods and the percentage of the total revenue to recognize in each period can be specified. Also accounting rules can be Fixed or Variable Duration.

Clients can also create rules that will defer revenue to an unearned revenue account. This helps in the delay of specifying the revenue recognition schedule until the exact details are known. When these details are known, clients use the Actions wizard to recognize the revenue.

Creating Accounting Entries:
• Accounting distributions are created only after the Revenue Recognition program is run.
• For Bill in Advance, the offset account to accounts receivable is Unearned Revenue.
• For Bill in Arrears, the offset account to accounts receivable is Unbilled Receivables.
• Accounting distributions are created for all periods when Revenue Recognition is run.

Running The Revenue Recognition Program:
• The Revenue Recognition program gives control over the creation of accounting entries.
• Submit the Revenue Recognition program manually through the Run Revenue Recognition window.
• The Revenue Recognition program will also be submitted when posting to Oracle GL.
• The program processes revenue by transaction, rather than by accounting period.
• Only new transactions are selected each time the process is run.
Invoicing Rules:

Invoicing rules determines when to recognize receivable for invoices that span more than one accounting period. Clients can only assign one invoicing rule to an invoice. Receivables provides the following invoicing rules:
• Bill In Advance: Use this rule to recognize your receivable immediately.
• Bill In Arrears: Use this rule if you want to record the receivable at the end of the revenue recognition schedule.

Tuesday, 21 May 2019

AR Adjustments to SLA Link R12

AR Adjustments to SLA Link R12

Accounting Data Model – Adjustments
•Where postable <> ‘N’
•Status should be ‘A’
•Distributions stored in AR_DISTRIBUTIONS_ALL (source_table=ADJ)
•Debit & credit amounts should match
•Adjustments Status = ‘W’ (Waiting for Approval) to either A or R
•Adjustments with status R (Reject) should not be processed i.e. EVENT_STATUS_CODE=N
•PROCESS_STATUS_CODE=U in XLA_EVENTS
AR_ADJUSTMENTS table
Important columns in the AR_ADJUSTMENTS table include:
ADJUSTMENT_ID column
AMOUNT column
CUSTOMER_TRX_ID column
TYPE column
PAYMENT_SCHEDULE_ID column
CODE_COMBINATION_ID column
The AR_ADJUSTMENTS table stores information about invoice adjustments. Each adjustment is stored as a unique record, based on the primary key adjustment_id. The amount column stores the amount of the adjustment. Receivables uses the customer_trx_id and payment_schedule_id to link the adjustment to the adjusted transaction and to update the amount_due_remaining and amount_adjusted columns of the adjusted transaction payment schedule in the AR_PAYMENT_SCHEDULES table.
The type column stores a description of the transaction to which the adjustment applies. Valid types include:
Charges Adjustments
Freight Adjustments
Invoice Adjustments
Line Adjustments
Tax Adjustments
The code_combination_id column stores the accounting distribution associated with the adjustment transaction.

AR Reconciliation – Internal (Within AR) and External (GL) in R12

AR Reconciliation – Internal (Within AR) and External (GL) in R12

Ref: Oracle Webcast – Oracle receivables posting & Reconciliation in R12

Data flow between AR and SLA

Data flow between AR and SLA

Queries to retrieve data from XLA tables for a given AR transaction
Q1) Get the customer_trx_id for the transaction number
SELECT *
FROM ra_customer_trx_all
WHERE trx_number = &trx_number;
Q2) Get the entity_id of the transaction
SELECT *
FROM xla_transaction_entities_upg
WHERE application_id = 222
AND ledger_id = 62
AND source_id_int_1 = &customer_trx_id_from_Q1;
Q3) Get the events associated to the entity
SELECT *
FROM xla_events
WHERE application_id = 222
AND entity_id = &entity_id_from_Q2;
Q4) Get the headers associated to the event
SELECT *
FROM xla_ae_headers
WHERE application_id = 222
AND event_id in (&event_id_from_Q3);
Q5) Get the lines associated to the headers
SELECT *
FROM xla_ae_lines
WHERE application_id = 222
AND ae_header_id in (&ae_header_id_from_Q4);
Q6) Get the distributions associated to the headers
SELECT *
FROM xla_distribution_links
WHERE application_id = 222
AND ae_header_id in (&ae_header_id_from_Q4);
Data flow during Accounting:
Step 1) Create a Transaction in AR and save it. Data gets populated in xla_transaction_entities and xla_events. Review the data in xla_events and check the event_status_code for the event_id.
Step 2) Complete the Transaction in AR. Event_status_code in xla_events table moves from status ‘I’ (Incomplete) to ‘U'(Unprocessed). Process_status_code column remains ‘U’
ACTION: COMPLETE TRANSACTION:
RA_CUSTOMER_TRX_ALL.CUSTOMER_TRX_ID = RA_CUST_TRX_LINE_GL_DIST_ALL.CUSTOMER_TRX_ID
RA_CUSTOMER_TRX_ALL.CUSTOMER_TRX_ID = XLA_TRANSACTION_ENTITIES.SOURCE_ID_INT_1
XLA_TRANSACTION_ENTITIES.ENTITY_ID = XLA_EVENTS.ENTITY_ID
Step 3) Create Accounting for the Transaction in ‘Draft’ mode. Data would now be populated in xla_ae_headers, xla_ae_lines and xla_distribution_links. Review  the data in all the xla tables. xla_events.process_status_code and xla_ae_headers.accounting_entry_status_code are both  ‘D'(‘Draft’) at this stage.  xla_events.event_status_code remains ‘U’ and is eligible to be accounted again.
Step 4) Create accounting in ‘Final’ mode with ‘Transfer to GL’ option. Review the data in XLA tables.
            xla_events.event_Status_code –> ‘P'(Processed)
            xla_events.process_status_code –> ‘P'(Processed)
            xla_ae_headers.accounting_entry_status_code –> ‘F’ (Final)
            xla_ae_headers.gl_transfer_status_code –> ‘Y’ (Transferred to GL)
            xla_ae_lines.gl_sl_link_id –> Populated (gets populated during final accounting)
ACTION: RUN CREATE ACCOUNTING: 
RA_CUST_TRX_LINE_GL_DIST_ALL.CUST_TRX_LINE_GL_DIST_ID = XLA_DISTRIBUTION_LINKS.SOURCE_DISTRIBUTION_ID_NUM_1
XLA_AE_LINES.AE_HEADER_ID = XLA_DISTRIBUTION_LINKS.AE_HEADER_ID
XLA_AE_HEADERS.AE_HEADER_ID = XLA_DISTRIBUTION_LINKS.AE_HEADER_ID
ACTION: RUN TRANSFER TO GL: 
XLA_AE_LINES.GL_SL_LINK_ID = GL_JE_LINES.GL_SL_LINK_ID
XLA_AE_LINES.GL_SL_LINK_ID = GL_IMPORT_REFERENCES.GL_SL_LINK_ID
GL_IMPORT_REFERENCES.JE_HEADER_ID = GL_JE_LINES.JE_HEADER_ID
GL_IMPORT_REFERENCES.JE_HEADER_ID = GL_JE_HEADERS.JE_HEADER_ID
The data that actually posts to the GL comes from the XLA tables and not AR. Depending on the Application Accounting Definition (AAD) rules you have defined, one row that appears in AR could become 10 rows in XLA_DISTRIBUTION_LINKS, but when the data is posted into the GL, the accounts of the same type and ccid are merged to a single entry.
For example, a transaction could have 34 gl_dist rows, but 201 rows in ar_distribution_links, but when it actually posts, consolidates to 9 rows in gl_import_references.
The main link to bind information together is the GL_SL_LINK_ID. This field exists in GL_JE_LINES, GL_IMPORT_REFERENCES and XLA_AE_LINES tables.
Also, the XLA_DISTRIBUTION_LINKS table contains the application_id, event_id, ae_header_id, ae_line_num from the XLA Tables and source_distribution_id_num_1 will be the cust_trx_line_gl_dist_id in the case of a transaction.
Ref: Doc ID 1614389.1 & 879072.1

Columns in XLA_AE_HEADERS and Transfer Status

What columns in XLA_AE_HEADERS indicate the Transfer Status of accounting data in subledger?

The XLA_AE_HEADERS table shows the transfer status of the accounting data, after successful transfer to the GL and Journal Import:
XLA_AE_HEADERS.gl_transfer_status_code = Y
XLA_AE_HEADERS.gl_transfer_date is not null
XLA_AE_HEADERS.group_id is not null
For 11i data upgraded to R12, the transfer status can be determined using the following
XLA_AE_HEADERS.gl_transfer_status_code = Y
XLA_AE_HEADERS.gl_transfer_date is null
XLA_AE_HEADERS.group_id is null
XLA_AE_HEADERS.upg_batch_id is not null  –> indicates 11i data

What are the tables involved in the Transfer to GL and GL posting

What are the tables involved in the Transfer to GL and GL posting?

Subledger Tables 
XLA_AE_HEADERS 
XLA_AE_LINES 
XLA_DISTRIBUTION_LINKS 
a) Transfer Journal Entries to GL (XLAGLTRN) process takes the subledger journals and inserts records into the Interface Tables 
Interface Tables 
GL_INTERFACE / XLA_GLT_<groupid> 
b) Journal Import (GLLEZL) then reads from the interface table and creates records in the GL Tables 
GL Tables 
GL_JE_BATCHES 
GL_JE_HEADERS 
GL_JE_LINES 
GL_IMPORT_REFERENCES 
c) GL Posting process then posts to the GL_BALANCES table. 
Ref: Doc ID 876190.1

Monday, 8 October 2018

COGS vs DCOGS - Few important points

COGS vs DCOGS - Few important points

What are COGS & DCOGS ?

The purpose of this document is to explain how COGS Recognition works on Create Accounting engine.

There is no Deferred COGS functionality in 11i, this functionality was introduced in R12 to be compliant with the Sarbanes-Oxley legislation, hence before R12 there is no Cogs Recognition process. In 11i a sales order issue will be costed hitting the COGS account directly hence there is no Cogs recognition process, the normal accounting template for Sales order issue (no intercompany) will be Debit Cogs and Credit the Inventory valuation from where the item is being issued from.

 

QUESTIONS AND ANSWERS

1 - When does an RMA debit  inventory and credit  DCOGS account?
A. RMA has created after COGS Recognition. So RMA debits inventory and credits COGS account. If RMA happens before COGS Recognition then RMA debits inventory and credits DCOGS account.

2 - Why there is no accounting for COGS recognition?
A. There is no accounting for COGS recognition because it has zero quantity.
Reason :- Customer has created RMA against this Sales Order Line.

3 - No COGS Recognized (COGS will never be recognized as there is no reference to the original invoice). Why?
A.  COGS recognition is designed to match with AR revenue recognition.If you don't have an invoice yet but only a credit memo, what would be the percentage of revenue recognized from AR?
Ej:
The COGS recognition is not going to happen at the individual RMA level, it is at the order line level that has been shipped.
Say you have debited the Deferred COGS for the original shipment at $100, then you have credited the Deferred COGS for the RMA receipt at $40. The net Deferred COGS is $60, so far so good. After the credit memo and invoice have gone through, what matters at this point of time is how much net percentage of revenue is recognized from AR for this order line. Suppose a 50% revenue recognized, then a distinct COGS recognition transaction is going to be created that will credit deferred COGS at $30 and debit COGS at $30. The accounting of original shipment and RMA transactions would not change, but the additional COGS recognition transaction will make the order line's recognized COGS to be matched with recognized revenue.

4 - Why Inter company COGS account is not working after completing mandatory setup?
A. There is a difference between the internal order flow and drop shipment or global procurement flow. The intercompany COGS account defined in the Inter-company Relations form is only used in drop shipment and global procurement flows. For internal order flows, the account is driven by the Inventory Cost of Goods Sold Account workflow. In default, the workflow process uses the item COGS account, but the user can configure the process to use any other account.

Other references:
Note 747638.1 - R12 Where To Define Inventory Cost Of Goods Sold Account Workflow
Transfer Price Accounting in Oracle SCM, Feb 2006 (Note 360106.1).

5 - How to diagnose missing COGS Recognition events?
A. Checking whether the COGS events are costed is easy, you just verify mmt.costed_flag. Checking whether COGS events are created is more functional and less simple. You can use the R12 Revenue COGS matching report to find out whether the result is expected. If the expected COGS recognition percentage does not match Revenue percentage, there could be a potential problem.

6 - Can we close the Inventory period without running the
COGS recognition concurrent programs? If not, what prevents it? If so,
what are the entries that are created when the recognition is run the
following month and the inventory period for the current month is
closed?
A. If the customer is using perpetual Costing Method "Standard", "Average", "Layer" then the inventory period can be closed prior COGS recognition process. If the customer is using PAC then the "Collect Revenue" and "AR period" needs to be closed prior PAC period close.

7 - How to derive COGS Account Cost Center using Salesperson Value from Sales Order form in Order Management thru SLA?
A. Looking at gmf_xla_extract_headers, for the OM issue from stores transaction, the transaction_id on that row points to a row in mtl_material_transactions and the column source_line_id in that table points to the line_id in oe_order_lines_all.

8 - Why when generating  Accounting--the COGS , accounting does not follow the Revenue Accounting for the Receivable Invoices?
A. COGS account in Oracle EBS is driven and derived from Order Management COGS account generator workflow. If you need help for that workflow, contact Order Management team.

9 - Is there a way for Cost Management SLA (Subledger Account) to utilize the same sources as the AR SLA?
A. Right now, there is no built-in cross reference of sources in SLA between Receivables and Cost Management. There are two options for the customer:
a - Inside SLA, build a few custom sources for Cost Management Application that the customer is using for Receivables.
b - Even though the deferred COGS account is a fixed organization parameter, the true COGS account is derived from Order Management COGS Account Workflow. That is well-known in 11i and the functionality remains in R12. The logic can be mimicked inside the workflow.

10 - Trying to generate Deferred COGS but instead the Inventory Accrual account appears on the Inter-company AP invoice. How can they get this to be a deferred accrual account?
A. There is only deferred COGS, no such a thing called deferred accrual. To do the drop shipment right, you need to set up the transaction flow and inter-company relations with advanced accounting, not the shipping network setup.

When the setup is right, you would get one physical transaction out of OU2, one logical transaction for OU2, and two logical txns for OU1. The logical sales order issue transaction of OU1 will hit deferred COGS account. The deferred COGS will be transformed into true COGS after you run the COGS recognition programs. As for the inter-company AP invoice, it should use the intercompany accrual account defined in the inter-company relations form. There is no concept of deferred accrual.

Please see  Inventory documentation about transaction flow setup and Cost Management User's Guide on Revenue and COGS Matching for more details.

11 - COGS account is going 100% into the account instead of getting deferred into 5 groups. Our revenue accounting rule splits the revenue into 5 deferred periods and we expect the COGS to do the same. I ran the 3 programs under Cost Management (Resp.) -> COGS accounting and the Material Distributions is still going 100% into a single account, instead of creating 5 records for 20% each in each period.  Why?
A: For a given sales order shipment, it always goes to 100% deferred COGS at first. Then after you run those programs for each period and assuming AR passes the right percentage of revenue recognition, we will move from deferred COGS to COGS accordingly. For example, at period 1, if AR says 20% revenue recognized, then you then programs and you will have 80% deferred COGS and 20% COGS. And at period 2, if AR says now 40% revenue recognized, you run the programs and you will have net 60% deferred COGS and 40% COGS.

12 - After the COGS generation program is run, COGS entry can be viewed from Material Transactions Distribution screen in Inventory. The COGS account is wrong as the workflow was not updated.  How to change the cogs account after it is generated?
A. The COGS entry is recorded in material distribution, sub-ledger accounting (SLA) and general ledger. There is no way to go back to re-cost or re-account for old transactions. Practically speaking, the best way is to manually adjust them inside GL and move forward with the correct accounting for new transactions.

13 - How to use COGS Account Relationship to Advanced Pricing?
A. n order to get it working, both profile options INV:Inter-company Invoice for Internal Orders and CST: Transfer Pricing Option must be set to Yes at site level. Cost manager is at global level, there is no support at responsibility level. Please study the following white papers:

- Transfer Price Accounting in Oracle SCM, Feb 2006 (Note 360106.1)
- Overview of Inter-company Invoicing, July 2005 (Note  336129.1)
- Inter-company Invoicing and Advance Pricing Integration, May 2002  (Note 733873.1)

14 - RMA Receipt transaction does not credit actual Cogs Account. Why?
A. This is intended behavior in R12.

For RMA receipt Transaction with reference to original Sales Order document will create below accounting distribution:
Dr.Inv
      Cr.Deferred COGS
There will be separate COGS Adjusting entries created for the COGS Adjustment based on the COGS Recognition percentage.
Dr./Cr.COGS
     Cr./Dr.DCOGS

For RMA receipt Transaction without any reference to Sales Order document will create below accounting distribution:
Dr.Inv
    Cr.COGS
This will result in balanced journal entries.

15 - Sales Orders are for a single customer, linked to a single sales rep, and can contain an item A which, depending on the usage at sales order lines level, has to be linked to two distinct business lines.
Thus the same item used in the same order and in 2 sales order lines has to generate revenue account and cogs accounts linked to 2 distinct business lines. How this can be achieved ? Can we use the order line type for this ? Impacts on the AR and COGS auto-accounting ?

A. COGS and revenue accounts are not built the same way.

For revenue account, the auto-accounting allows to default your business line segment from the bill to site, the transaction type (AR one, not the OM one), the sales rep or the product. If the product is not the single driver for your business line segment value, does one of these other values could be used ? If not, it means the value will have to be corrected manually in the invoice, or a custom to be built depending on customer rules. For the COGS, it's generated by the account generator workflow, this can be customized to default the value expected by the customer.

17 - Can we "Turn Off" DCOGS in Release 12.0.x ?

A. Deferred COGS and Revenue-COGS matching are mandatory new features in R12 to help customers be legal-compliant. There is no standard way to support disabling this best-practice feature set.

18 - Why is COGS charged to the incorrect GL account?

A. COGS account is stamped as MMT's (MTL_MATERIAL_TRANSACTIONS table) distribution account, and it is driven by the Order Management Cost of Goods Sold Account workflow. Customers can configure the workflow process to achieve their business needs based on item types.

19 - In 11.5.10.x  mtl_material_transactions table and locator_id field was used to get information on inventory charged to projects. In R12 locator_id field is blank, how to find?

A. In EBS release 12.x.x COGS is a logical transaction --not a material transaction as 11.5.10.x.
     COGS transactions will not have project and locator information.

20 - Can COGS Recognition transactions created in a closed inventory period?

A. Refer Oracle Cost Management User Guide ->Revenue and COGS Matching ->Period Close Considerations Here its clearly mentioned that COGS Recognition transactions can be created in Closed Inventory Period. If the GL period is closed then COGs Recognition events/transactions will be created in next open GL period.

COGS PROCESSES:
------------------------------
-
 Record Order Management Transactions
- Collect Revenue Recognition Information
- Generate COGS Recognition Events

Related Reports:
----------
- Material Distribution Detail report
- COGS Revenue Matching report 


Some few other Links from oracle Support :

REFERENCES

NOTE:867912.1 - COGS and DCOGS Workflow
NOTE:360106.1 - Transfer Price Accounting in Oracle SCM
NOTE:549688.1 - Deferred COGS Is Not Hit When Intercompany Shipment Is Done
NOTE:733873.1 - Intercompany Invoicing (Chapter 19: R12 Inventory User's Guide in a Note)
NOTE:747638.1 - How To Define Inventory Cost Of Goods Sold Account Workflow?
NOTE:1307906.1 - COGS Dataflow and Diagnostics [Video]

Saturday, 28 April 2018

Powered Search Get a Free Magzine ...Profit:The Executive's Guide to Oracle Applications Get Updates! Subscribe to the OracleAppsHub to receive notifications when there are new posts: Enter your email address get RSS feed Categories 11i Advance Collection AOL API Integration ASC606 Basic Accounting Beginner Beyond Apps Blogroll Cash Management Centrestage Conversion Depot Repair EBS Suite EDI Emerging Technologies Finance Functional Fusion Fusion Application General Interest HRMS Hyperion Implementations Integration InterCompany JumpStart Localizations MDM Methodology/Process Misc News OPM Oracle Application Oracle Asset Oracle Cloud * Oracle Credit Management Oracle Diagnostics Oracle E-Business Tax Oracle eAM Oracle Footprint Oracle General Ledger Oracle ICM Oracle Legal Entity Configurator Oracle Manufacturing Oracle Order Management Oracle Payable Oracle Payment Module Oracle Pricing Oracle Product Oracle Property Manager Oracle Purchasing Oracle Receivable Oracle TCA Oracle Treasury Personalizations R12 Release12 Security SEPA Service Contracts Subledger Accounting Technical Tool Uncategorized Web ADI XBRL Archives March 2018 February 2018 December 2017 October 2017 September 2017 July 2017 June 2017 May 2017 March 2017 February 2017 November 2016 October 2016 August 2016 July 2016 June 2016 January 2016 November 2015 October 2015 August 2015 July 2015 June 2015 May 2015 March 2015 January 2015 December 2014 October 2014 August 2014 July 2014 May 2014 March 2014 February 2014 January 2014 December 2013 November 2013 October 2013 September 2013 August 2013 July 2013 June 2013 May 2013 April 2013 March 2013 February 2013 January 2013 December 2012 November 2012 October 2012 September 2012 July 2012 June 2012 May 2012 April 2012 March 2012 February 2012 January 2012 December 2011 November 2011 October 2011 September 2011 August 2011 July 2011 June 2011 May 2011 April 2011 March 2011 February 2011 January 2011 December 2010 November 2010 October 2010 September 2010 August 2010 June 2010 May 2010 April 2010 March 2010 February 2010 January 2010 December 2009 November 2009 October 2009 September 2009 August 2009 July 2009 June 2009 May 2009 April 2009 March 2009 February 2009 January 2009 December 2008 November 2008 October 2008 September 2008 August 2008 July 2008 June 2008 May 2008 April 2008 March 2008 February 2008 January 2008 December 2007 November 2007 October 2007 September 2007 August 2007 July 2007 June 2007 May 2007 April 2007 March 2007 February 2007 January 2007 December 2006 October 2006 August 2006 Links Metalink Oracle Oracle Integration Repository Disclaimer Disclaimer Meta: RSS Comments RSS Valid XHTML eMail Ad Feature Topic Oracle Fusion Applications (OFA) is a portfolio of next generation suite of software applications from Oracle Corporation. It is distributed across various product families; including financial management, human capital management, customer relationship management, supply chain management, procurement, governance, and project portfolio management Grab Free Copy Get a Free Magzine ...Profit:The Executive's Guide to Oracle Applications Search Powered Search Recent Posts Finding your Ikigai Oracle Adaptive Intelligent Applications for ERP How Blockchain Technology Will Impact Accounting. Study: ASC 606 Might Slow IPOs in 2018 ?? Vertex and Oracle Cloud Blogroll David Haimes Floyd Teter Steven Chan Tim Dexter Trioragroup Blog Total Page View StatCounter - Free Web Tracker and Counter News & Views This RSS feed URL is deprecated Healthcare IT Market Survey Report 2018 with Forecast by McKesson Corporation, Oracle Corporation, Allscripts … – Digital Journal Ford's all but getting out of the car business in North America – CTV News Oracle whips out the swatter, squishes 254 security bugs in its gear – The Register User Onlines 108 Users 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 PaymentThese 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

Tuesday, 9 January 2018

Supplier / Customer Tax Profiles Information

Supplier / Customer Tax Profiles Information
I have been working in a data migration project, and we have migrated customers and suppliers.

We have also uploaded tax profiles for them, i had to write SQL scripts to check/reconcile the tax profiles.

And these are them. Hopefully they are useful to any of you looking for the same.


--Customers and their tax profiles

SELECT A.customer_name,
  DECODE(A.customer_type, 'I', 'Internal', 'R', 'External') customer_type,
  a1.profile_class_name,
  a.creation_date,
  b.party_name,
  b.party_number,
  c.party_type_code,
  d.creation_date,
  d.class_category,
  d.class_code,
  d.start_date_active,
  e.tax_regime_code,
  e.registration_number,
  e.registration_status_code,
  e.effective_from,
  --A.vat_code,
  A.tax_reference,
  b1.party_site_name,
  b1.party_site_number,
  c1.party_type_code site_party_type_code,
  e1.tax_regime_code site_tax_regime_code,
  e1.registration_number site_registration_number,
  e1.registration_status_code site_registration_status_code,
  e1.effective_from site_effective_from,
  d1.class_category site_class_category,
  d1.class_code site_class_code,
  d1.start_date_active site_start_date_active
FROM ar_customers A,
  ar_customer_profiles_v a1,
  hz_parties b,
  hz_party_sites b1,
  zx_party_tax_profile c,
  zx_party_tax_profile c1,
  hz_code_assignments d,
  hz_code_assignments d1,
  zx_registrations e,
  zx_registrations e1
WHERE A.orig_system_reference =b.orig_system_reference
AND A.customer_id             =a1.customer_id(+)
AND b.party_id                =c.party_id(+)
AND c.party_tax_profile_id    =d.owner_table_id(+)
AND c.party_type_code(+)      ='THIRD_PARTY'
AND c.party_tax_profile_id    =e.party_tax_profile_id(+)
AND d.class_category(+)       ='XXXX'
AND b.party_id                =b1.party_id
AND b1.party_site_id          =c1.party_id(+)
AND c1.party_type_code(+)     ='THIRD_PARTY_SITE'
AND c1.party_tax_profile_id   =d1.owner_table_id(+)
AND c1.party_tax_profile_id   =e1.party_tax_profile_id(+);



--Suppliers and their tax profiles



SELECT --A.vendor_name,

  A.segment1 Suuplier_No,

  A.vendor_name Suuplier_Name,

  A.VENDOR_NAME_ALT Supp_ARABIC_NAME,

  A.ATTRIBUTE1 SUPP_Check_Name,

  --b.party_name,

  A.vendor_type_lookup_code,

  --b.party_number,

  c.party_type_code,

  c.process_for_applicability_flag allow_tax_applicability,

  c.allow_offset_tax_flag allow_offset_tax,

  d.class_category,

  d.class_code,

  d.start_date_active,

  d.end_date_active,

  e.tax_regime_code,

  e.registration_number,

  e.registration_status_code,

  e.effective_from,

  e.effective_to,

  A.vat_code,

  b1.party_site_name,

  b1.party_site_number,

  c1.party_type_code site_party_type_code,

  c1.process_for_applicability_flag site_allow_tax_applicability,

  c1.allow_offset_tax_flag site_allow_offset_tax,

  d1.class_category site_class_category,

  d1.class_code site_class_code,

  d1.start_date_active site_start_date_active,

  e1.tax_regime_code site_tax_regime_code,

  e1.registration_number site_registration_number,

  e1.registration_status_code site_registration_status_code,

  e1.effective_from site_effective_from,

  e1.effective_to site_effective_to

FROM ap_suppliers A,

  hz_parties b,

  hz_party_sites b1,

  zx_party_tax_profile c,

  zx_party_tax_profile c1,

  hz_code_assignments d,

  hz_code_assignments d1,

  zx_registrations e,

  zx_registrations e1

WHERE A.party_id                   =b.party_id

AND b.party_id                     =c.party_id(+)

AND c.party_type_code(+)           ='THIRD_PARTY'

AND c.party_tax_profile_id         =d.owner_table_id(+)

AND c.party_tax_profile_id         =e.party_tax_profile_id(+)

AND d.class_category(+)            =' XXXX '

AND A.vendor_type_lookup_code NOT IN ('EMPLOYEE', 'INTERNAL')

AND b.party_id                     =b1.party_id(+)

AND b1.party_site_id               =c1.party_id(+)

AND c1.party_type_code(+)          ='THIRD_PARTY_SITE'

AND c1.party_tax_profile_id        =d1.owner_table_id(+)

AND c1.party_tax_profile_id        =e1.party_tax_profile_id(+)

and A.segment1='1542'

  --and b.party_name='James Fleming'

ORDER BY d.class_category DESC,

  e.registration_status_code,

  b.party_name;